Plugin Directory

Changeset 1676150


Ignore:
Timestamp:
06/11/2017 11:25:42 PM (9 years ago)
Author:
kosinix
Message:

To trunk 3.1.3

Location:
cyclone-slider/trunk
Files:
3 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • cyclone-slider/trunk/README.txt

    r1650697 r1676150  
    119119== Changelog ==
    120120
     121= 3.1.3 - 2017-06-12 =
     122* Fix language files not loaded.
     123* Updated Japanese language files.
     124
    121125= 3.1.2 - 2017-05-04 =
    122126* Fix "Slideshow not found" error when using numeric slideshow slugs. Eg. "011".
  • cyclone-slider/trunk/cyclone-slider.php

    r1650697 r1676150  
    44Plugin URI: http://www.codefleet.net/cyclone-slider/
    55Description: Create and manage sliders with ease. Built for both casual users and developers.
    6 Version: 3.1.2
     6Version: 3.1.3
    77Author: Nico Amarilla
    88Author URI: http://www.codefleet.net/
  • cyclone-slider/trunk/languages/cycloneslider.pot

    r1646975 r1676150  
    33"Project-Id-Version: Cyclone Slider\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2017-04-28 08:22+0800\n"
    6 "PO-Revision-Date: 2017-04-28 08:23+0800\n"
     5"POT-Creation-Date: 2017-06-12 06:29+0800\n"
     6"PO-Revision-Date: 2017-06-12 06:29+0800\n"
    77"Last-Translator: \n"
    88"Language-Team: kosinix <[email protected]>\n"
     
    153153msgstr ""
    154154
     155#: ../src/CycloneSlider/Admin.php:471
     156msgid "Active Theme"
     157msgstr ""
     158
    155159#: ../src/CycloneSlider/Admin.php:472 ../src/CycloneSlider/Admin.php:477
    156160#: ../src/CycloneSlider/Admin.php:481
     
    163167"Your template is in danger of being overwritten when you upgrade your theme. "
    164168"Please consider creating a WordPress plugin Cyclone Slider template."
     169msgstr ""
     170
     171#: ../src/CycloneSlider/Admin.php:476
     172msgid "WP Content"
     173msgstr ""
     174
     175#: ../src/CycloneSlider/Admin.php:480
     176msgid "Plugin"
    165177msgstr ""
    166178
     
    209221msgstr ""
    210222
    211 #: ../src/CycloneSlider/Data.php:267
     223#: ../src/CycloneSlider/Data.php:288
    212224#, php-format
    213225msgid "Invalid format for get_slider %s parameter."
     
    225237#: ../src/CycloneSlider/ImportPage.php:74
    226238#: ../src/CycloneSlider/NextgenIntegration.php:65
    227 #: ../src/legacy/inc/class-nextgen-integration.php:63 ../src/plugin.php:115
     239#: ../src/legacy/inc/class-nextgen-integration.php:63 ../src/plugin.php:121
    228240msgid "Import"
    229241msgstr ""
     
    255267msgstr ""
    256268
    257 #: ../src/CycloneSlider/ExportPageNextgen.php:72 ../src/plugin.php:102
     269#: ../src/CycloneSlider/ExportPageNextgen.php:72 ../src/plugin.php:108
    258270msgid "Export Nextgen"
    259271msgstr ""
     
    422434msgstr ""
    423435
    424 #: ../src/legacy/cyclone-slider.php:141 ../src/plugin.php:77
     436#: ../src/legacy/cyclone-slider.php:141 ../src/plugin.php:83
    425437msgid "Cyclone Slider Settings"
    426438msgstr ""
    427439
    428 #: ../src/legacy/cyclone-slider.php:142 ../src/plugin.php:78
     440#: ../src/legacy/cyclone-slider.php:142 ../src/plugin.php:84
    429441msgid "Settings"
    430442msgstr ""
     
    587599msgstr ""
    588600
    589 #: ../src/plugin.php:88
     601#: ../src/plugin.php:94
    590602msgid "Cyclone Slider Export"
    591603msgstr ""
    592604
    593 #: ../src/plugin.php:89
     605#: ../src/plugin.php:95
    594606msgid "Export/Import"
    595607msgstr ""
    596608
    597 #: ../src/plugin.php:101
     609#: ../src/plugin.php:107
    598610msgid "Cyclone Slider Nextgen Export"
    599611msgstr ""
    600612
    601 #: ../src/plugin.php:114
     613#: ../src/plugin.php:120
    602614msgid "Cyclone Slider Import"
    603615msgstr ""
  • cyclone-slider/trunk/src/CycloneSlider/Admin.php

    r1647737 r1676150  
    469469            }
    470470            if( $template['location_name'] == 'active-theme' ){
    471                 $templates[$name]['location_name'] = 'Active Theme';
     471                $templates[$name]['location_name'] = __('Active Theme', 'cycloneslider');
    472472                $templates[$name]['location_details'] = sprintf( __("Location: <strong>%s</strong>", 'cycloneslider' ), $template['path']);
    473473                $templates[$name]['warning'] = sprintf( __('Your template is in danger of being overwritten when you upgrade your theme. Please consider creating a WordPress plugin Cyclone Slider template.', 'cycloneslider' ) );
    474474            }
    475475            if( $template['location_name'] == 'wp-content' ){
    476                 $templates[$name]['location_name'] = 'WP Content';
     476                $templates[$name]['location_name'] = __('WP Content', 'cycloneslider');
    477477                $templates[$name]['location_details'] = sprintf( __("Location: <strong>%s</strong>", 'cycloneslider'), $template['path'] );
    478478            }
    479479            if( $template['location_name'] == 'plugin' ){
    480                 $templates[$name]['location_name'] = 'Plugin';
     480                $templates[$name]['location_name'] = __('Plugin', 'cycloneslider');
    481481                $templates[$name]['location_details'] = sprintf( __("Location: <strong>%s</strong>", 'cycloneslider'), $template['path'] );
    482482            }
  • cyclone-slider/trunk/src/CycloneSlider/Data.php

    r1650697 r1676150  
    812812        if(version_compare(PHP_VERSION, '5.3', '>=')) { // 5.3+
    813813            return array(
    814                 'fit'      => 'Fit',
    815                 'fill'     => 'Fill',
    816                 'crop'     => 'Crop',
    817                 'exact'      => 'Exact',
    818                 'exactWidth' => 'Exact Width',
    819                 'exactHeight'  => 'Exact Height'
     814                'fit'      => __('Fit', 'cycloneslider'),
     815                'fill'     => __('Fill', 'cycloneslider'),
     816                'crop'     => __('Crop', 'cycloneslider'),
     817                'exact'      => __('Exact', 'cycloneslider'),
     818                'exactWidth' => __('Exact Width', 'cycloneslider'),
     819                'exactHeight'  => __('Exact Height', 'cycloneslider')
    820820            );
    821821        } else { // 5.2
    822822            return array(
    823                 'auto'      => 'Auto',
    824                 'crop'      => 'Crop',
    825                 'exact'     => 'Exact',
    826                 'landscape' => 'Landscape',
    827                 'portrait'  => 'Portrait'
     823                'auto'      => __('Auto', 'cycloneslider'),
     824                'crop'      => __('Crop', 'cycloneslider'),
     825                'exact'     => __('Exact', 'cycloneslider'),
     826                'landscape' => __('Landscape', 'cycloneslider'),
     827                'portrait'  => __('Portrait', 'cycloneslider')
    828828            );
    829829        }
     
    837837    public function get_slide_effects(){
    838838        return array(
    839             'fade'=>'Fade',
    840             'fadeout'=>'Fade Out',
    841             'none'=>'None',
    842             'scrollHorz'=>'Scroll Horizontally',
    843             'tileBlind'=>'Tile Blind',
    844             'tileSlide'=>'Tile Slide'
     839            'fade'=>__('Fade', 'cycloneslider'),
     840            'fadeout'=>__('Fade Out', 'cycloneslider'),
     841            'none'=>__('None', 'cycloneslider'),
     842            'scrollHorz'=>__('Scroll Horizontally', 'cycloneslider'),
     843            'tileBlind'=>__('Tile Blind', 'cycloneslider'),
     844            'tileSlide'=>__('Tile Slide', 'cycloneslider')
    845845        );
    846846    }
     
    854854        return array(
    855855            array(
    856                 'text' => 'Default',
     856                'text' => __('Default', 'cycloneslider'),
    857857                'value' => ''
    858858            ),
    859859            array(
    860                 'text' => 'Swing',
     860                'text' => __('Swing', 'cycloneslider'),
    861861                'value' => 'swing'
    862862            ),
    863863            array(
    864                 'text' => 'Ease-In Quad',
     864                'text' => __('Ease-In Quad', 'cycloneslider'),
    865865                'value' => 'easeInQuad'
    866866            ),
    867867            array(
    868                 'text' => 'Ease-Out Quad',
     868                'text' => __('Ease-Out Quad', 'cycloneslider'),
    869869                'value' => 'easeOutQuad'
    870870            ),
    871871            array(
    872                 'text' => 'Ease-In OutQuad',
     872                'text' => __('Ease-In OutQuad', 'cycloneslider'),
    873873                'value' => 'easeInOutQuad'
    874874            ),
    875875            array(
    876                 'text' => 'Ease-In Cubic',
     876                'text' => __('Ease-In Cubic', 'cycloneslider'),
    877877                'value' => 'easeInCubic'
    878878            ),
    879879            array(
    880                 'text' => 'Ease-Out Cubic',
     880                'text' => __('Ease-Out Cubic', 'cycloneslider'),
    881881                'value' => 'easeOutCubic'
    882882            ),
    883883            array(
    884                 'text' => 'Ease-In OutCubic',
     884                'text' => __('Ease-In OutCubic', 'cycloneslider'),
    885885                'value' => 'easeInOutCubic'
    886886            ),
    887887            array(
    888                 'text' => 'Ease-In Quart',
     888                'text' => __('Ease-In Quart', 'cycloneslider'),
    889889                'value' => 'easeInQuart'
    890890            ),
    891891            array(
    892                 'text' => 'Ease-Out Quart',
     892                'text' => __('Ease-Out Quart', 'cycloneslider'),
    893893                'value' => 'easeOutQuart'
    894894            ),
    895895            array(
    896                 'text' => 'Ease-In OutQuart',
     896                'text' => __('Ease-In OutQuart', 'cycloneslider'),
    897897                'value' => 'easeInOutQuart'
    898898            ),
    899899            array(
    900                 'text' => 'Ease-In Quint',
     900                'text' => __('Ease-In Quint', 'cycloneslider'),
    901901                'value' => 'easeInQuint'
    902902            ),
    903903            array(
    904                 'text' => 'Ease-Out Quint',
     904                'text' => __('Ease-Out Quint', 'cycloneslider'),
    905905                'value' => 'easeOutQuint'
    906906            ),
    907907            array(
    908                 'text' => 'Ease-In OutQuint',
     908                'text' => __('Ease-In OutQuint', 'cycloneslider'),
    909909                'value' => 'easeInOutQuint'
    910910            ),
    911911            array(
    912                 'text' => 'Ease-In Sine',
     912                'text' => __('Ease-In Sine', 'cycloneslider'),
    913913                'value' => 'easeInSine'
    914914            ),
    915915            array(
    916                 'text' => 'Ease-Out Sine',
     916                'text' => __('Ease-Out Sine', 'cycloneslider'),
    917917                'value' => 'easeOutSine'
    918918            ),
    919919            array(
    920                 'text' => 'Ease-In OutSine',
     920                'text' => __('Ease-In OutSine', 'cycloneslider'),
    921921                'value' => 'easeInOutSine'
    922922            ),
    923923            array(
    924                 'text' => 'Ease-In Expo',
     924                'text' => __('Ease-In Expo', 'cycloneslider'),
    925925                'value' => 'easeInExpo'
    926926            ),
    927927            array(
    928                 'text' => 'Ease-Out Expo',
     928                'text' => __('Ease-Out Expo', 'cycloneslider'),
    929929                'value' => 'easeOutExpo'
    930930            ),
    931931            array(
    932                 'text' => 'Ease-In OutExpo',
     932                'text' => __('Ease-In OutExpo', 'cycloneslider'),
    933933                'value' => 'easeInOutExpo'
    934934            ),
    935935            array(
    936                 'text' => 'Ease-In Circ',
     936                'text' => __('Ease-In Circ', 'cycloneslider'),
    937937                'value' => 'easeInCirc'
    938938            ),
    939939            array(
    940                 'text' => 'Ease-Out Circ',
     940                'text' => __('Ease-Out Circ', 'cycloneslider'),
    941941                'value' => 'easeOutCirc'
    942942            ),
    943943            array(
    944                 'text' => 'Ease-In OutCirc',
     944                'text' => __('Ease-In OutCirc', 'cycloneslider'),
    945945                'value' => 'easeInOutCirc'
    946946            ),
    947947            array(
    948                 'text' => 'Ease-In Elastic',
     948                'text' => __('Ease-In Elastic', 'cycloneslider'),
    949949                'value' => 'easeInElastic'
    950950            ),
    951951            array(
    952                 'text' => 'Ease-Out Elastic',
     952                'text' => __('Ease-Out Elastic', 'cycloneslider'),
    953953                'value' => 'easeOutElastic'
    954954            ),
    955955            array(
    956                 'text' => 'Ease-In OutElastic',
     956                'text' => __('Ease-In OutElastic', 'cycloneslider'),
    957957                'value' => 'easeInOutElastic'
    958958            ),
    959959            array(
    960                 'text' => 'Ease-In Back',
     960                'text' => __('Ease-In Back', 'cycloneslider'),
    961961                'value' => 'easeInBack'
    962962            ),
    963963            array(
    964                 'text' => 'Ease-Out Back',
     964                'text' => __('Ease-Out Back', 'cycloneslider'),
    965965                'value' => 'easeOutBack'
    966966            ),
    967967            array(
    968                 'text' => 'Ease-In OutBack',
     968                'text' => __('Ease-In OutBack', 'cycloneslider'),
    969969                'value' => 'easeInOutBack'
    970970            ),
    971971            array(
    972                 'text' => 'Ease-In Bounce',
     972                'text' => __('Ease-In Bounce', 'cycloneslider'),
    973973                'value' => 'easeInBounce'
    974974            ),
    975975            array(
    976                 'text' => 'Ease-Out Bounce',
     976                'text' => __('Ease-Out Bounce', 'cycloneslider'),
    977977                'value' => 'easeOutBounce'
    978978            ),
    979979            array(
    980                 'text' => 'Ease-In OutBounce',
     980                'text' => __('Ease-In OutBounce', 'cycloneslider'),
    981981                'value' => 'easeInOutBounce'
    982982            )
  • cyclone-slider/trunk/src/plugin.php

    r1650697 r1676150  
    77    global $cyclone_slider_plugin_instance;
    88
     9   
    910    $plugin = new CycloneSlider_Plugin();
     11   
    1012   
    1113    $plugin['path'] = realpath(plugin_dir_path(dirname(__FILE__))) . DIRECTORY_SEPARATOR;
     
    1517    $plugin['debug'] = false;
    1618    $plugin['textdomain'] = 'cs3_service_plugin_text_domain';
     19
     20    // Load as early as possible
     21    load_plugin_textdomain( $plugin['textdomain'], false, basename($plugin['path']).'/languages/' ); // Load language files
     22   
    1723    $plugin['slug'] = 'cs3_service_plugin_slug';
    1824    $plugin['nonce_name'] = 'cyclone_slider_builder_nonce';
     
    132138    require_once($plugin['path'].'src/functions.php'); // Function not autoloaded from the old days. Deprecated
    133139
    134     load_plugin_textdomain( $plugin['textdomain'], false, basename(dirname(__FILE__)).'/languages/' ); // Load language files
    135 
     140   
    136141    $plugin->run();
    137142
     
    173178        'text_domain' => 'Text Domain'
    174179    );
    175     $object = get_file_data( __FILE__, $default_headers, 'plugin' ); // WP Func
     180    $object = get_file_data( $plugin['path'].DIRECTORY_SEPARATOR.'cyclone-slider.php', $default_headers, 'plugin' ); // WP Func
    176181
    177182    return $object;
     
    196201    }
    197202
    198     $object = $plugin['plugin_headers']['text_domain'];
     203    $object = trim($plugin['plugin_headers']['text_domain']);
    199204    return $object;
    200205}
Note: See TracChangeset for help on using the changeset viewer.