CSS moved to styles; Language removed

This commit is contained in:
Stefan Kalscheuer 2017-07-18 10:59:06 +02:00
parent 96342567b8
commit 85ca371fa5
6 changed files with 117 additions and 408 deletions

View File

@ -1,12 +0,0 @@
ul.wplt_ticker{list-style-type:none;}
li.wplt_tick{background-color:#F5F5F5;margin:0.1em;padding:0.1em 0.3em;}
li.wplt_tick p{margin:0.3em;}
span.wplt_tick_time{color:#002C58;font-size:0.7em;font-style:italic;}
span.wplt_tick_title{color:#002C58;font-weight:bold;margin-left:0.5em;}
p.wplt_tick_content{margin-top:-0.7em;text-indent:0.5em;}
ul.wplt_widget{list-style-type:none;margin-top:-0.5em;}
ul.wplt_widget li{text-align:left;}
span.wplt_widget_time{font-size:0.7em;font-style:italic;}
span.wplt_widget_content{color:#002C58;text-indent:0.2em;}
span.wplt_widget_content_new{color:#800000;text-indent:0.2em;}
p.wplt_widget_link{text-align:right;}

View File

@ -1 +0,0 @@
ul.wplt_ticker{list-style-type:none}li.wplt_tick{background-color:#f5f5f5;margin:.1em;padding:.1em .3em}li.wplt_tick p{margin:.3em}span.wplt_tick_time{color:#002c58;font-size:.7em;font-style:italic}span.wplt_tick_title{color:#002c58;font-weight:bold;margin-left:.5em}p.wplt_tick_content{margin-top:-0.7em;text-indent:.5em}ul.wplt_widget{list-style-type:none;margin-top:-0.5em}ul.wplt_widget li{text-align:left}span.wplt_widget_time{font-size:.7em;font-style:italic}span.wplt_widget_content{color:#002c58;text-indent:.2em}span.wplt_widget_content_new{color:maroon;text-indent:.2em}p.wplt_widget_link{text-align:right}

Binary file not shown.

View File

@ -1,331 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: wplt2\n"
"POT-Creation-Date: 2014-08-11 21:26+0100\n"
"PO-Revision-Date: 2014-08-11 21:26+0100\n"
"Last-Translator: Stefan Kalscheuer\n"
"Language-Team: \n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.4\n"
"X-Poedit-KeywordsList: __;_x;_e\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: ../includes\n"
#: ../includes/post-types.php:17 ../includes/admin/dashboard.php:19
msgid "Ticks"
msgstr "Ticks"
#: ../includes/post-types.php:18
msgid "Tick"
msgstr "Tick"
#: ../includes/post-types.php:19
msgid "Add New"
msgstr "Neu"
#: ../includes/post-types.php:20
msgid "Add New Tick"
msgstr "Neuer Tick"
#: ../includes/post-types.php:21
msgid "Edit Tick"
msgstr "Tick bearbeiten"
#: ../includes/post-types.php:22
msgid "New Tick"
msgstr "Neuer Tick"
#: ../includes/post-types.php:23
msgid "All Ticks"
msgstr "Alle Ticks"
#: ../includes/post-types.php:24
msgid "View Tick"
msgstr "Ticks anzeigen"
#: ../includes/post-types.php:25
msgid "Search Ticks"
msgstr "Ticks suchen"
#: ../includes/post-types.php:26
msgid "No Ticks found"
msgstr "Keine Ticks gefunden"
#: ../includes/post-types.php:27
msgid "No Ticks found in Trash"
msgstr "Keine Ticks im Papierkorb gefunden"
#: ../includes/post-types.php:29
msgid "Liveticker"
msgstr "Liveticker"
#: ../includes/post-types.php:58 ../includes/post-types.php:59
#: ../includes/post-types.php:68 ../includes/admin/post-types-columns.php:21
msgid "Ticker"
msgstr "Ticker"
#: ../includes/post-types.php:60
msgid "Search Tickers"
msgstr "Ticker suchen"
#: ../includes/post-types.php:61
msgid "All Tickers"
msgstr "Alle Ticker"
#: ../includes/post-types.php:62
msgid "Parent Ticker"
msgstr "Übergeordneter Ticker"
#: ../includes/post-types.php:63
msgid "Parent Ticker:"
msgstr "Übergeordneter Ticker:"
#: ../includes/post-types.php:64
msgid "Edit Ticker"
msgstr "Ticker bearbeiten"
#: ../includes/post-types.php:65
msgid "Update Ticker"
msgstr "Ticker aktualisieren"
#: ../includes/post-types.php:66
msgid "Add New Ticker"
msgstr "Neuen Ticker hinzufügen"
#: ../includes/post-types.php:67
msgid "New Ticker"
msgstr "Neuer Ticker"
#: ../includes/widget.php:51
msgid "show all"
msgstr "alle anzeigen"
#: ../includes/widget.php:75
msgid "Title:"
msgstr "Titel:"
#: ../includes/widget.php:79
msgid "Ticker:"
msgstr "Ticker:"
#: ../includes/widget.php:89
msgid "Number of Ticks:"
msgstr "Anzahl der Einträge:"
#: ../includes/widget.php:92
msgid "all"
msgstr "Alle"
#: ../includes/widget.php:102
msgid "Link (optional):"
msgstr "Link (optional):"
#: ../includes/widget.php:106
msgid "Highlight new:"
msgstr "Neue hervorheben:"
#: ../includes/widget.php:110
msgid "Highlight time [s]:"
msgstr "Hervorhebungszeit [s]:"
#: ../includes/widget.php:114
msgid "Auto refresh:"
msgstr "Autom. aktualisieren:"
#: ../includes/widget.php:115
msgid "(enables ajax)"
msgstr "(aktiviert Ajax)"
#: ../includes/admin/dashboard.php:30 ../includes/admin/meta-boxes.php:18
msgid "Download Stats"
msgstr "Download Statistik"
#: ../includes/admin/media-button.php:39 ../includes/admin/media-button.php:87
msgid "Insert Download"
msgstr "Download Einfügen"
#: ../includes/admin/media-button.php:58
msgid "Download Details"
msgstr "Download Details"
#: ../includes/admin/media-button.php:59
msgid "Text"
msgstr "Text"
#: ../includes/admin/media-button.php:61
msgid "Style"
msgstr "Stil"
#: ../includes/admin/media-button.php:74
msgid "Color"
msgstr "Farbe"
#: ../includes/admin/media-button.php:88
msgid "Insert File Size"
msgstr "Dateigröße einfügen"
#: ../includes/admin/media-button.php:89
msgid "Insert Download Count"
msgstr "Download Zähler einfügen"
#: ../includes/admin/meta-boxes.php:16
msgid "File"
msgstr "Datei"
#: ../includes/admin/meta-boxes.php:57
msgid "Allowed Files"
msgstr "Erlaubte Dateien"
#: ../includes/admin/meta-boxes.php:101
msgid "Select File"
msgstr "Datei auswählen"
#: ../includes/admin/meta-boxes.php:102 ../includes/admin/meta-boxes.php:139
msgid "Upload"
msgstr "Upload"
#: ../includes/admin/meta-boxes.php:104 ../includes/admin/meta-boxes.php:141
#, php-format
msgid "Maximum file size: %s."
msgstr "Maximale Dateigröße: %s."
#: ../includes/admin/meta-boxes.php:194
msgid "Count"
msgstr "Anzahl"
#: ../includes/admin/post-types-columns.php:19
msgid "Title"
msgstr "Titel"
#: ../includes/admin/post-types-columns.php:20
msgid "Author"
msgstr "Autor"
#: ../includes/admin/post-types-columns.php:22
msgid "Date"
msgstr "Datum"
#: ../includes/admin/page-settings.php:15
#: ../includes/admin/page-settings.php:64
msgid "Settings"
msgstr "Einstellungen"
#: ../includes/admin/page-settings.php:28
msgid "General"
msgstr "Allgemein"
#: ../includes/admin/page-settings.php:29
msgid "Uninstall"
msgstr "Deinstalliern"
#: ../includes/admin/page-settings.php:32
msgid "Default CSS Styles"
msgstr "Standard CSS Style"
#: ../includes/admin/page-settings.php:33
msgid "Reset Settings"
msgstr "Einstellungen zurücksetzen"
#: ../includes/admin/page-settings.php:66
msgid "Settings updated successfully."
msgstr "Einstellungen erfolgreich aktualisiert"
#: ../includes/admin/page-settings.php:111
#: ../includes/admin/page-settings.php:148
msgid "Enable"
msgstr "Aktivieren"
#: ../includes/admin/page-settings.php:113
msgid ""
"Disable this option to remove the default button styling and the Delightful "
"Downloads CSS file."
msgstr ""
"Deaktiviere diese Option, um den Standard Style und die CSS Datei zu "
"entfernen."
#: ../includes/admin/page-settings.php:133
msgid "The default display style."
msgstr " "
#: ../includes/admin/page-settings.php:149
msgid "Reset plugin settings on re-activation."
msgstr " "
#~ msgid "Category"
#~ msgstr "Kategorie"
#~ msgid "Search Categories"
#~ msgstr "Kategorien suchen"
#~ msgid "All Categories"
#~ msgstr "Alle Kategorien"
#~ msgid "Edit Category"
#~ msgstr "Kategorie bearbeiten"
#~ msgid "Add New Category"
#~ msgstr "Neue Kategorie"
#~ msgid "New Category Name"
#~ msgstr "Neuer Kategorie Name"
#~ msgid "File does not exist: "
#~ msgstr "Datei existiert nicht:"
#~ msgid "File does not exist!"
#~ msgstr "Datei existiert nicht!"
#~ msgid "Invalid download: "
#~ msgstr "Ungültiger Download"
#~ msgid "Invalid download."
#~ msgstr "Ungültiger Download"
#~ msgid "User does not have permission to access file."
#~ msgstr "Benutzer hat keine Rechte, auf die Datie zuzugreifen"
#~ msgid "Please login to download this file!"
#~ msgstr "Bitte einloggen zum Herunterladen der Datei!"
#~ msgid "Shortcodes"
#~ msgstr "Shortcodes"
#~ msgid "Members Download"
#~ msgstr "Mitglieder Download"
#~ msgid "Non-Members Redirect"
#~ msgstr "Nicht-Mitglieder Weiterleitung"
#~ msgid "Default Text"
#~ msgstr "Standard Text"
#~ msgid "Default Style"
#~ msgstr "Standard Style"
#~ msgid "Default Color"
#~ msgstr "Standard Farbe"
#~ msgid "Member Only"
#~ msgstr "Nur Mitglieder"
#~ msgid "Allow only logged in users to download files."
#~ msgstr "Erlaube nur andemeldeten Benutzern, die Datei herunterzuladen."
#~ msgid ""
#~ "The page to redirect non-logged in users when attempting to download a "
#~ "file. If no page is selected a default error will be displayed."
#~ msgstr ""
#~ "DIe Seite, auf die nicht angemeldete Benutzer weitergeleitet werden, wenn "
#~ "die versuchen eine Datei herunterzuladen."
#~ msgid ""
#~ "The default text displayed on link and button styles shortcode. Use %title"
#~ "% to automatically insert download title."
#~ msgstr " "
#~ msgid "The default button color."
#~ msgstr " "

58
styles/wp-liveticker2.css Normal file
View File

@ -0,0 +1,58 @@
ul.wplt_ticker {
list-style-type: none;
}
li.wplt_tick {
background-color: #F5F5F5;
margin: 0.1em;
padding: 0.1em 0.3em;
}
li.wplt_tick p {
margin: 0.3em;
}
span.wplt_tick_time {
color: #002C58;
font-size: 0.7em;
font-style: italic;
}
span.wplt_tick_title {
color: #002C58;
font-weight: bold;
margin-left: 0.5em;
}
p.wplt_tick_content {
margin-top: -0.7em;
text-indent: 0.5em;
}
ul.wplt_widget {
list-style-type: none;
margin-top: -0.5em;
}
ul.wplt_widget li {
text-align: left;
}
span.wplt_widget_time {
font-size: 0.7em;
font-style: italic;
}
span.wplt_widget_content {
color: #002C58;
text-indent: 0.2em;
}
span.wplt_widget_content_new {
color: #800000;
text-indent: 0.2em;
}
p.wplt_widget_link {
text-align: right;
}

View File

@ -1,63 +1,62 @@
<?php
/**
* WP Liveticker 2
*
* @package WPLiveticker2
* @author Stefan Kalscheuer <stefan@stklcode.de>
* @license GPL-2.0+
*
* @wordpress-plugin
* Plugin Name: WP Liveticker 2
* Description: A simple Liveticker for Wordpress.
* Version: 0.4.1 beta
* Version: 1.0.0 alpha
* Author: Stefan Kalscheuer
* Author URI: http://www.stklblog.de
* Author URI: http://www.stklcode.de
* Text Domain: wplt2
* Domain Path: /lang
* License: GPL2
* License: GPLv2 or later
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
* WP Liveticker 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* WP Liveticker 2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* along with WP Liveticker 2. If not, see http://www.gnu.org/licenses/gpl-2.0.html.
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
// Constants.
define( 'WPLT_VERSION', '0.4' );
define( 'WPLT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'WPLT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'WPLT_TEXTDOM', 'wplt2' );
define( 'WPLT_OPTIONS', 'wplt2' );
/**
* @package Main
* Localization.
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
/**
* Constants
*/
if( !defined( 'WPLT_VERSION' ) )
define( 'WPLT_VERSION', '0.4' );
if( !defined( 'WPLT_PLUGIN_URL' ) )
define( 'WPLT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
if( !defined( 'WPLT_PLUGIN_DIR' ) )
define( 'WPLT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
/**
* Localization
*/
function WPLT_localization() {
load_plugin_textdomain( 'wplt2', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
function wplt2_localization() {
load_plugin_textdomain( WPLT_TEXTDOM, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
}
add_action( 'plugins_loaded', 'WPLT_localization' );
add_action( 'plugins_loaded', 'wplt2_localization' );
/**
* Options
* Options.
*/
global $wplt_options;
$wplt_options = get_option( 'wplt2' );
$wplt_options = get_option( WPLT_OPTIONS );
/**
* Include required plugin files
* Include required plugin files.
*/
include_once( WPLT_PLUGIN_DIR . 'includes/functions.php' );
include_once( WPLT_PLUGIN_DIR . 'includes/post-types.php' );
@ -65,30 +64,26 @@ include_once( WPLT_PLUGIN_DIR . 'includes/scripts.php' );
include_once( WPLT_PLUGIN_DIR . 'includes/rss.php' );
include_once( WPLT_PLUGIN_DIR . 'includes/shortcodes.php' );
include_once( WPLT_PLUGIN_DIR . 'includes/widget.php' );
if( is_admin() ) {
// include_once( WPLT_PLUGIN_DIR . 'includes/admin/ajax.php' );
// include_once( WPLT_PLUGIN_DIR . 'includes/admin/dashboard.php' );
// include_once( WPLT_PLUGIN_DIR . 'includes/admin/media-button.php' );
// include_once( WPLT_PLUGIN_DIR . 'includes/admin/meta-boxes.php' );
if ( is_admin() ) {
include_once( WPLT_PLUGIN_DIR . 'includes/admin/page-settings.php' );
include_once( WPLT_PLUGIN_DIR . 'includes/admin/post-types-columns.php' );
}
/**
* On activation
* On activation.
*/
function WPLT_activation() {
global $WPLT_options;
function wplt2_activation() {
global $wplt_options;
// Add default settings to database
// Add default settings to database.
$defaults = WPLT_get_default_options();
if( $WPLT_options['reset_settings'] ) {
update_option( 'wplt2', $defaults );
}
else {
add_option( 'wplt2', $defaults );
if ( $wplt_options['reset_settings'] ) {
update_option( WPLT_OPTIONS, $defaults );
} else {
add_option( WPLT_OPTIONS, $defaults );
}
}
register_activation_hook( __FILE__, 'WPLT_activation' );
register_activation_hook( __FILE__, 'wplt2_activation' );