WordPress.org

Plugin Directory

Changeset 900285


Ignore:
Timestamp:
04/22/14 16:21:02 (4 years ago)
Author:
artanik
Message:

Update to 1.1

Location:
slider-for-writers/trunk
Files:
6 edited

Legend:

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

    r891776 r900285  
    1  
     1.dev7-caroufredsel-wrapper-pag.none { 
     2    display: none; 
     3} 
     4.dev7-caroufredsel-wrapper-pag.noneThumb a { 
     5    padding: 0; 
     6    width: 0; 
     7    height: 0; 
     8    border-width: 5px; 
     9    -webkit-border-radius: 50%; 
     10    -moz-border-radius: 50%; 
     11    border-radius: 50%; 
     12} 
     13.dev7-caroufredsel-wrapper-pag.noneThumb a img { 
     14    display: none; 
     15} 
    216 
    317.dev7-caroufredsel-pag { 
  • slider-for-writers/trunk/editor/add_buttons.php

    r891776 r900285  
    1717 
    1818function writer_add_buttons( $plugin_array ) { 
    19   $plugin_array['writer_slider'] = plugins_url('add_buttons.js', __FILE__ ); 
     19  global $wp_version; 
     20  $wpversion = wp_version_to_int($wp_version); 
     21 
     22  if($wpversion <= 38) { 
     23    $plugin_array['writer_slider'] = plugins_url('add_buttons.js', __FILE__ ); 
     24  } else { 
     25    $plugin_array['writer_slider'] = plugins_url('add_buttons_wp39.js', __FILE__ ); 
     26  } 
    2027  return $plugin_array; 
    2128} 
  • slider-for-writers/trunk/editor/css/editor_styles.css

    r891776 r900285  
    55    content: '\f161'; 
    66} 
     7 
     8i.mce-i-icon { 
     9    font: 400 20px/1 dashicons; 
     10    padding: 0; 
     11    vertical-align: top; 
     12    speak: none; 
     13    -webkit-font-smoothing: antialiased; 
     14    -moz-osx-font-smoothing: grayscale; 
     15    margin-left: -2px; 
     16    padding-right: 2px 
     17} 
  • slider-for-writers/trunk/languages/slider-for-writers-ru_RU.pot

    r891776 r900285  
    88"Project-Id-Version: locale-set 0.0.0\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2014-04-09 16:59+0300\n" 
    11 "PO-Revision-Date: 2014-04-09 17:02+0200\n" 
     10"POT-Creation-Date: 2014-04-22 19:04+0300\n" 
     11"PO-Revision-Date: 2014-04-22 19:06+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:64 
     19#: slider-for-writers.php:70 
    2020msgid "Slider for Writers - Settings" 
    2121msgstr "Slider for Writers - Настройки" 
    2222 
    23 #: slider-for-writers.php:87 
     23#: slider-for-writers.php:93 
    2424msgid "The settings are saved." 
    2525msgstr "Настройки сохранены." 
    2626 
    27 #: slider-for-writers.php:104 
     27#: slider-for-writers.php:110 
    2828msgid "How to use" 
    2929msgstr "Как использовать" 
    3030 
    31 #: slider-for-writers.php:106 
     31#: slider-for-writers.php:112 
    3232msgid "" 
    3333"<p>Use icon <code><span alt=\"f161\" class=\"dashicons dashicons-format-" 
     
    4141"слайдер в статье или странице.</p>" 
    4242 
    43 #: slider-for-writers.php:107 
     43#: slider-for-writers.php:113 
    4444msgid "" 
    4545"<p>Plugin settings allow modifications to the effects of the transitions.</p>" 
    4646msgstr "<p>Настройки плагина позволяют измененять эффекты при переходах.</p>" 
    4747 
    48 #: slider-for-writers.php:123 
     48#: slider-for-writers.php:129 
    4949msgid "About the plugin" 
    5050msgstr "О плагине" 
    5151 
    52 #: slider-for-writers.php:125 
     52#: slider-for-writers.php:131 
    5353msgid "" 
    5454"Simple wordpress plugin for slider with lightbox in the articles. Based on " 
     
    6060"\">caroufredsel</a>." 
    6161 
    62 #: slider-for-writers.php:126 
     62#: slider-for-writers.php:132 
    6363msgid "" 
    6464"<p>Powered by <a href=\"http://artanik.ru/\" target=\"_blank\">Artem " 
     
    6868"Аникеев</a> &copy; 2014</p>" 
    6969 
    70 #: slider-for-writers.php:144 
     70#: slider-for-writers.php:150 
    7171msgid "Effect(fx) for the transition" 
    7272msgstr "Эффект перехода" 
    7373 
    74 #: slider-for-writers.php:159 
     74#: slider-for-writers.php:165 
    7575msgid "Easing for the transition" 
    7676msgstr "Ослабление перехода" 
    7777 
    78 #: slider-for-writers.php:174 
     78#: slider-for-writers.php:180 
    7979msgid "Pause on hover" 
    8080msgstr "Пауза при наведении" 
    8181 
    82 #: slider-for-writers.php:180 
     82#: slider-for-writers.php:186 
    8383msgid "Autoplay" 
    8484msgstr "Автопроигрывание" 
    8585 
    86 #: slider-for-writers.php:186 
     86#: slider-for-writers.php:192 
     87msgid "Disable bottom thumbnail" 
     88msgstr "Отключить миниатюры внизу" 
     89 
     90#: slider-for-writers.php:198 
     91msgid "Disable bottom nav" 
     92msgstr "Отключить навигацию внизу" 
     93 
     94#: slider-for-writers.php:204 
    8795msgid "Duration for the transition" 
    8896msgstr "Задержка при переходах" 
    8997 
    90 #: slider-for-writers.php:189 
     98#: slider-for-writers.php:207 
    9199msgid "ms" 
    92100msgstr "мс" 
    93101 
    94 #: slider-for-writers.php:196 
     102#: slider-for-writers.php:214 
    95103msgid "Save" 
    96104msgstr "Сохранить" 
  • slider-for-writers/trunk/slider-for-writers.php

    r891776 r900285  
    44Plugin URI: http://artanik.ru/ 
    55Description: Simple wordpress plugin for slider with lightbox in the posts and static page. 
    6 Version: 1.0 
     6Version: 1.1 
    77Author: Artem Anikeev 
    88Author URI: http://artanik.ru/ 
     
    3535    add_option('writer_pauseOnHover'); 
    3636    add_option('writer_autoplay'); 
     37    add_option('writer_navs'); 
     38    add_option('writer_thumbnail'); 
    3739    add_option('writer_duration'); 
    3840} 
     
    4345    delete_option('writer_pauseOnHover'); 
    4446    delete_option('writer_autoplay'); 
     47    delete_option('writer_navs'); 
     48    delete_option('writer_thumbnail'); 
    4549    delete_option('writer_duration'); 
    4650} 
     
    5862     'writer_pauseOnHover', 
    5963     'writer_autoplay', 
     64     'writer_navs', 
     65     'writer_thumbnail', 
    6066     'writer_duration' 
    6167    ); 
     
    184190            </tr> 
    185191            <tr> 
     192                <td class="row-title" style="vertical-align: middle;"><label for="writer_thumbnail"><?php _e('Disable bottom thumbnail', 'slider-for-writers'); ?></label></td> 
     193                <td> 
     194                    <input name="writer_thumbnail" type="checkbox" id="writer_thumbnail" value="1" <?php checked( $writer_thumbnail, $current = true, $echo = true ); ?> /> 
     195                </td> 
     196            </tr> 
     197            <tr class="alt"> 
     198                <td class="row-title" style="vertical-align: middle;"><label for="writer_navs"><?php _e('Disable bottom nav', 'slider-for-writers'); ?></label></td> 
     199                <td> 
     200                    <input name="writer_navs" type="checkbox" id="writer_navs" value="1" <?php checked( $writer_navs, $current = true, $echo = true ); ?> /> 
     201                </td> 
     202            </tr> 
     203            <tr> 
    186204                <td class="row-title" style="vertical-align: middle;"><label for="writer_duration"><?php _e('Duration for the transition', 'slider-for-writers'); ?></label></td> 
    187205                <td> 
     
    226244  $writer_duration = get_option('writer_duration'); 
    227245  $writer_autoplay = get_option('writer_autoplay'); 
     246  $writer_navs = get_option('writer_navs'); 
     247  $writer_thumbnail = get_option('writer_thumbnail'); 
    228248  $writer_pauseOnHover = get_option('writer_pauseOnHover'); 
    229249 
     
    232252  $writer_duration = empty($writer_duration)?'1000':$writer_duration; 
    233253  $writer_autoplay = empty($writer_autoplay)?'false':'true'; 
     254  $writer_navs = empty($writer_navs)?'false':'true'; 
     255  $writer_thumbnail = empty($writer_thumbnail)?'false':'true'; 
    234256  $writer_pauseOnHover = empty($writer_pauseOnHover)?'false':'true'; 
    235257 
     
    247269  $template .= '<div class="dev7-clearfix"></div>'; 
    248270 
    249   $template .= '<div class="dev7-caroufredsel-wrapper-pag"><div class="dev7-caroufredsel-pag" id="caroufredsel-6">'; 
     271  $noneClass = $writer_navs==="true"?' none':''; 
     272  $thumbClass = $writer_thumbnail==="true"?' noneThumb':''; 
     273  $template .= '<div class="dev7-caroufredsel-wrapper-pag'.$noneClass.$thumbClass.'"><div class="dev7-caroufredsel-pag" id="caroufredsel-6">'; 
    250274  foreach ($attachment_ids_arr as $attachment_id) { 
    251275    $image_attributes = wp_get_attachment_image_src( $attachment_id, 'thumbnail'); 
Note: See TracChangeset for help on using the changeset viewer.