WordPress.org

Plugin Directory

Changeset 904325


Ignore:
Timestamp:
04/28/14 19:42:51 (4 years ago)
Author:
artanik
Message:

Update to 1.2

Location:
slider-for-writers
Files:
46 added
5 edited

Legend:

Unmodified
Added
Removed
  • slider-for-writers/trunk/assets/plugin_styles.css

    r900285 r904325  
    2929    display: block; 
    3030    cursor: pointer; 
     31} 
     32.dev7-caroufredsel-image span { 
     33    text-align: center; 
     34    display: block; 
     35    margin-top: 15px; 
    3136} 
    3237 
  • slider-for-writers/trunk/languages/slider-for-writers-ru_RU.pot

    r900285 r904325  
    88"Project-Id-Version: locale-set 0.0.0\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2014-04-22 19:04+0300\n" 
    11 "PO-Revision-Date: 2014-04-22 19:06+0200\n" 
     10"POT-Creation-Date: 2014-04-28 22:36+0300\n" 
     11"PO-Revision-Date: 2014-04-28 22:38+0200\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
    1313"Language-Team: LANGUAGE <LL@li.org>\n" 
     
    1717"X-Generator: Poedit 1.5.7\n" 
    1818 
    19 #: slider-for-writers.php:70 
     19#: slider-for-writers.php:73 
    2020msgid "Slider for Writers - Settings" 
    2121msgstr "Slider for Writers - Настройки" 
    2222 
    23 #: slider-for-writers.php:93 
     23#: slider-for-writers.php:96 
    2424msgid "The settings are saved." 
    2525msgstr "Настройки сохранены." 
    2626 
    27 #: slider-for-writers.php:110 
     27#: slider-for-writers.php:113 
    2828msgid "How to use" 
    2929msgstr "Как использовать" 
    3030 
    31 #: slider-for-writers.php:112 
     31#: slider-for-writers.php:115 
    3232msgid "" 
    3333"<p>Use icon <code><span alt=\"f161\" class=\"dashicons dashicons-format-" 
     
    4141"слайдер в статье или странице.</p>" 
    4242 
    43 #: slider-for-writers.php:113 
     43#: slider-for-writers.php:116 
    4444msgid "" 
    4545"<p>Plugin settings allow modifications to the effects of the transitions.</p>" 
    4646msgstr "<p>Настройки плагина позволяют измененять эффекты при переходах.</p>" 
    4747 
    48 #: slider-for-writers.php:129 
     48#: slider-for-writers.php:132 
    4949msgid "About the plugin" 
    5050msgstr "О плагине" 
    5151 
    52 #: slider-for-writers.php:131 
     52#: slider-for-writers.php:134 
    5353msgid "" 
    5454"Simple wordpress plugin for slider with lightbox in the articles. Based on " 
     
    6060"\">caroufredsel</a>." 
    6161 
    62 #: slider-for-writers.php:132 
     62#: slider-for-writers.php:135 
    6363msgid "" 
    6464"<p>Powered by <a href=\"http://artanik.ru/\" target=\"_blank\">Artem " 
     
    6868"Аникеев</a> &copy; 2014</p>" 
    6969 
    70 #: slider-for-writers.php:150 
     70#: slider-for-writers.php:153 
    7171msgid "Effect(fx) for the transition" 
    7272msgstr "Эффект перехода" 
    7373 
    74 #: slider-for-writers.php:165 
     74#: slider-for-writers.php:168 
    7575msgid "Easing for the transition" 
    7676msgstr "Ослабление перехода" 
    7777 
    78 #: slider-for-writers.php:180 
     78#: slider-for-writers.php:183 
    7979msgid "Pause on hover" 
    8080msgstr "Пауза при наведении" 
    8181 
    82 #: slider-for-writers.php:186 
     82#: slider-for-writers.php:189 
    8383msgid "Autoplay" 
    8484msgstr "Автопроигрывание" 
    8585 
    86 #: slider-for-writers.php:192 
     86#: slider-for-writers.php:195 
    8787msgid "Disable bottom thumbnail" 
    8888msgstr "Отключить миниатюры внизу" 
    8989 
    90 #: slider-for-writers.php:198 
     90#: slider-for-writers.php:201 
    9191msgid "Disable bottom nav" 
    9292msgstr "Отключить навигацию внизу" 
    9393 
    94 #: slider-for-writers.php:204 
     94#: slider-for-writers.php:207 
     95msgid "Disable descriptions" 
     96msgstr "Отключить описания" 
     97 
     98#: slider-for-writers.php:213 
    9599msgid "Duration for the transition" 
    96100msgstr "Задержка при переходах" 
    97101 
    98 #: slider-for-writers.php:207 
     102#: slider-for-writers.php:216 
    99103msgid "ms" 
    100104msgstr "мс" 
    101105 
    102 #: slider-for-writers.php:214 
     106#: slider-for-writers.php:223 
    103107msgid "Save" 
    104108msgstr "Сохранить" 
  • slider-for-writers/trunk/readme.txt

    r900288 r904325  
    33Requires at least: 3.5 
    44Tested up to: 3.9.1 
    5 Stable tag: 1.1 
     5Stable tag: 1.2 
    66Contributors: artanik 
    77License: GPLv2 or later 
     
    4242== Changelog ==  
    4343 
     44= 1.2 = 
     45 
     46* Added the descriptions 
     47 
    4448= 1.1 = 
    4549 
  • slider-for-writers/trunk/slider-for-writers.php

    r900285 r904325  
    44Plugin URI: http://artanik.ru/ 
    55Description: Simple wordpress plugin for slider with lightbox in the posts and static page. 
    6 Version: 1.1 
     6Version: 1.2 
    77Author: Artem Anikeev 
    88Author URI: http://artanik.ru/ 
     
    3838    add_option('writer_thumbnail'); 
    3939    add_option('writer_duration'); 
     40    add_option('writer_description'); 
    4041} 
    4142 
     
    4849    delete_option('writer_thumbnail'); 
    4950    delete_option('writer_duration'); 
     51    delete_option('writer_description'); 
    5052} 
    5153 
     
    6466     'writer_navs', 
    6567     'writer_thumbnail', 
    66      'writer_duration' 
     68     'writer_duration', 
     69     'writer_description' 
    6770    ); 
    6871 
     
    202205            </tr> 
    203206            <tr> 
     207                <td class="row-title" style="vertical-align: middle;"><label for="writer_description"><?php _e('Disable descriptions', 'slider-for-writers'); ?></label></td> 
     208                <td> 
     209                    <input name="writer_description" type="checkbox" id="writer_description" value="1" <?php checked( $writer_description, $current = true, $echo = true ); ?> /> 
     210                </td> 
     211            </tr> 
     212            <tr class="alt"> 
    204213                <td class="row-title" style="vertical-align: middle;"><label for="writer_duration"><?php _e('Duration for the transition', 'slider-for-writers'); ?></label></td> 
    205214                <td> 
     
    242251  $writer_fx = get_option('writer_fx'); 
    243252  $writer_easing = get_option('writer_easing'); 
     253  $writer_description = get_option('writer_description'); 
    244254  $writer_duration = get_option('writer_duration'); 
    245255  $writer_autoplay = get_option('writer_autoplay'); 
     
    251261  $writer_easing = empty($writer_easing)?'swing':$writer_easing; 
    252262  $writer_duration = empty($writer_duration)?'1000':$writer_duration; 
     263  $writer_description = empty($writer_description)?true:false; 
    253264  $writer_autoplay = empty($writer_autoplay)?'false':'true'; 
    254265  $writer_navs = empty($writer_navs)?'false':'true'; 
     
    262273    if( $image_attributes ) { 
    263274      $alt = trim(strip_tags(get_post_meta($attachment_id, '_wp_attachment_image_alt', true))); 
    264       $template .= '<div class="dev7-caroufredsel-image"><img src="'. $image_attributes[0] .'" data-img="'.$image_attributes[0].'" title="'.$alt.'" alt="'.$alt.'"></div>'; 
     275      $description = $writer_description?'<span>'.$alt.'</span>':''; 
     276      $template .= '<div class="dev7-caroufredsel-image"><img src="'. $image_attributes[0] .'" data-img="'.$image_attributes[0].'" title="'.$alt.'" alt="'.$alt.'">'.$description.'</div>'; 
    265277    } 
    266278  } 
Note: See TracChangeset for help on using the changeset viewer.