Changeset 1446567
- Timestamp:
- 06/30/2016 01:17:17 PM (10 years ago)
- Location:
- linux-day/trunk
- Files:
-
- 8 edited
- 2 moved
-
images/banner_120x600.png (modified) (previous)
-
images/banner_180x150.png (modified) (previous)
-
images/banner_300x250.png (modified) (previous)
-
images/banner_468x60.png (modified) (previous)
-
languages/linux-day-it_IT.mo (moved) (moved from linux-day/trunk/languages/it_IT.mo)
-
languages/linux-day-it_IT.po (moved) (moved from linux-day/trunk/languages/it_IT.po) (2 diffs)
-
languages/linux-day.mo (modified) (previous)
-
languages/linux-day.po (modified) (1 diff)
-
linux-day.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
linux-day/trunk/languages/linux-day-it_IT.po
r1446566 r1446567 2 2 msgstr "" 3 3 "Project-Id-Version: Linux Day\n" 4 "POT-Creation-Date: 201 3-09-26 16:24+0100\n"5 "PO-Revision-Date: 201 3-09-26 16:25+0100\n"4 "POT-Creation-Date: 2016-06-30 15:13+0200\n" 5 "PO-Revision-Date: 2016-06-30 15:14+0200\n" 6 6 "Last-Translator: Mattia Migliorini <deshack@ubuntu.com>\n" 7 7 "Language-Team: Mattia Migliorini <deshack@ubuntu.com>\n" 8 "Language: it_IT\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" 10 11 "Content-Transfer-Encoding: 8bit\n" 11 "X-Generator: Poedit 1. 5.4\n"12 "X-Generator: Poedit 1.8.7.1\n" 12 13 "X-Poedit-KeywordsList: __;_e\n" 13 14 "X-Poedit-Basepath: .\n" … … 15 16 "X-Poedit-SearchPath-0: ..\n" 16 17 17 #: ../linux-day.php: 2718 #: ../linux-day.php:39 18 19 msgid "Linux Day Banner" 19 20 msgstr "Linux Day Banner" 20 21 21 #: ../linux-day.php: 2822 #: ../linux-day.php:40 22 23 msgid "Add the Linux Day banners to your sidebar" 23 msgstr "Aggiungi i lbanner del Linux Day alla tua sidebar"24 msgstr "Aggiungi i banner del Linux Day alla tua sidebar" 24 25 25 #: ../linux-day.php:70 26 #: ../linux-day.php:63 27 msgid "Linux Day 2016" 28 msgstr "Linux Day 2016" 29 30 #: ../linux-day.php:85 26 31 msgid "Title:" 27 32 msgstr "Titolo:" 28 33 29 #: ../linux-day.php: 7534 #: ../linux-day.php:90 30 35 msgid "Banner format:" 31 msgstr "Formato delbanner:"36 msgstr "Formato banner:" 32 37 33 #: ../linux-day.php: 7738 #: ../linux-day.php:92 34 39 msgid "Select format" 35 40 msgstr "Seleziona formato" -
linux-day/trunk/languages/linux-day.po
r779789 r1446567 2 2 msgstr "" 3 3 "Project-Id-Version: Linux Day\n" 4 "POT-Creation-Date: 201 3-09-26 16:22+0100\n"5 "PO-Revision-Date: 201 3-09-26 16:24+0100\n"4 "POT-Creation-Date: 2016-06-30 15:14+0200\n" 5 "PO-Revision-Date: 2016-06-30 15:15+0200\n" 6 6 "Last-Translator: Mattia Migliorini <deshack@ubuntu.com>\n" 7 7 "Language-Team: Mattia Migliorini <deshack@ubuntu.com>\n" 8 "Language: en_EN\n" 8 9 "MIME-Version: 1.0\n" 9 10 "Content-Type: text/plain; charset=UTF-8\n" 10 11 "Content-Transfer-Encoding: 8bit\n" 11 "X-Generator: Poedit 1. 5.4\n"12 "X-Generator: Poedit 1.8.7.1\n" 12 13 "X-Poedit-KeywordsList: __;_e\n" 13 14 "X-Poedit-Basepath: .\n" 14 15 "X-Poedit-SourceCharset: UTF-8\n" 16 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 15 17 "X-Poedit-SearchPath-0: ..\n" 18 19 #: ../linux-day.php:39 20 msgid "Linux Day Banner" 21 msgstr "" 22 23 #: ../linux-day.php:40 24 msgid "Add the Linux Day banners to your sidebar" 25 msgstr "" 26 27 #: ../linux-day.php:63 28 msgid "Linux Day 2016" 29 msgstr "" 30 31 #: ../linux-day.php:85 32 msgid "Title:" 33 msgstr "" 34 35 #: ../linux-day.php:90 36 msgid "Banner format:" 37 msgstr "" 38 39 #: ../linux-day.php:92 40 msgid "Select format" 41 msgstr "" -
linux-day/trunk/linux-day.php
r1200020 r1446567 5 5 * Description: This plugin adds a widget for Linux Day banners. 6 6 * Author: Mattia Migliorini 7 * Version: 1.2. 27 * Version: 1.2.3 8 8 * Author URI: http://www.deshack.net 9 9 * License: GPLv2 or later 10 * Text Domain: linux-day 10 11 */ 11 12 12 13 // Load Text Domain 13 14 function ld_text_start() { 14 load_plugin_textdomain( 'l d', false, 'linux-day/languages');15 load_plugin_textdomain( 'linux-day', false, plugin_basename( dirname( __FILE__ ) . '/languages' ) ); 15 16 } 16 add_action( ' init', 'ld_text_start' );17 add_action( 'plugins_loaded', 'ld_text_start' ); 17 18 18 19 /** … … 30 31 * @var string 31 32 */ 32 const VERSION = '1.2. 2';33 const VERSION = '1.2.3'; 33 34 34 35 // Constructor … … 36 37 parent::__construct( 37 38 'ld_widget_banner', // Base ID 38 __( 'Linux Day Banner', 'l d' ), // Name39 array( 'description' => __( 'Add the Linux Day banners to your sidebar', 'l d' ) ) // Args39 __( 'Linux Day Banner', 'linux-day' ), // Name 40 array( 'description' => __( 'Add the Linux Day banners to your sidebar', 'linux-day' ) ) // Args 40 41 ); 41 42 } … … 50 51 */ 51 52 public function widget( $args, $instance ) { 52 $title = apply_filters( 'widget_title', $instance['title'] );53 $format = $instance['format'];53 $title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : ''; 54 $format = isset( $instance['format'] ) ? $instance['format'] : ''; 54 55 55 56 echo $args['before_widget']; … … 60 61 <a href="http://www.linuxday.it"> 61 62 <?php $banner = 'images/banner_' . $format . '.png'; ?> 62 <img src="<?php echo plugins_url( $banner, __FILE__ ); ?>?<?php echo self::VERSION; ?>" border="0" alt=" Linux Day 2015">63 <img src="<?php echo plugins_url( $banner, __FILE__ ); ?>?<?php echo self::VERSION; ?>" border="0" alt="<?php _e( 'Linux Day 2016', 'linux-day' ); ?>"> 63 64 </a> 64 65 <?php … … 82 83 83 84 <p> 84 <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'l d' ); ?></label>85 <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'linux-day' ); ?></label> 85 86 <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"> 86 87 </p> 87 88 88 89 <p> 89 <label for="<?php echo $this->get_field_id('format'); ?>"><?php _e( 'Banner format:', 'l d' ); ?></label>90 <label for="<?php echo $this->get_field_id('format'); ?>"><?php _e( 'Banner format:', 'linux-day' ); ?></label> 90 91 <select class="widefat" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>"> 91 <option <?php selected( $format, '' ); ?> disabled><?php _e( 'Select format', 'l d' ); ?></option>92 <option <?php selected( $format, '' ); ?> disabled><?php _e( 'Select format', 'linux-day' ); ?></option> 92 93 <?php foreach( $sizes as $size ) : ?> 93 94 <option <?php selected( $size, $format ); ?> value="<?php echo esc_attr($size); ?>"><?php echo $size; ?></option> -
linux-day/trunk/readme.txt
r1200020 r1446567 5 5 Requires at least: 2.8 6 6 Tested up to: 4.3 7 Stable tag: 1.2. 27 Stable tag: 1.2.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 28 28 29 29 == Changelog == 30 31 = 1.2.3 = 32 * Add new banners for Linux Day 2016 30 33 31 34 = 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.