Plugin Directory

Changeset 1675348


Ignore:
Timestamp:
06/10/2017 08:22:33 AM (9 years ago)
Author:
kosinix
Message:

To trunk 2.0.0

Location:
bxslider-wp/trunk
Files:
15 added
4 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • bxslider-wp/trunk/README.txt

    r1061070 r1675348  
    22Contributors: kosinix
    33Donate link: http://www.codefleet.net/donate/
    4 Tags: bxslider, wordpress, slider, slideshow, carousel, jquery, responsive, multilingual, custom post
     4Tags: bxslider, multilingual, rtl, ltr, wordpress, slider, slideshow, carousel, jquery, responsive, custom post
    55Requires at least: 3.5
    6 Tested up to: 4.1
    7 Stable tag: 1.5.2
    8 License: GPLv2 or later
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     6Tested up to: 4.8
     7Stable tag: trunk
     8License: GPLv3
     9License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    1111An easy-to-use WordPress slider plugin for bxSlider.
     
    3030
    3131= More Info =
    32 Learn more about [BxSlider WP](http://www.codefleet.net/bxslider-wp/).
     32Learn more about [BxSlider WP](https://www.codefleet.net/bxslider-wp/).
    3333
    3434= Premium Version =
     
    3636
    3737= Examples =
    38 Check out what you can do with these [examples](http://www.codefleet.net/bxslider-wp/examples/).
     38Check out what you can do with these [examples](https://www.codefleet.net/bxslider-wp/examples/).
    3939
    4040= Credits =
     
    7878
    7979== Changelog ==
     80
     81= 2.0.0 - 2017-06-10 =
     82* Major refactoring. Now shares the same codebase with pro.
     83* Fix language files not loading.
     84* Tested with latest WordPress version.
     85* More RTL support in the GUI.
    8086
    8187= 1.5.2 - 2015-01-06 =
     
    125131== Upgrade Notice ==
    126132
    127 = 1.5.2 - 2015-01-06 =
    128 * Merge with changes from pro.
    129 * Change codebase to use dependency injection container, autoloader and improved template view class.
    130 
    131 = 1.4.1 - 2014-09-02 =
    132 * Fix. Regression bug where function bxslider() does not work anymore.
    133 
    134 = 1.4.0 - 2014-08-30 =
    135 * Major code refactoring and clean-up for future updates. Plugin now easily overridable.
    136 * Activating free and pro at the same time will not trigger an error. Pro will just override it. Both versions should be 1.4.0 or greater for this to work.
    137 * Updated bxslider scripts to 4.1.2.
    138 * Fix bug when using horizontal mode when using CSS transitions ("Use CSS" checked in settings).
    139 
    140 = 1.3.3 - 2013-08-14 =
    141 * Added metabox to easily grab slider codes.
    142 * Added function bxslider to display slider in template files.
    143 * Fix readme grammar.
    144 
    145 = 1.3.2 - 2013-08-09 =
    146 * Normalized css for twentytwelve and twentythirteen themes.
    147 * Added styles to prevent FOUC (flash of unstyled content).
    148 * Caption option now defaults to true.
    149 * Add function check to prevent "function already exists" conflict with premium version.
    150 * Fix for WPMU by loading language in plugins_loaded hook.
    151 * Check for ABSPATH in template views.
    152 * Allowed slider script and view path to be easily overridden in functions.php.
    153 
    154 = 1.3.1 - 2013-07-19 =
    155 * Added ability to add multiple images at once.
    156 * Fix slider on RTL themes.
    157 * Added Hebrew language files and translations.
    158 
    159 = 1.0.0 - 2013-07-11 =
    160 * Added ability to add links to images; and option to open a link in the same window or new tab.
    161 * Added ability to easily select and copy the shortcode.
    162 * Only load jquery easing and fitvid scripts when needed.
    163 * Added minified version of initialization script.
    164 * Updated language files.
    165 * Code enhancements and updated strings.
    166 
    167 = 0.0.9 - 2013-07-05 =
    168 * Initial release.
     133See changelog
  • bxslider-wp/trunk/css/admin.css

    r754008 r1675348  
    3939    border-right:1px solid #D3D3D3;
    4040}
     41.rtl .bxslider-header .bxslider-icon{
     42    float:right;
     43    border-left:1px solid #D3D3D3;
     44    border-right:0;
     45}
    4146.bxslider-icon i{
    4247    width:14px;
     
    6671    margin-left: -1px;
    6772}
     73.rtl .bxslider-title{
     74    float:right;
     75    border-right: 1px solid #D3D3D3;
     76    margin-right: -1px;
     77    border-left: 0;
     78    margin-left: 0;
     79}
    6880.bxslider-controls{
    6981    float:right;
    7082    padding:5px;
     83}
     84.rtl .bxslider-controls{
     85    float:left;
    7186}
    7287.bxslider-drag,
     
    8095    height:15px;
    8196}
     97.rtl .bxslider-drag,
     98.rtl .bxslider-toggle,
     99.rtl .bxslider-delete{
     100    float:right;
     101    text-indent:99999px;
     102}
    82103.bxslider-drag{
    83104    display:none;
  • bxslider-wp/trunk/src/BxSliderWp/Admin.php

    r1061068 r1675348  
    33 * Class that handles the slideshow admin pages
    44 */
    5 class BxSliderWp_Admin extends BxSliderWp_Base {
    6    
    7     public function bootstrap(){
    8        
     5class BxSliderWp_Admin extends BxSliderWp_AutoInject implements BxSliderWp_IRunnable {
     6
     7    public function run(){
    98        // Register admin styles and scripts
    109        add_action( 'admin_enqueue_scripts', array( $this, 'register_wp_media' ), 9);
     
    7069            }
    7170           
    72             wp_enqueue_style( 'bxslider-admin-styles', $this->plugin['url'].'css/admin.css', array(), $this->plugin['version']  );
     71            wp_enqueue_style( 'bxslider-admin-styles', $this->plugin->get('url').'css/admin.css', array(), $this->plugin->get('version')  );
    7372           
    7473            // Scripts
    7574            wp_dequeue_script( 'autosave' );//disable autosave
    7675           
    77             wp_enqueue_script( 'store', $this->plugin['url'].'js/store-json2.min.js', array('jquery'), $this->plugin['version'] );
    78            
    79             wp_register_script( 'bxslider-admin-script', $this->plugin['url'].'js/admin.js', array('jquery', 'jquery-ui-sortable'), $this->plugin['version']  );
     76            wp_enqueue_script( 'store', $this->plugin->get('url').'js/store-json2.min.js', array('jquery'), $this->plugin->get('version') );
     77           
     78            wp_register_script( 'bxslider-admin-script', $this->plugin->get('url').'js/admin.js', array('jquery', 'jquery-ui-sortable'), $this->plugin->get('version')  );
    8079            wp_localize_script( 'bxslider-admin-script', 'bxslider',
    8180                array(
    8281                    'new_media_gallery' => $new_media_gallery,
    83                     'title'     => __( 'Select an image', $this->plugin['textdomain'] ), // This will be used as the default title
    84                     'title2'     => __( 'Select Images By Ctrl + Clicking Them', $this->plugin['textdomain'] ),
    85                     'button'    => __( 'Add to Slide', $this->plugin['textdomain']), // This will be used as the default button text
    86                     'button2'    => __( 'Add Images as Slides', $this->plugin['textdomain'] ),
    87                     'jquery_easing_options' => $this->to_select_options($this->plugin['data']->get_jquery_easing_options()),
    88                     'css_easing_options' => $this->to_select_options($this->plugin['data']->get_css_easing_options())
     82                    'title'     => __( 'Select an image', 'bxsliderwp' ), // This will be used as the default title
     83                    'title2'     => __( 'Select Images By Ctrl + Clicking Them', 'bxsliderwp' ),
     84                    'button'    => __( 'Add to Slide', 'bxsliderwp'), // This will be used as the default button text
     85                    'button2'    => __( 'Add Images as Slides', 'bxsliderwp' ),
     86                    'jquery_easing_options' => $this->to_select_options($this->plugin->get('data')->get_jquery_easing_options()),
     87                    'css_easing_options' => $this->to_select_options($this->plugin->get('data')->get_css_easing_options())
    8988                )
    9089            );
     
    104103            array(
    105104                'labels' => array(
    106                     'name' => __('BxSlider WP', $this->plugin['textdomain']),
    107                     'singular_name' => __('Slider', $this->plugin['textdomain']),
    108                     'add_new' => __('Add Slider', $this->plugin['textdomain']),
    109                     'add_new_item' => __('Add New Slider', $this->plugin['textdomain']),
    110                     'edit_item' => __('Edit Slider', $this->plugin['textdomain']),
    111                     'new_item' => __('New Slider', $this->plugin['textdomain']),
    112                     'view_item' => __('View Slider', $this->plugin['textdomain']),
    113                     'search_items' => __('Search Sliders', $this->plugin['textdomain']),
    114                     'not_found' => __('No sliders found', $this->plugin['textdomain']),
    115                     'not_found_in_trash' => __('No sliders found in Trash', $this->plugin['textdomain'])
     105                    'name' => __('BxSlider WP', 'bxsliderwp'),
     106                    'singular_name' => __('Slider', 'bxsliderwp'),
     107                    'add_new' => __('Add Slider', 'bxsliderwp'),
     108                    'add_new_item' => __('Add New Slider', 'bxsliderwp'),
     109                    'edit_item' => __('Edit Slider', 'bxsliderwp'),
     110                    'new_item' => __('New Slider', 'bxsliderwp'),
     111                    'view_item' => __('View Slider', 'bxsliderwp'),
     112                    'search_items' => __('Search Sliders', 'bxsliderwp'),
     113                    'not_found' => __('No sliders found', 'bxsliderwp'),
     114                    'not_found_in_trash' => __('No sliders found in Trash', 'bxsliderwp')
    116115                ),
    117116                'supports' => array('title'),
     
    155154        add_meta_box(
    156155            'bxslider-slides-meta-box',
    157             __('Slides', $this->plugin['textdomain']),
     156            __('Slides', 'bxsliderwp'),
    158157            array( $this, 'render_slides_meta_box' ),
    159158            'bxslider' ,
     
    163162        add_meta_box(
    164163            'bxslider-slider-codes',
    165             __('Get Slider Codes', $this->plugin['textdomain']),
     164            __('Get Slider Codes', 'bxsliderwp'),
    166165            array( $this, 'render_slider_codes' ),
    167166            'bxslider' ,
     
    171170        add_meta_box(
    172171            'bxslider-general-options-meta-box',
    173             __('General Options', $this->plugin['textdomain']),
     172            __('General Options', 'bxsliderwp'),
    174173            array( $this, 'render_general_options_meta_box' ),
    175174            'bxslider' ,
     
    179178        add_meta_box(
    180179            'bxslider-pager-options-meta-box',
    181             __('Pager Options', $this->plugin['textdomain']),
     180            __('Pager Options', 'bxsliderwp'),
    182181            array( $this, 'render_pager_options_meta_box' ),
    183182            'bxslider' ,
     
    187186        add_meta_box(
    188187            'bxslider-controls-options-meta-box',
    189             __('Controls Options', $this->plugin['textdomain']),
     188            __('Controls Options', 'bxsliderwp'),
    190189            array( $this, 'render_controls_options_meta_box' ),
    191190            'bxslider' ,
     
    195194        add_meta_box(
    196195            'bxslider-auto-options-meta-box',
    197             __('Auto Options', $this->plugin['textdomain']),
     196            __('Auto Options', 'bxsliderwp'),
    198197            array( $this, 'render_auto_options_meta_box' ),
    199198            'bxslider' ,
     
    203202        add_meta_box(
    204203            'bxslider-carousel-options-meta-box',
    205             __('Carousel Options', $this->plugin['textdomain']),
     204            __('Carousel Options', 'bxsliderwp'),
    206205            array( $this, 'render_carousel_options_meta_box' ),
    207206            'bxslider' ,
     
    216215    public function render_slides_meta_box( $post ){
    217216
    218         $options = $this->plugin['data']->get_options($post->ID);
    219         $slides = $this->plugin['data']->get_slides($post->ID);
     217        $options = $this->plugin->get('data')->get_options($post->ID);
     218        $slides = $this->plugin->get('data')->get_slides($post->ID);
    220219       
    221220        $slides_html = '';
     
    227226                $vars = array();
    228227                $vars['i'] = $i;
    229                 $vars['slide'] = wp_parse_args($slide, $this->plugin['data']->get_slide_defaults());
     228                $vars['slide'] = wp_parse_args($slide, $this->plugin->get('data')->get_slide_defaults());
    230229                $vars['image_url'] = $this->get_slide_img_thumb($slide['id']);
    231                 $vars['box_title'] = __('Slide', $this->plugin['textdomain']);
    232                 $vars['textdomain'] = $this->plugin['textdomain'];
     230                $vars['box_title'] = __('Slide', 'bxsliderwp');
     231                $vars['textdomain'] = 'bxsliderwp';
    233232               
    234                 $slides_html .= $this->plugin['view']->get_render('slide-edit.php', $vars);
     233                $slides_html .= $this->plugin->get('view')->get_render('slide-edit.php', $vars);
    235234            endforeach;
    236235        endif;
     
    240239        $vars['post_id'] = $post->ID;
    241240       
    242         $this->plugin['view']->render( 'slides.php', $vars );
    243 
    244         if($this->plugin['debug']){
    245             $this->plugin['data']->debug( $this->plugin['data']->get_options( $post->ID ));
    246             $this->plugin['data']->debug( $this->plugin['data']->get_slides( $post->ID ));
     241        $this->plugin->get('view')->render( 'slides.php', $vars );
     242
     243        if($this->plugin->get('debug')){
     244            $this->plugin->get('data')->debug( $this->plugin->get('data')->get_options( $post->ID ));
     245            $this->plugin->get('data')->debug( $this->plugin->get('data')->get_slides( $post->ID ));
    247246        }
    248247    }
     
    263262        }
    264263       
    265         $this->plugin['view']->render('slider-codes.php', $vars);
     264        $this->plugin->get('view')->render('slider-codes.php', $vars);
    266265
    267266    }
     
    272271    public function render_general_options_meta_box( $post ){
    273272       
    274         $options = $this->plugin['data']->get_options( $post->ID );
     273        $options = $this->plugin->get('data')->get_options( $post->ID );
    275274
    276275        $vars = array();
    277276        $vars['options'] = $options;
    278         $vars['nonce_name'] = $this->plugin['nonce_name'];
    279         $vars['nonce'] = wp_create_nonce( $this->plugin['nonce_action'] );
     277        $vars['nonce_name'] = $this->plugin->get('nonce_name');
     278        $vars['nonce'] = wp_create_nonce( $this->plugin->get('nonce_action') );
    280279        $mode_options = array(
    281280            array(
     
    304303        // Easing
    305304        if($options['use_css']=='true'){
    306             $vars['easing_options'] = $this->to_select_options($this->plugin['data']->get_css_easing_options(), $options['easing']);
     305            $vars['easing_options'] = $this->to_select_options($this->plugin->get('data')->get_css_easing_options(), $options['easing']);
    307306        } else {
    308             $vars['easing_options'] = $this->to_select_options($this->plugin['data']->get_jquery_easing_options(), $options['easing']);
     307            $vars['easing_options'] = $this->to_select_options($this->plugin->get('data')->get_jquery_easing_options(), $options['easing']);
    309308        }
    310309       
     
    328327        $vars['preload_images_options'] = $preload_images_options;
    329328       
    330         $this->plugin['view']->render('general-options.php', $vars);
     329        $this->plugin->get('view')->render('general-options.php', $vars);
    331330
    332331    }
     
    337336    public function render_pager_options_meta_box( $post ){
    338337       
    339         $options = $this->plugin['data']->get_options( $post->ID );
     338        $options = $this->plugin->get('data')->get_options( $post->ID );
    340339        $vars = array();
    341340        $vars['options'] = $options;
     
    360359        $vars['pager_type_options'] = $pager_type_options;
    361360       
    362         $this->plugin['view']->render('pager-options.php', $vars);
     361        $this->plugin->get('view')->render('pager-options.php', $vars);
    363362    }
    364363   
     
    368367    public function render_controls_options_meta_box( $post ){
    369368       
    370         $options = $this->plugin['data']->get_options( $post->ID );
     369        $options = $this->plugin->get('data')->get_options( $post->ID );
    371370        $vars = array();
    372371        $vars['options'] = $options;
     
    391390        $vars['auto_controls_options'] = $auto_controls_options;
    392391       
    393         $this->plugin['view']->render('controls-options.php', $vars);
     392        $this->plugin->get('view')->render('controls-options.php', $vars);
    394393    }
    395394   
     
    399398    public function render_auto_options_meta_box( $post ){
    400399       
    401         $options = $this->plugin['data']->get_options( $post->ID );
     400        $options = $this->plugin->get('data')->get_options( $post->ID );
    402401        $vars = array();
    403402        $vars['options'] = $options;
     
    422421        $vars['auto_direction_options'] = $auto_direction_options;
    423422       
    424         $this->plugin['view']->render('auto-options.php', $vars);
     423        $this->plugin->get('view')->render('auto-options.php', $vars);
    425424    }
    426425   
     
    430429    public function render_carousel_options_meta_box( $post ){
    431430       
    432         $options = $this->plugin['data']->get_options( $post->ID );
     431        $options = $this->plugin->get('data')->get_options( $post->ID );
    433432        $vars = array();
    434433        $vars['options'] = $options;
     
    453452        $vars['auto_controls_options'] = $auto_controls_options;
    454453       
    455         $this->plugin['view']->render('carousel-options.php', $vars);
     454        $this->plugin->get('view')->render('carousel-options.php', $vars);
    456455    }
    457456   
     
    461460    public function slideshow_columns($columns) {
    462461        $columns = array();
    463         $columns['title']= __('Slider Name', $this->plugin['textdomain']);
    464         $columns['images']= __('Images', $this->plugin['textdomain']);
    465         $columns['id']= __('Slider ID', $this->plugin['textdomain']);
    466         $columns['shortcode']= __('Shortcode', $this->plugin['textdomain']);
     462        $columns['title']= __('Slider Name', 'bxsliderwp');
     463        $columns['images']= __('Images', 'bxsliderwp');
     464        $columns['id']= __('Slider ID', 'bxsliderwp');
     465        $columns['shortcode']= __('Shortcode', 'bxsliderwp');
    467466        return $columns;
    468467    }
     
    473472    public function custom_column( $column_name, $post_id ){
    474473        if ($column_name == 'images') {
    475             echo '<div style="text-align:center; max-width:40px;">' .$this->plugin['data']->get_slides_count($post_id). '</div>';
     474            echo '<div style="text-align:center; max-width:40px;">' .$this->plugin->get('data')->get_slides_count($post_id). '</div>';
    476475        }
    477476        if ($column_name == 'id') {
     
    494493        $messages['bxslider'] = array(
    495494            0  => '',
    496             1  => __( 'Slider updated.', $this->plugin['textdomain'] ),
    497             2  => __( 'Custom field updated.', $this->plugin['textdomain'] ),
    498             3  => __( 'Custom field deleted.', $this->plugin['textdomain'] ),
    499             4  => __( 'Slider updated.', $this->plugin['textdomain'] ),
    500             5  => __( 'Slider updated.', $this->plugin['textdomain'] ),
    501             6  => __( 'Slider created.', $this->plugin['textdomain'] ),
    502             7  => __( 'Slider saved.', $this->plugin['textdomain'] ),
    503             8  => __( 'Slider updated.', $this->plugin['textdomain'] ),
    504             9  => __( 'Slider updated.', $this->plugin['textdomain'] ),
    505             10 => __( 'Slider updated.', $this->plugin['textdomain'] )
     495            1  => __( 'Slider updated.', 'bxsliderwp' ),
     496            2  => __( 'Custom field updated.', 'bxsliderwp' ),
     497            3  => __( 'Custom field deleted.', 'bxsliderwp' ),
     498            4  => __( 'Slider updated.', 'bxsliderwp' ),
     499            5  => __( 'Slider updated.', 'bxsliderwp' ),
     500            6  => __( 'Slider created.', 'bxsliderwp' ),
     501            7  => __( 'Slider saved.', 'bxsliderwp' ),
     502            8  => __( 'Slider updated.', 'bxsliderwp' ),
     503            9  => __( 'Slider updated.', 'bxsliderwp' ),
     504            10 => __( 'Slider updated.', 'bxsliderwp' )
    506505        );
    507506        return $messages;
     
    516515        if(get_post_type()=='bxslider'){
    517516
    518             $slide = $this->plugin['data']->get_slide_defaults();
     517            $slide = $this->plugin->get('data')->get_slide_defaults();
    519518           
    520519            $vars = array();
    521520           
    522             $vars['debug'] = $this->plugin['debug'];
    523             $vars['box_title'] = __('Slide *', $this->plugin['textdomain']);
     521            $vars['debug'] = $this->plugin->get('debug');
     522            $vars['box_title'] = __('Slide *', 'bxsliderwp');
    524523            $vars['image_url'] = '';
    525524            $vars['i'] = '{id}';
     
    530529            <div class="bxslider-slide-skeleton">
    531530                <?php
    532                 $this->plugin['view']->render('slide-edit.php', $vars);
     531                $this->plugin->get('view')->render('slide-edit.php', $vars);
    533532                ?>
    534533            </div><!-- end .bxslider-box-template -->
     
    543542       
    544543        // Verify nonce
    545         if (!empty( $_POST[ $this->plugin['nonce_name'] ] )) {
    546             if (!wp_verify_nonce($_POST[ $this->plugin['nonce_name'] ], $this->plugin['nonce_action'] )) {
     544        if (!empty( $_POST[ $this->plugin->get('nonce_name') ] )) {
     545            if (!wp_verify_nonce($_POST[ $this->plugin->get('nonce_name') ], $this->plugin->get('nonce_action') )) {
    547546                return $post_id;
    548547            }
  • bxslider-wp/trunk/src/BxSliderWp/Data.php

    r1061068 r1675348  
    33 * Class for saving and getting data 
    44 */
    5 class BxSliderWp_Data extends BxSliderWp_Base {
     5class BxSliderWp_Data extends BxSliderWp_AutoInject {
    66   
    77    /**
  • bxslider-wp/trunk/src/BxSliderWp/Frontend.php

    r1061068 r1675348  
    33* Class that handles the front-end slider
    44*/
    5 class BxSliderWp_Frontend extends BxSliderWp_Base {
     5class BxSliderWp_Frontend extends BxSliderWp_AutoInject implements BxSliderWp_IRunnable {
    66   
    77    protected $scripts; // Hold the scripts
     
    99   
    1010   
    11     public function bootstrap() {
    12        
     11    public function run() {
    1312       
    1413        $this->styles = array(
    1514            'bxslider-styles' => array(
    16                 'url' => $this->plugin['url'].'bxslider/jquery.bxslider.css',
     15                'url' => $this->plugin->get('url').'bxslider/jquery.bxslider.css',
    1716                'deps' => array(),
    18                 'ver' => $this->plugin['version'],
     17                'ver' => $this->plugin->get('version'),
    1918                'media' => 'all'
    2019            )
     
    2322        $this->scripts = array(
    2423            'easing' => array(
    25                 'url' => $this->plugin['url'].'bxslider/plugins/jquery.easing.1.3.js',
     24                'url' => $this->plugin->get('url').'bxslider/plugins/jquery.easing.1.3.js',
    2625                'deps' => array('jquery'),
    27                 'ver' => $this->plugin['version']
     26                'ver' => $this->plugin->get('version')
    2827            ),
    2928            'fitvids' => array(
    30                 'url' => $this->plugin['url'].'bxslider/plugins/jquery.fitvids.js',
     29                'url' => $this->plugin->get('url').'bxslider/plugins/jquery.fitvids.js',
    3130                'deps' => array('jquery'),
    32                 'ver' => $this->plugin['version']
     31                'ver' => $this->plugin->get('version')
    3332            ),
    3433            'bxslider' => array(
    35                 'url' => $this->plugin['url'].'bxslider/jquery.bxslider.min.js',
     34                'url' => $this->plugin->get('url').'bxslider/jquery.bxslider.min.js',
    3635                'deps' => array('jquery'),
    37                 'ver' => $this->plugin['version']
     36                'ver' => $this->plugin->get('version')
    3837            ),
    3938            'bxslider-initialize' => array(
    40                 'url' => $this->plugin['url'].'js/initialize.js',
     39                'url' => $this->plugin->get('url').'js/initialize.js',
    4140                'deps' => array('bxslider'),
    42                 'ver' => $this->plugin['version']
     41                'ver' => $this->plugin->get('version')
    4342            )
    4443        );
     
    5049        add_shortcode('bxslider', array( $this, 'bxslider_shortcode') );
    5150       
    52     } // end constructor
     51    }
    5352   
    5453    /**
     
    6059        $is_using_jquery_easing = false;
    6160        $has_video = false;
    62         if($sliders = $this->plugin['data']->get_sliders()){
     61        if($sliders = $this->plugin->get('data')->get_sliders()){
    6362            foreach($sliders as $slider){
    64                 $options = $this->plugin['data']->get_options($slider->ID);
     63                $options = $this->plugin->get('data')->get_options($slider->ID);
    6564                if($options['use_css']=='false'){
    6665                    $is_using_jquery_easing = true;
     
    119118        $output = '';
    120119       
    121         if( $slider = $this->plugin['data']->get_slider_by_name( $name ) ){
     120        if( $slider = $this->plugin->get('data')->get_slider_by_name( $name ) ){
    122121
    123             $slides = $this->plugin['data']->get_slides( $slider->ID );
    124             $options = $this->plugin['data']->get_options( $slider->ID );
     122            $slides = $this->plugin->get('data')->get_slides( $slider->ID );
     123            $options = $this->plugin->get('data')->get_options( $slider->ID );
    125124           
    126125            $vars = array();
     
    128127            $vars['options'] = $options;
    129128            $vars['slider_id'] = $slider->ID;
    130             $vars['data_attributes'] = $this->plugin['data']->format_options( $slider->ID );
     129            $vars['data_attributes'] = $this->plugin->get('data')->format_options( $slider->ID );
    131130           
    132131            foreach($vars['slides'] as $i=>$slide){
    133                 $vars['slides'][$i] = wp_parse_args($slide, $this->plugin['data']->get_slide_defaults()); //Apply defaults in case some keys are missing
     132                $vars['slides'][$i] = wp_parse_args($slide, $this->plugin->get('data')->get_slide_defaults()); //Apply defaults in case some keys are missing
    134133                $image_url = wp_get_attachment_image_src( $slide['id'], 'full' );
    135134                $image_url = (is_array($image_url)) ? $image_url[0] : '';
    136135                $vars['slides'][$i]['image_url'] = $image_url;
    137136            }
    138             $view_path = apply_filters('bxslider_view_path', $this->plugin['path'] . 'views/slider.php', $slider->post_name, $options, $slides);
     137            $view_path = apply_filters('bxslider_view_path', $this->plugin->get('path') . 'views/slider.php', $slider->post_name, $options, $slides);
    139138           
    140             $output = $this->plugin['view']->get_render('slider.php', $vars);
     139            $output = $this->plugin->get('view')->get_render('slider.php', $vars);
    141140        } else {
    142             $output = sprintf(__('[Slider "%s" not found]', $this->plugin['textdomain']), $name);
     141            $output = sprintf(__('[Slider "%s" not found]', 'bxsliderwp'), $name);
    143142        }
    144143       
  • bxslider-wp/trunk/src/BxSliderWp/SettingsPage.php

    r1061068 r1675348  
    33* Class for settings page
    44*/
    5 class BxSliderWp_SettingsPage extends BxSliderWp_Base {
     5class BxSliderWp_SettingsPage extends BxSliderWp_AutoInject implements BxSliderWp_IRunnable {
    66   
    77   
    8     public function bootstrap() {
     8    public function run() {
    99
    1010        // Add settings
     
    1818        // Use built-in WP function
    1919        add_submenu_page(
    20             $this->plugin['settings_page.parent_slug'],
    21             $this->plugin['settings_page.page_title'],
    22             $this->plugin['settings_page.menu_title'],
     20            $this->plugin->get('settings_page.parent_slug'),
     21            $this->plugin->get('settings_page.page_title'),
     22            $this->plugin->get('settings_page.menu_title'),
    2323            'manage_options',
    24             $this->plugin['settings_page.menu_slug'],
     24            $this->plugin->get('settings_page.menu_slug'),
    2525            array( $this, 'render_settings_page')
    2626        );
     
    3636       
    3737        $vars = array();
    38         $vars['textdomain'] = $this->plugin['textdomain'];
    39         $vars['page_title'] = $this->plugin['settings_page.page_title'];
     38        $vars['page_title'] = $this->plugin->get('settings_page.page_title');
    4039       
    4140        if ( version_compare( $wp_version, '3.7', '<=' ) ) { // WP 3.7 and below
     
    4544        }
    4645       
    47         $vars['settings_fields'] = $this->settings_fields( $this->plugin['settings_page.option_group'] );
    48         $vars['option_name'] = $this->plugin['settings_page.option_name'];
     46        $vars['settings_fields'] = $this->settings_fields( $this->plugin->get('settings_page.option_group') );
     47        $vars['option_name'] = $this->plugin->get('settings_page.option_name');
    4948        $vars['settings_data'] = $settings_data;
    50         $vars['debug'] = $this->plugin['debug'];
    51         $vars['debug_info'] = ($this->plugin['debug']) ? '<pre>'.print_r( $vars['settings_data'], true ).'</pre>' : '';
     49        $vars['debug'] = $this->plugin->get('debug');
     50        $vars['debug_info'] = ($this->plugin->get('debug')) ? '<pre>'.print_r( $vars['settings_data'], true ).'</pre>' : '';
    5251       
    53         $this->plugin['view']->render('settings-page.php', $vars);
     52        $this->plugin->get('view')->render('settings-page.php', $vars);
    5453    }
    5554   
     
    5958    public function register_settings() {
    6059        register_setting(
    61             $this->plugin['settings_page.option_group'],
    62             $this->plugin['settings_page.option_name'],
     60            $this->plugin->get('settings_page.option_group'),
     61            $this->plugin->get('settings_page.option_name'),
    6362            array( $this, 'validate_options')
    6463        );
     
    7574        if( isset($_POST['reset']) ){
    7675            $input = $this->get_default_settings_data();
    77             add_settings_error( $this->plugin['settings_page.menu_slug'], 'restore_defaults', __( 'Default options restored.', $this->plugin['textdomain']), 'updated fade' );
     76            add_settings_error( $this->plugin->get('settings_page.menu_slug'), 'restore_defaults', __( 'Default options restored.', 'bxsliderwp'), 'updated fade' );
    7877        }
    7978        return $input;
     
    8483    */
    8584    public function get_settings_data(){
    86         return get_option( $this->plugin['settings_page.option_name'], $this->get_default_settings_data() );
     85        return get_option( $this->plugin->get('settings_page.option_name'), $this->get_default_settings_data() );
    8786    }
    8887   
     
    122121    }
    123122   
    124 } // end class
     123}
  • bxslider-wp/trunk/src/BxSliderWp/Updater.php

    r1061068 r1675348  
    11<?php
    22/**
    3 * Class for updating plugin
    4 */
    5 class BxSliderWp_Updater extends BxSliderWp_Base {
    6    
    7     private $license_id;
    8     private $license_key;
    9    
    10     public function bootstrap(){
    11         $settings_data = $this->plugin['settings_page']->get_settings_data();
    12         $this->license_id = $settings_data['license_id'];
    13         $this->license_key = $settings_data['license_key'];
    14         $this->check_updates();
    15     }
    16    
    17     /**
    18     * Check updates
    19     */
    20     public function check_updates($force_check=false){
    21        
    22         if($force_check){
    23             delete_site_transient('update_plugins'); // Force check
    24         }
    25        
    26         // Insert custom plugins info to 'update_plugins" site transient
    27         add_filter('pre_set_site_transient_update_plugins', array($this, 'check_plugin'));
    28        
    29         // Define the alternative response for information checking
    30         add_filter('plugins_api', array($this, 'check_info'), 10, 3);
    31     }
    32    
    33     /**
    34     * Check update for each plugin in the list
    35     *
    36     * @param object $transient - The site transient containing plugin info
    37     */
    38     public function check_plugin($transient) {
    39        
    40         // Return we already checked
    41         if (empty($transient->checked)) {
    42             return $transient;
    43         }
    44        
    45         // Get the remote plugin info
    46         $latest_plugin = $this->get_latest_plugin_info($this->plugin['updater.info_url']);
    47        
    48         if( $latest_plugin ) {
    49            
    50             // If a newer version is available, add the update info
    51             if ( version_compare($this->plugin['version'], $latest_plugin->version, '<') ) {
    52                
    53                 // Prepare needed info for transient using objects
    54                 $obj = new stdClass();
    55                
    56                 $obj->slug = $latest_plugin->slug;
    57                 $obj->new_version = $latest_plugin->version;
    58                 $obj->url = $latest_plugin->url;
    59                
    60                
    61                 $api_url = $this->plugin['updater.download_url'];
    62                 $client_time = time();
    63                 $license_id = $this->license_id;
    64                 $license_key = $this->license_key;
    65        
    66                 $obj->package = $this->generate_package_url($api_url, $client_time, $license_id, $license_key);
    67                
    68                 $transient->response[ $obj->slug ] = $obj;
    69             }
    70            
    71         }
    72        
    73         return $transient;
    74     }
     3 * Class for updating plugin
     4 */
     5class BxSliderWp_Updater implements BxSliderWp_IRunnable {
    756
    76     /**
    77     * Add our self-hosted description to the filter
    78     */
    79     public function check_info($false, $action, $arg) {
    80        
    81         if ( isset($arg->slug) and $arg->slug === $this->plugin['slug'] ) { // Plugin slug format: {folder-name}/{main-file.php}
    82            
    83             // Get the remote version
    84             if( $latest_plugin = $this->get_latest_plugin_info( $this->plugin['updater.info_url'] ) ) {
    85                
    86                 // Build needed info
    87                 $information = new stdClass();
    88                 $information->name = $this->plugin['name'];
    89                 $information->slug = $this->plugin['slug'];
    90                 $information->version = $latest_plugin->version;
    91                 $information->author = $latest_plugin->author;
    92                 $information->homepage = $latest_plugin->homepage;
    93                 $information->requires = $latest_plugin->requires; 
    94                 $information->tested = $latest_plugin->tested; 
    95                 $information->downloaded = $latest_plugin->downloaded; 
    96                 $information->last_updated = $latest_plugin->last_updated; 
    97                 $information->sections = $this->format_sections((array) $latest_plugin->sections);
    98                
    99                 $api_url = $this->plugin['updater.download_url'];
    100                 $client_time = time();
    101                 $license_id = $this->license_id;
    102                 $license_key = $this->license_key;
    103                
    104                 $information->download_link = $this->generate_package_url($api_url, $client_time, $license_id, $license_key);
    105    
    106                 return $information;
    107             }
    108         }
    109            
    110         return $false;
    111     }
    112    
    113    
    114    
    115     /**
    116     * Fetch plugin info from remote url
    117     *
    118     * @param string $info_url - URL to API endpoint that returns latest plugin version + plugin info
    119     * @return object $response
    120     */
    121     public function get_latest_plugin_info( $info_url ) {
    122        
    123         $raw_response = wp_remote_get( $info_url );
    124        
    125         if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) )
    126             return false;
    127        
    128         $response = json_decode( wp_remote_retrieve_body( $raw_response ) );
    129        
    130         if(!isset($response->data)){
    131             return false;
    132         }
    133         return $response->data;
    134     }
    135    
    136    
    137     protected function format_sections( $sections ) {
    138         return array(
    139             'description' => $sections['description'],
    140             'installation' => $sections['installation'],
    141             'changelog' => $this->format_changelog( $sections['changelog'] )
    142         );
    143     }
    144    
    145     protected function format_changelog( $changelog ) {
    146         $html = '<ul>';
    147         foreach($changelog as $log){
    148             $html .= '<li>'.$log.'</li>';
    149         }
    150         $html .= '</ul>';
    151         return $html;
    152     }
    153    
    154     protected function generate_package_url($api_url, $client_time, $license_id, $license_key){
    155        
    156         $query_string = http_build_query(array(
    157             't' => $client_time,//uses time(),
    158             'lid' => $license_id
    159         ));
    160        
    161         $digest = $api_url.' '.$query_string.' '.$license_key;
    162        
    163         $signature = hash( 'sha256', $digest );
    164        
    165         $query_array = array(
    166             't' => $client_time,
    167             'lid' => $license_id,
    168             'signature' => $signature
    169         );
    170         $query_string = http_build_query($query_array);
    171         return $this->plugin['updater.download_url'].'?'.$query_string;
    172    
    173     }
    174 } // end class
     7    protected $api_endpoint;
     8    protected $license;
     9    protected $secret_key;
     10    protected $wp_slug;
     11    protected $version;
     12
     13    public function __construct( $api_endpoint, $license, $secret, $wp_slug, $version ) {
     14
     15        $this->api_endpoint = $api_endpoint;
     16        $this->license = $license;
     17        $this->secret_key = $secret;
     18        $this->wp_slug = $wp_slug;
     19        $this->version = $version;
     20
     21    }
     22
     23    public function run() {
     24
     25        // Uncomment to force check updates
     26//      delete_option( '_site_transient_update_plugins' ); // Force check
     27
     28        // Allow testing on localhost. Comment this out on production for security reason!
     29//      add_filter( 'http_request_host_is_external', '__return_true' );
     30
     31        // Insert updates
     32        add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) );
     33
     34        // Define the alternative response for information checking
     35        add_filter( 'plugins_api', array( $this, 'check_info' ), 10, 3 );
     36
     37    }
     38
     39    public function check_update($transient) {
     40
     41        // Return we already checked
     42        if (empty($transient->checked)) {
     43            return $transient;
     44        }
     45
     46        // Get the remote plugin info
     47        $latest_plugin = $this->get_plugin_info();
     48
     49        // Latest plugin check
     50        if( $latest_plugin ) {
     51
     52            // If a newer version is available, add the update info
     53            if ( version_compare( $this->version, $latest_plugin->version, '<') ) {
     54
     55                // Prepare needed info for transient using objects
     56                $obj = new stdClass();
     57
     58                $obj->slug = $this->derive_simple_slug( $latest_plugin->slug ); // Make update ajax work
     59                $obj->plugin = $latest_plugin->slug;
     60                $obj->new_version = $latest_plugin->version;
     61                $obj->url = $latest_plugin->homepage;
     62                $obj->package = $latest_plugin->download_link;
     63
     64                $transient->response[ $obj->plugin ] = $obj;
     65            }
     66
     67        }
     68
     69        return $transient;
     70    }
     71
     72    public function check_info($false, $action, $arg) {
     73
     74        if ( isset($arg->slug) and $arg->slug === $this->derive_simple_slug($this->wp_slug) ) { // Plugin slug format: {folder-name}/{main-file.php}
     75
     76            // Get the remote plugin info
     77            $latest_plugin = $this->get_plugin_info();
     78
     79            // Latest plugin check
     80            if( $latest_plugin ) {
     81
     82                // Build needed info
     83                $information                 = new stdClass();
     84                $information->name           = $latest_plugin->name;
     85                $information->slug           = $this->derive_simple_slug( $latest_plugin->slug ); // TODO: Maybe return a simple slug and a plugin slug
     86                $information->version        = $latest_plugin->version;
     87                $information->author         = $latest_plugin->author;
     88                $information->homepage       = $latest_plugin->homepage;
     89                $information->requires       = $latest_plugin->requires;
     90                $information->tested         = $latest_plugin->tested;
     91                $information->last_updated   = $latest_plugin->last_updated;
     92                $information->sections       = array(
     93                    'description'  => $latest_plugin->description,
     94                    'installation' => $latest_plugin->installation,
     95                    'changelog'    => $this->nice_changelog($latest_plugin->changelog, $latest_plugin->version)
     96                );
     97                $information->download_link  = $latest_plugin->download_link;
     98                $information->banners['low'] = $latest_plugin->banner; // TODO: Banner low and high
     99
     100                return $information;
     101            }
     102        }
     103
     104        return $false;
     105    }
     106
     107    protected function nice_changelog( $changelog, $version ) {
     108        $changelog_array = preg_split("/\r\n|\n|\r/", $changelog);
     109        $output = '<h4>'.$version.'</h4>';
     110        $output .= '<ul>';
     111        foreach($changelog_array as $log){
     112            $output .= '<li>'.$log.'</li>';
     113        }
     114        return $output.'</ul>';
     115    }
     116
     117    public function get_plugin_info(){
     118        // Create client
     119        $restClient = new BxSliderWp_Crispin_RestClientWp(
     120            $this->license,
     121            $this->secret_key,
     122            true
     123        );
     124
     125        // Get the remote version
     126        $query = http_build_query(array(
     127            'plugin' => $this->derive_simple_slug( $this->wp_slug ),
     128            'version' => 'latest',
     129            'action' => 'info'
     130        ));
     131        $response = $restClient->get($this->api_endpoint.'?'.$query);
     132
     133        if( is_array($response) and $response['response']['code'] >= 200 and $response['response']['code'] <= 299 ){
     134            return json_decode($response['body']);
     135        }
     136        return '';
     137    }
     138
     139    protected function derive_simple_slug( $plugin_wp_slug ){
     140
     141        $slashPos = strpos($plugin_wp_slug, '/');
     142        if( false === $slashPos ){ // No slash found, assume php file name. Eg. format: foo-bar.php
     143            return basename($plugin_wp_slug,'.php'); // Remove .php extension and returns "foo-bar"
     144        }
     145        // Slash found, use it as ending position for substr()
     146        return substr($plugin_wp_slug, 0, $slashPos); // Eg. "plugin-folder/foo-bar.php" returns "plugin-folder"
     147    }
     148}
  • bxslider-wp/trunk/src/BxSliderWp/View.php

    r1061068 r1675348  
    11<?php
    2 
    32/**
    43* Simple class for fetching template files and attaching template variables
    54*/
    6 
    75class BxSliderWp_View {
    86   
     
    3836    */
    3937    public function render($file, $vars = array()){
     38        $vars = apply_filters('bxsliderwp_pre_render_view_vars', $vars);
    4039        $view_file = $this->right_sep($this->view_folder).$file; // Add directory separator if needed
     40        $view_file = apply_filters('bxsliderwp_pre_render_view_file', $view_file);
    4141        if(@file_exists($view_file)){
    4242            if(!empty($vars)){
    4343                extract($vars, EXTR_SKIP); // Extract variables
    4444            }
    45            
    46             include($view_file); //Include the view file
     45
     46            include $view_file; //Include the view file
    4747        } else {
    4848            echo '<p>Not found '.$view_file.'</p>';
  • bxslider-wp/trunk/src/BxSliderWp/WidgetSlider.php

    r1061068 r1675348  
    1111        parent::__construct(
    1212            'bxslider-widget', // Base ID
    13             __( 'BxSlider Widget', 'bxslider' ), // Name
    14             array( 'description' => __( 'Widget for displaying sliders.', 'bxslider' ), ) // Args
     13            __( 'BxSlider Widget', 'bxsliderwp' ), // Name
     14            array( 'description' => __( 'Widget for displaying sliders.', 'bxsliderwp' ), ) // Args
    1515        );
    1616    }
     
    5050        if($sliders = BxSliderWp_Data::get_sliders() ):
    5151        ?>
    52             <label for="<?php echo $this->get_field_id('slider'); ?>"><?php _e('Select a slider:', 'bxslider'); ?></label>
     52            <label for="<?php echo $this->get_field_id('slider'); ?>"><?php _e('Select a slider:', 'bxsliderwp'); ?></label>
    5353            <select class="widefat" id="<?php echo $this->get_field_id('slider'); ?>" name="<?php echo $this->get_field_name('slider'); ?>">
    5454                <option value=""></option>
     
    6161            </select>
    6262        <?php else: ?>
    63             <?php _e('No sliders found.', 'bxslider'); ?>
     63            <?php _e('No sliders found.', 'bxsliderwp'); ?>
    6464        <?php endif; ?>
    6565        </p>
  • bxslider-wp/trunk/src/BxSliderWp/Widgets.php

    r1061068 r1675348  
    33* Class for initializing widgets
    44*/
    5 class BxSliderWp_Widgets extends BxSliderWp_Base {
     5class BxSliderWp_Widgets implements BxSliderWp_IRunnable {
    66
    77    /**
    88     * Initialize
    99     */
    10     public function bootstrap() {
     10    public function run() {
    1111        add_action('widgets_init', array( $this, 'register_widgets') );
    1212    }
     
    1919    }
    2020   
    21 } // end class
     21}
  • bxslider-wp/trunk/views/auto-options.php

    r754008 r1675348  
    11<?php if(!defined('ABSPATH')) die('Direct access denied.'); ?>
    2 <div class="bxslider-cover"><p>Available in <a href="http://www.codefleet.net/bxslider-wp/">premium</a> version.</p></div>
     2<div class="bxslider-cover"><p><?php echo sprintf(__('Available in %s version.','bxsliderwp'), '<a href="https://www.codefleet.net/bxslider-wp-pro/">premium</a>'); ?></p></div>
    33<div class="bxslider-field">
    4     <label for="bxslider_options_auto"><?php _e('Auto:', 'bxslider'); ?> </label>
     4    <label for="bxslider_options_auto"><?php _e('Auto:', 'bxsliderwp'); ?> </label>
    55    <input type="hidden" name="bxslider[options][auto]" value="false" />
    6     <input id="bxslider_options_auto" type="checkbox" name="bxslider[options][auto]" value="true" <?php echo ($options['auto']=='true') ? 'checked="checked"' : ''; ?> />
    7     <label for="bxslider_options_auto" class="note"><?php _e('If checked, slides will automatically transition.', 'bxslider'); ?></label>
     6    <input id="bxslider_options_auto" type="checkbox" value="true" <?php echo ($options['auto']=='true') ? 'checked="checked"' : ''; ?> />
     7    <label for="bxslider_options_auto" class="note"><?php _e('If checked, slides will automatically transition.', 'bxsliderwp'); ?></label>
    88    <div class="clear"></div>
    99</div>
    1010<div class="bxslider-field">
    11     <label for="bxslider_options_pause"><?php _e('Pause:', 'bxslider'); ?> </label>
    12     <input id="bxslider_options_pause" type="number" name="bxslider[options][pause]" value="<?php echo esc_attr($options['pause']); ?>" />
    13     <span class="note"><?php _e('The amount of time (in ms) between each auto transition.', 'bxslider'); ?></span>
     11    <label for="bxslider_options_pause"><?php _e('Pause:', 'bxsliderwp'); ?> </label>
     12    <input id="bxslider_options_pause" type="number" value="<?php echo esc_attr($options['pause']); ?>" />
     13    <span class="note"><?php _e('The amount of time (in ms) between each auto transition.', 'bxsliderwp'); ?></span>
    1414    <div class="clear"></div>
    1515</div>
    1616<div class="bxslider-field">
    17     <label for="bxslider_options_auto_start"><?php _e('Auto Start:', 'bxslider'); ?> </label>
     17    <label for="bxslider_options_auto_start"><?php _e('Auto Start:', 'bxsliderwp'); ?> </label>
    1818    <input type="hidden" name="bxslider[options][auto_start]" value="false" />
    19     <input id="bxslider_options_auto_start" type="checkbox" name="bxslider[options][auto_start]" value="true" <?php echo ($options['auto_start']=='true') ? 'checked="checked"' : ''; ?> />
    20     <label for="bxslider_options_auto_start" class="note"><?php _e('Auto show starts playing on load. If unchecked, slideshow will start when the "Start" control is clicked.', 'bxslider'); ?></label>
     19    <input id="bxslider_options_auto_start" type="checkbox" value="true" <?php echo ($options['auto_start']=='true') ? 'checked="checked"' : ''; ?> />
     20    <label for="bxslider_options_auto_start" class="note"><?php _e('Auto show starts playing on load. If unchecked, slideshow will start when the "Start" control is clicked.', 'bxsliderwp'); ?></label>
    2121    <div class="clear"></div>
    2222</div>
    2323<div class="bxslider-field">
    24     <label for="bxslider_options_auto_direction"><?php _e('Auto Direction:', 'bxslider'); ?></label>
    25     <select id="bxslider_options_auto_direction" name="bxslider[options][auto_direction]">
     24    <label for="bxslider_options_auto_direction"><?php _e('Auto Direction:', 'bxsliderwp'); ?></label>
     25    <select id="bxslider_options_auto_direction">
    2626    <?php foreach($auto_direction_options as $auto_direction_option): ?>
    2727        <option <?php echo esc_attr($auto_direction_option['selected']); ?> value="<?php echo esc_attr($auto_direction_option['value']); ?>"><?php echo esc_attr($auto_direction_option['text']); ?></option>
    2828    <?php endforeach; ?>
    2929    </select>
    30     <span class="note"><?php _e('The direction of auto show slide transitions.', 'bxslider'); ?></span>
     30    <span class="note"><?php _e('The direction of auto show slide transitions.', 'bxsliderwp'); ?></span>
    3131    <div class="clear"></div>
    3232</div>
    3333<div class="bxslider-field">
    34     <label for="bxslider_options_auto_hover"><?php _e('Auto Hover:', 'bxslider'); ?> </label>
     34    <label for="bxslider_options_auto_hover"><?php _e('Auto Hover:', 'bxsliderwp'); ?> </label>
    3535    <input type="hidden" name="bxslider[options][auto_hover]" value="false" />
    36     <input id="bxslider_options_auto_hover" type="checkbox" name="bxslider[options][auto_hover]" value="true" <?php echo ($options['auto_hover']=='true') ? 'checked="checked"' : ''; ?> />
    37     <label for="bxslider_options_auto_hover" class="note"><?php _e('Auto show will pause when mouse hovers over slider.', 'bxslider'); ?></label>
     36    <input id="bxslider_options_auto_hover" type="checkbox" value="true" <?php echo ($options['auto_hover']=='true') ? 'checked="checked"' : ''; ?> />
     37    <label for="bxslider_options_auto_hover" class="note"><?php _e('Auto show will pause when mouse hovers over slider.', 'bxsliderwp'); ?></label>
    3838    <div class="clear"></div>
    3939</div>
    4040<div class="bxslider-field last">
    41     <label for="bxslider_options_auto_delay"><?php _e('Auto Delay:', 'bxslider'); ?> </label>
    42     <input id="bxslider_options_auto_delay" type="number" name="bxslider[options][auto_delay]" value="<?php echo esc_attr($options['auto_delay']); ?>" />
    43     <span class="note"><?php _e('Time (in ms) auto show should wait before starting.', 'bxslider'); ?></span>
     41    <label for="bxslider_options_auto_delay"><?php _e('Auto Delay:', 'bxsliderwp'); ?> </label>
     42    <input id="bxslider_options_auto_delay" type="number" value="<?php echo esc_attr($options['auto_delay']); ?>" />
     43    <span class="note"><?php _e('Time (in ms) auto show should wait before starting.', 'bxsliderwp'); ?></span>
    4444    <div class="clear"></div>
    4545</div>
  • bxslider-wp/trunk/views/carousel-options.php

    r754008 r1675348  
    11<?php if(!defined('ABSPATH')) die('Direct access denied.'); ?>
    2 <div class="bxslider-cover"><p>Available in <a href="http://www.codefleet.net/bxslider-wp/">premium</a> version.</p></div>
     2<div class="bxslider-cover"><p><?php echo sprintf(__('Available in %s version.','bxsliderwp'), '<a href="https://www.codefleet.net/bxslider-wp-pro/">premium</a>'); ?></p></div>
    33<div class="bxslider-field">
    4     <label for="bxslider_options_min_slides"><?php _e('Min Slides:', 'bxslider'); ?> </label>
    5     <input id="bxslider_options_min_slides" type="number" name="bxslider[options][min_slides]" value="<?php echo esc_attr($options['min_slides']); ?>" />
    6     <span class="note"><?php _e('The minimum number of slides to be shown. Slides will be sized down if carousel becomes smaller than the original size.', 'bxslider'); ?></span>
     4    <label for="bxslider_options_min_slides"><?php _e('Min Slides:', 'bxsliderwp'); ?> </label>
     5    <input id="bxslider_options_min_slides" type="number" value="<?php echo esc_attr($options['min_slides']); ?>" />
     6    <span class="note"><?php _e('The minimum number of slides to be shown. Slides will be sized down if carousel becomes smaller than the original size.', 'bxsliderwp'); ?></span>
    77    <div class="clear"></div>
    88</div>
    99<div class="bxslider-field">
    10     <label for="bxslider_options_max_slides"><?php _e('Max Slides:', 'bxslider'); ?> </label>
    11     <input id="bxslider_options_max_slides" type="number" name="bxslider[options][max_slides]" value="<?php echo esc_attr($options['max_slides']); ?>" />
    12     <span class="note"><?php _e('The maximum number of slides to be shown. Slides will be sized up if carousel becomes larger than the original size.', 'bxslider'); ?></span>
     10    <label for="bxslider_options_max_slides"><?php _e('Max Slides:', 'bxsliderwp'); ?> </label>
     11    <input id="bxslider_options_max_slides" type="number" value="<?php echo esc_attr($options['max_slides']); ?>" />
     12    <span class="note"><?php _e('The maximum number of slides to be shown. Slides will be sized up if carousel becomes larger than the original size.', 'bxsliderwp'); ?></span>
    1313    <div class="clear"></div>
    1414</div>
    1515<div class="bxslider-field">
    16     <label for="bxslider_options_move_slides"><?php _e('Move Slides:', 'bxslider'); ?> </label>
    17     <input id="bxslider_options_move_slides" type="number" name="bxslider[options][move_slides]" value="<?php echo esc_attr($options['move_slides']); ?>" />
    18     <span class="note"><?php _e('The number of slides to move on transition. This value must be ">= minSlides", and "<= maxSlides". If zero (default), the number of fully-visible slides will be used.', 'bxslider'); ?></span>
     16    <label for="bxslider_options_move_slides"><?php _e('Move Slides:', 'bxsliderwp'); ?> </label>
     17    <input id="bxslider_options_move_slides" type="number" value="<?php echo esc_attr($options['move_slides']); ?>" />
     18    <span class="note"><?php _e('The number of slides to move on transition. This value must be ">= minSlides", and "<= maxSlides". If zero (default), the number of fully-visible slides will be used.', 'bxsliderwp'); ?></span>
    1919    <div class="clear"></div>
    2020</div>
    2121<div class="bxslider-field last">
    22     <label for="bxslider_options_slide_width"><?php _e('Slide Width:', 'bxslider'); ?> </label>
    23     <input id="bxslider_options_slide_width" type="number" name="bxslider[options][slide_width]" value="<?php echo esc_attr($options['slide_width']); ?>" />
    24     <span class="note"><?php _e('The width of each slide. This setting is required for all horizontal carousels!', 'bxslider'); ?></span>
     22    <label for="bxslider_options_slide_width"><?php _e('Slide Width:', 'bxsliderwp'); ?> </label>
     23    <input id="bxslider_options_slide_width" type="number" value="<?php echo esc_attr($options['slide_width']); ?>" />
     24    <span class="note"><?php _e('The width of each slide. This setting is required for all horizontal carousels!', 'bxsliderwp'); ?></span>
    2525    <div class="clear"></div>
    2626</div>
  • bxslider-wp/trunk/views/controls-options.php

    r754008 r1675348  
    11<?php if(!defined('ABSPATH')) die('Direct access denied.'); ?>
    2 <div class="bxslider-cover"><p>Available in <a href="http://www.codefleet.net/bxslider-wp/">premium</a> version.</p></div>
     2<div class="bxslider-cover"><p><?php echo sprintf(__('Available in %s version.','bxsliderwp'), '<a href="https://www.codefleet.net/bxslider-wp-pro/">premium</a>'); ?></p></div>
    33<div class="bxslider-field">
    4     <label for="bxslider_options_controls"><?php _e('Controls:', 'bxslider'); ?> </label>
     4    <label for="bxslider_options_controls"><?php _e('Controls:', 'bxsliderwp'); ?> </label>
    55    <input type="hidden" name="bxslider[options][controls]" value="false" />
    6     <input id="bxslider_options_controls" type="checkbox" name="bxslider[options][controls]" value="true" <?php echo ($options['controls']=='true') ? 'checked="checked"' : ''; ?> />
    7     <label for="bxslider_options_controls" class="note"><?php _e('If checked, "Next" / "Prev" controls will be added.', 'bxslider'); ?></label>
     6    <input id="bxslider_options_controls" type="checkbox" value="true" <?php echo ($options['controls']=='true') ? 'checked="checked"' : ''; ?> />
     7    <label for="bxslider_options_controls" class="note"><?php _e('If checked, "Next" / "Prev" controls will be added.', 'bxsliderwp'); ?></label>
    88    <div class="clear"></div>
    99</div>
    1010<div class="bxslider-field">
    11     <label for="bxslider_options_next_text"><?php _e('Next Text:', 'bxslider'); ?> </label>
    12     <input id="bxslider_options_next_text" type="text" name="bxslider[options][next_text]" value="<?php echo esc_attr($options['next_text']); ?>" />
    13     <span class="note"><?php _e('Text to be used for the "Next" control.', 'bxslider'); ?></span>
     11    <label for="bxslider_options_next_text"><?php _e('Next Text:', 'bxsliderwp'); ?> </label>
     12    <input id="bxslider_options_next_text" type="text" value="<?php echo esc_attr($options['next_text']); ?>" />
     13    <span class="note"><?php _e('Text to be used for the "Next" control.', 'bxsliderwp'); ?></span>
    1414    <div class="clear"></div>
    1515</div>
    1616<div class="bxslider-field">
    17     <label for="bxslider_options_prev_text"><?php _e('Prev Text:', 'bxslider'); ?> </label>
    18     <input id="bxslider_options_prev_text" type="text" name="bxslider[options][prev_text]" value="<?php echo esc_attr($options['prev_text']); ?>" />
    19     <span class="note"><?php _e('Text to be used for the "Prev" control.', 'bxslider'); ?></span>
     17    <label for="bxslider_options_prev_text"><?php _e('Prev Text:', 'bxsliderwp'); ?> </label>
     18    <input id="bxslider_options_prev_text" type="text" value="<?php echo esc_attr($options['prev_text']); ?>" />
     19    <span class="note"><?php _e('Text to be used for the "Prev" control.', 'bxsliderwp'); ?></span>
    2020    <div class="clear"></div>
    2121</div>
    2222<div class="bxslider-field">
    23     <label for="bxslider_options_next_selector"><?php _e('Next Selector:', 'bxslider'); ?> </label>
    24     <input id="bxslider_options_next_selector" type="text" name="bxslider[options][next_selector]" value="<?php echo esc_attr($options['next_selector']); ?>" />
    25     <span class="note"><?php _e('Element used to populate the "Next" control.', 'bxslider'); ?></span>
     23    <label for="bxslider_options_next_selector"><?php _e('Next Selector:', 'bxsliderwp'); ?> </label>
     24    <input id="bxslider_options_next_selector" type="text" value="<?php echo esc_attr($options['next_selector']); ?>" />
     25    <span class="note"><?php _e('Element used to populate the "Next" control.', 'bxsliderwp'); ?></span>
    2626    <div class="clear"></div>
    2727</div>
    2828<div class="bxslider-field">
    29     <label for="bxslider_options_prev_selector"><?php _e('Prev Selector:', 'bxslider'); ?> </label>
    30     <input id="bxslider_options_prev_selector" type="text" name="bxslider[options][prev_selector]" value="<?php echo esc_attr($options['prev_selector']); ?>" />
    31     <span class="note"><?php _e('Element used to populate the "Prev" control.', 'bxslider'); ?></span>
     29    <label for="bxslider_options_prev_selector"><?php _e('Prev Selector:', 'bxsliderwp'); ?> </label>
     30    <input id="bxslider_options_prev_selector" type="text" value="<?php echo esc_attr($options['prev_selector']); ?>" />
     31    <span class="note"><?php _e('Element used to populate the "Prev" control.', 'bxsliderwp'); ?></span>
    3232    <div class="clear"></div>
    3333</div>
    3434<div class="bxslider-field">
    35     <label for="bxslider_options_auto_controls"><?php _e('Auto Controls:', 'bxslider'); ?> </label>
     35    <label for="bxslider_options_auto_controls"><?php _e('Auto Controls:', 'bxsliderwp'); ?> </label>
    3636    <input type="hidden" name="bxslider[options][auto_controls]" value="false" />
    37     <input id="bxslider_options_auto_controls" type="checkbox" name="bxslider[options][auto_controls]" value="true" <?php echo ($options['auto_controls']=='true') ? 'checked="checked"' : ''; ?> />
    38     <label for="bxslider_options_auto_controls" class="note"><?php _e('If checked, "Start" / "Stop" controls will be added.', 'bxslider'); ?></label>
     37    <input id="bxslider_options_auto_controls" type="checkbox" value="true" <?php echo ($options['auto_controls']=='true') ? 'checked="checked"' : ''; ?> />
     38    <label for="bxslider_options_auto_controls" class="note"><?php _e('If checked, "Start" / "Stop" controls will be added.', 'bxsliderwp'); ?></label>
    3939    <div class="clear"></div>
    4040</div>
    4141<div class="bxslider-field">
    42     <label for="bxslider_options_start_text"><?php _e('Start Text:', 'bxslider'); ?> </label>
    43     <input id="bxslider_options_start_text" type="text" name="bxslider[options][start_text]" value="<?php echo esc_attr($options['start_text']); ?>" />
    44     <span class="note"><?php _e('Text to be used for the "Start" control.', 'bxslider'); ?></span>
     42    <label for="bxslider_options_start_text"><?php _e('Start Text:', 'bxsliderwp'); ?> </label>
     43    <input id="bxslider_options_start_text" type="text" value="<?php echo esc_attr($options['start_text']); ?>" />
     44    <span class="note"><?php _e('Text to be used for the "Start" control.', 'bxsliderwp'); ?></span>
    4545    <div class="clear"></div>
    4646</div>
    4747<div class="bxslider-field">
    48     <label for="bxslider_options_stop_text"><?php _e('Stop Text:', 'bxslider'); ?> </label>
    49     <input id="bxslider_options_stop_text" type="text" name="bxslider[options][stop_text]" value="<?php echo esc_attr($options['stop_text']); ?>" />
    50     <span class="note"><?php _e('Text to be used for the "Stop" control.', 'bxslider'); ?></span>
     48    <label for="bxslider_options_stop_text"><?php _e('Stop Text:', 'bxsliderwp'); ?> </label>
     49    <input id="bxslider_options_stop_text" type="text" value="<?php echo esc_attr($options['stop_text']); ?>" />
     50    <span class="note"><?php _e('Text to be used for the "Stop" control.', 'bxsliderwp'); ?></span>
    5151    <div class="clear"></div>
    5252</div>
    5353<div class="bxslider-field">
    54     <label for="bxslider_options_auto_controls_combine"><?php _e('Auto Controls Combine:', 'bxslider'); ?> </label>
     54    <label for="bxslider_options_auto_controls_combine"><?php _e('Auto Controls Combine:', 'bxsliderwp'); ?> </label>
    5555    <input type="hidden" name="bxslider[options][auto_controls_combine]" value="false" />
    56     <input id="bxslider_options_auto_controls_combine" type="checkbox" name="bxslider[options][auto_controls_combine]" value="true" <?php echo ($options['auto_controls_combine']=='true') ? 'checked="checked"' : ''; ?> />
    57     <label for="bxslider_options_auto_controls_combine" class="note"><?php _e('When slideshow is playing only "Stop" control is displayed and vice-versa.', 'bxslider'); ?></label>
     56    <input id="bxslider_options_auto_controls_combine" type="checkbox" value="true" <?php echo ($options['auto_controls_combine']=='true') ? 'checked="checked"' : ''; ?> />
     57    <label for="bxslider_options_auto_controls_combine" class="note"><?php _e('When slideshow is playing only "Stop" control is displayed and vice-versa.', 'bxsliderwp'); ?></label>
    5858    <div class="clear"></div>
    5959</div>
    6060<div class="bxslider-field last">
    61     <label for="bxslider_options_auto_controls_selector"><?php _e('Auto Controls Selector:', 'bxslider'); ?> </label>
    62     <input id="bxslider_options_auto_controls_selector" type="text" name="bxslider[options][auto_controls_selector]" value="<?php echo esc_attr($options['auto_controls_selector']); ?>" />
    63     <span class="note"><?php _e('Element used to populate the auto controls.', 'bxslider'); ?></span>
     61    <label for="bxslider_options_auto_controls_selector"><?php _e('Auto Controls Selector:', 'bxsliderwp'); ?> </label>
     62    <input id="bxslider_options_auto_controls_selector" type="text" value="<?php echo esc_attr($options['auto_controls_selector']); ?>" />
     63    <span class="note"><?php _e('Element used to populate the auto controls.', 'bxsliderwp'); ?></span>
    6464    <div class="clear"></div>
    6565</div>
  • bxslider-wp/trunk/views/general-options.php

    r754008 r1675348  
    44
    55<div class="bxslider-field">
    6     <label for="bxslider_options_mode"><?php _e('Mode:', 'bxslider'); ?></label>
     6    <label for="bxslider_options_mode"><?php _e('Mode:', 'bxsliderwp'); ?></label>
    77    <select id="bxslider_options_mode" name="bxslider[options][mode]">
    88    <?php foreach($mode_options as $mode_option): ?>
     
    1010    <?php endforeach; ?>
    1111    </select>
    12     <span class="note"><?php _e('Type of transition between slides.', 'bxslider'); ?></span>
     12    <span class="note"><?php _e('Type of transition between slides.', 'bxsliderwp'); ?></span>
    1313    <div class="clear"></div>
    1414</div>
    1515<div class="bxslider-field">
    16     <label for="bxslider_options_speed"><?php _e('Speed:', 'bxslider'); ?> </label>
     16    <label for="bxslider_options_speed"><?php _e('Speed:', 'bxsliderwp'); ?> </label>
    1717    <input id="bxslider_options_speed" type="number" name="bxslider[options][speed]" value="<?php echo esc_attr($options['speed']); ?>" />
    18     <br /><span class="note"><?php _e('Slide transition duration (in ms).', 'bxslider'); ?></span>
     18    <br /><span class="note"><?php _e('Slide transition duration (in ms).', 'bxsliderwp'); ?></span>
    1919    <div class="clear"></div>
    2020</div>
    2121
    2222<div class="bxslider-field">
    23     <label for="bxslider_options_random_start"><?php _e('Random Start:', 'bxslider'); ?> </label>
     23    <label for="bxslider_options_random_start"><?php _e('Random Start:', 'bxsliderwp'); ?> </label>
    2424    <input type="hidden" name="bxslider[options][random_start]" value="false" />
    2525    <input id="bxslider_options_random_start" type="checkbox" name="bxslider[options][random_start]" value="true" <?php echo ($options['random_start']=='true') ? 'checked="checked"' : ''; ?> />
    26     <label for="bxslider_options_random_start" class="note"><?php _e('Start slider on a random slide.', 'bxslider'); ?></label>
     26    <label for="bxslider_options_random_start" class="note"><?php _e('Start slider on a random slide.', 'bxsliderwp'); ?></label>
    2727    <div class="clear"></div>
    2828</div>
    2929
    3030<div class="bxslider-field">
    31     <label for="bxslider_options_infinite_loop"><?php _e('Infinite Loop:', 'bxslider'); ?> </label>
     31    <label for="bxslider_options_infinite_loop"><?php _e('Infinite Loop:', 'bxsliderwp'); ?> </label>
    3232    <input type="hidden" name="bxslider[options][infinite_loop]" value="false" />
    3333    <input id="bxslider_options_infinite_loop" type="checkbox" name="bxslider[options][infinite_loop]" value="true" <?php echo ($options['infinite_loop']=='true') ? 'checked="checked"' : ''; ?> />
    34     <label for="bxslider_options_infinite_loop" class="note"><?php _e('If checked, clicking "Next" while on the last slide will transition to the first slide and vice-versa.', 'bxslider'); ?></label>
     34    <label for="bxslider_options_infinite_loop" class="note"><?php _e('If checked, clicking "Next" while on the last slide will transition to the first slide and vice-versa.', 'bxsliderwp'); ?></label>
    3535    <div class="clear"></div>
    3636</div>
    3737<div class="bxslider-field">
    38     <label for="bxslider_options_hide_control_on_end"><?php _e('Hide Control On End:', 'bxslider'); ?> </label>
     38    <label for="bxslider_options_hide_control_on_end"><?php _e('Hide Control On End:', 'bxsliderwp'); ?> </label>
    3939    <input type="hidden" name="bxslider[options][hide_control_on_end]" value="false" />
    4040    <input id="bxslider_options_hide_control_on_end" type="checkbox" name="bxslider[options][hide_control_on_end]" value="true" <?php echo ($options['hide_control_on_end']=='true') ? 'checked="checked"' : ''; ?> />
    41     <label for="bxslider_options_hide_control_on_end" class="note"><?php _e('If checked, "Next" control will be hidden on last slide and vice-versa. Note: Only used when Infinite Loop is unchecked.', 'bxslider'); ?></label>
     41    <label for="bxslider_options_hide_control_on_end" class="note"><?php _e('If checked, "Next" control will be hidden on last slide and vice-versa. Note: Only used when Infinite Loop is unchecked.', 'bxsliderwp'); ?></label>
    4242    <div class="clear"></div>
    4343</div>
    4444<div class="bxslider-field">
    45     <label for="bxslider_options_captions"><?php _e('Captions:', 'bxslider'); ?> </label>
     45    <label for="bxslider_options_captions"><?php _e('Captions:', 'bxsliderwp'); ?> </label>
    4646    <input type="hidden" name="bxslider[options][captions]" value="false" />
    4747    <input id="bxslider_options_captions" type="checkbox" name="bxslider[options][captions]" value="true" <?php echo ($options['captions']=='true') ? 'checked="checked"' : ''; ?> />
    48     <label for="bxslider_options_captions" class="note"><?php _e('Include image captions.', 'bxslider'); ?></label>
     48    <label for="bxslider_options_captions" class="note"><?php _e('Include image captions.', 'bxsliderwp'); ?></label>
    4949    <div class="clear"></div>
    5050</div>
    5151<div class="bxslider-field">
    52     <label for="bxslider_options_ticker"><?php _e('Ticker:', 'bxslider'); ?> </label>
     52    <label for="bxslider_options_ticker"><?php _e('Ticker:', 'bxsliderwp'); ?> </label>
    5353    <input type="hidden" name="bxslider[options][ticker]" value="false" />
    5454    <input id="bxslider_options_ticker" type="checkbox" name="bxslider[options][ticker]" value="true" <?php echo ($options['ticker']=='true') ? 'checked="checked"' : ''; ?> />
    55     <label for="bxslider_options_ticker" class="note"><?php _e('Use slider in ticker mode (similar to a news ticker).', 'bxslider'); ?></label>
     55    <label for="bxslider_options_ticker" class="note"><?php _e('Use slider in ticker mode (similar to a news ticker).', 'bxsliderwp'); ?></label>
    5656    <div class="clear"></div>
    5757</div>
    5858<div class="bxslider-field">
    59     <label for="bxslider_options_ticker_hover"><?php _e('Ticker Hover:', 'bxslider'); ?> </label>
     59    <label for="bxslider_options_ticker_hover"><?php _e('Ticker Hover:', 'bxsliderwp'); ?> </label>
    6060    <input type="hidden" name="bxslider[options][ticker_hover]" value="false" />
    6161    <input id="bxslider_options_ticker_hover" type="checkbox" name="bxslider[options][ticker_hover]" value="true" <?php echo ($options['ticker_hover']=='true') ? 'checked="checked"' : ''; ?> />
    62     <label for="bxslider_options_ticker_hover" class="note"><?php _e('Ticker will pause when mouse hovers over slider. Note: this functionality does NOT work if using CSS transitions!', 'bxslider'); ?></label>
     62    <label for="bxslider_options_ticker_hover" class="note"><?php _e('Ticker will pause when mouse hovers over slider. Note: this functionality does NOT work if using CSS transitions!', 'bxsliderwp'); ?></label>
    6363    <div class="clear"></div>
    6464</div>
    6565<div class="bxslider-field">
    66     <label for="bxslider_options_adaptive_height"><?php _e('Adaptive Height:', 'bxslider'); ?> </label>
     66    <label for="bxslider_options_adaptive_height"><?php _e('Adaptive Height:', 'bxsliderwp'); ?> </label>
    6767    <input type="hidden" name="bxslider[options][adaptive_height]" value="false" />
    6868    <input id="bxslider_options_adaptive_height" type="checkbox" name="bxslider[options][adaptive_height]" value="true" <?php echo ($options['adaptive_height']=='true') ? 'checked="checked"' : ''; ?> />
    69     <label for="bxslider_options_adaptive_height" class="note"><?php _e('Dynamically adjust slider height based on each slide\'s height.', 'bxslider'); ?></label>
     69    <label for="bxslider_options_adaptive_height" class="note"><?php _e('Dynamically adjust slider height based on each slide\'s height.', 'bxsliderwp'); ?></label>
    7070    <div class="clear"></div>
    7171</div>
    7272<div class="bxslider-field">
    73     <label for="bxslider_options_adaptive_height_speed"><?php _e('Adaptive Height Speed:', 'bxslider'); ?> </label>
     73    <label for="bxslider_options_adaptive_height_speed"><?php _e('Adaptive Height Speed:', 'bxsliderwp'); ?> </label>
    7474    <input id="bxslider_options_adaptive_height_speed" type="number" name="bxslider[options][adaptive_height_speed]" value="<?php echo $options['adaptive_height_speed']; ?>" />
    75     <span class="note"><?php _e('Slide height transition duration (in ms). Note: only used if Adaptive Height is checked.', 'bxslider'); ?></span>
     75    <span class="note"><?php _e('Slide height transition duration (in ms). Note: only used if Adaptive Height is checked.', 'bxsliderwp'); ?></span>
    7676    <div class="clear"></div>
    7777</div>
    7878<div class="bxslider-field">
    79     <label for="bxslider_options_video"><?php _e('Video:', 'bxslider'); ?> </label>
     79    <label for="bxslider_options_video"><?php _e('Video:', 'bxsliderwp'); ?> </label>
    8080    <input type="hidden" name="bxslider[options][video]" value="false" />
    8181    <input id="bxslider_options_video" type="checkbox" name="bxslider[options][video]" value="true" <?php echo ($options['video']=='true') ? 'checked="checked"' : ''; ?> />
    82     <label for="bxslider_options_video" class="note"><?php _e('Check this if any slides contain a video.', 'bxslider'); ?></label>
     82    <label for="bxslider_options_video" class="note"><?php _e('Check this if any slides contain a video.', 'bxsliderwp'); ?></label>
    8383    <div class="clear"></div>
    8484</div>
    8585<div class="bxslider-field">
    86     <label for="bxslider_options_responsive"><?php _e('Responsive:', 'bxslider'); ?> </label>
     86    <label for="bxslider_options_responsive"><?php _e('Responsive:', 'bxsliderwp'); ?> </label>
    8787    <input type="hidden" name="bxslider[options][responsive]" value="false" />
    8888    <input id="bxslider_options_responsive" type="checkbox" name="bxslider[options][responsive]" value="true" <?php echo ($options['responsive']=='true') ? 'checked="checked"' : ''; ?> />
    89     <label for="bxslider_options_responsive" class="note"><?php _e('Enable or disable auto resize of the slider. Useful if you need to use fixed width sliders.', 'bxslider'); ?></label>
     89    <label for="bxslider_options_responsive" class="note"><?php _e('Enable or disable auto resize of the slider. Useful if you need to use fixed width sliders.', 'bxsliderwp'); ?></label>
    9090    <div class="clear"></div>
    9191</div>
    9292<div class="bxslider-field">
    93     <label for="bxslider_options_use_css"><?php _e('Use CSS:', 'bxslider'); ?> </label>
     93    <label for="bxslider_options_use_css"><?php _e('Use CSS:', 'bxsliderwp'); ?> </label>
    9494    <input type="hidden" name="bxslider[options][use_css]" value="false" />
    9595    <input id="bxslider_options_use_css" type="checkbox" name="bxslider[options][use_css]" value="true" <?php echo ($options['use_css']=='true') ? 'checked="checked"' : ''; ?> />
    96     <label for="bxslider_options_use_css" class="note"><?php _e('If checked, CSS transitions will be used for horizontal and vertical slide animations (this uses native hardware acceleration). If unchecked, jQuery animate() will be used.', 'bxslider'); ?></label>
     96    <label for="bxslider_options_use_css" class="note"><?php _e('If checked, CSS transitions will be used for horizontal and vertical slide animations (this uses native hardware acceleration). If unchecked, jQuery animate() will be used.', 'bxsliderwp'); ?></label>
    9797    <div class="clear"></div>
    9898</div>
    9999<div class="bxslider-field">
    100     <label for="bxslider_options_easing"><?php _e('Easing:', 'bxslider'); ?></label>
     100    <label for="bxslider_options_easing"><?php _e('Easing:', 'bxsliderwp'); ?></label>
    101101    <select id="bxslider_options_easing" name="bxslider[options][easing]">
    102102    <?php echo $easing_options; ?>
    103103    </select>
    104     <span class="note"><?php _e('The type of "easing" to use during transitions.', 'bxslider'); ?></span>
     104    <span class="note"><?php _e('The type of "easing" to use during transitions.', 'bxsliderwp'); ?></span>
    105105    <div class="clear"></div>
    106106</div>
    107107<div class="bxslider-field">
    108     <label for="bxslider_options_preload_images"><?php _e('Preload Images:', 'bxslider'); ?></label>
     108    <label for="bxslider_options_preload_images"><?php _e('Preload Images:', 'bxsliderwp'); ?></label>
    109109    <select id="bxslider_options_preload_images" name="bxslider[options][preload_images]">
    110110    <?php foreach($preload_images_options as $preload_images_option): ?>
     
    112112    <?php endforeach; ?>
    113113    </select>
    114     <span class="note"><?php _e('If "all", preloads all images before starting the slider. If "visible", preloads only images in the initially visible slides before starting the slider (tip: use "visible" if all slides are identical dimensions).', 'bxslider'); ?></span>
     114    <span class="note"><?php _e('If "all", preloads all images before starting the slider. If "visible", preloads only images in the initially visible slides before starting the slider (tip: use "visible" if all slides are identical dimensions).', 'bxsliderwp'); ?></span>
    115115    <div class="clear"></div>
    116116</div>
    117117<div class="bxslider-field">
    118     <label for="bxslider_options_touch_enabled"><?php _e('Touch Enabled:', 'bxslider'); ?> </label>
     118    <label for="bxslider_options_touch_enabled"><?php _e('Touch Enabled:', 'bxsliderwp'); ?> </label>
    119119    <input type="hidden" name="bxslider[options][touch_enabled]" value="false" />
    120120    <input id="bxslider_options_touch_enabled" type="checkbox" name="bxslider[options][touch_enabled]" value="true" <?php echo ($options['touch_enabled']=='true') ? 'checked="checked"' : ''; ?> />
    121     <label for="bxslider_options_touch_enabled" class="note"><?php _e('If checked, slider will allow touch swipe transitions.', 'bxslider'); ?></label>
     121    <label for="bxslider_options_touch_enabled" class="note"><?php _e('If checked, slider will allow touch swipe transitions.', 'bxsliderwp'); ?></label>
    122122    <div class="clear"></div>
    123123</div>
    124124<div class="bxslider-field">
    125     <label for="bxslider_options_swipe_threshold"><?php _e('Swipe Threshold:', 'bxslider'); ?> </label>
     125    <label for="bxslider_options_swipe_threshold"><?php _e('Swipe Threshold:', 'bxsliderwp'); ?> </label>
    126126    <input id="bxslider_options_swipe_threshold" type="number" name="bxslider[options][swipe_threshold]" value="<?php echo $options['swipe_threshold']; ?>" />
    127     <span class="note"><?php _e('Amount of pixels a touch swipe needs to exceed in order to execute a slide transition. Note: Only used if Touch Enabled is checked.', 'bxslider'); ?></span>
     127    <span class="note"><?php _e('Amount of pixels a touch swipe needs to exceed in order to execute a slide transition. Note: Only used if Touch Enabled is checked.', 'bxsliderwp'); ?></span>
    128128    <div class="clear"></div>
    129129</div>
    130130<div class="bxslider-field">
    131     <label for="bxslider_options_one_to_one_touch"><?php _e('One To One Touch:', 'bxslider'); ?> </label>
     131    <label for="bxslider_options_one_to_one_touch"><?php _e('One To One Touch:', 'bxsliderwp'); ?> </label>
    132132    <input type="hidden" name="bxslider[options][one_to_one_touch]" value="false" />
    133133    <input id="bxslider_options_one_to_one_touch" type="checkbox" name="bxslider[options][one_to_one_touch]" value="true" <?php echo ($options['one_to_one_touch']=='true') ? 'checked="checked"' : ''; ?> />
    134     <label for="bxslider_options_one_to_one_touch" class="note"><?php _e('If checked, non-fade slides follow the finger as it swipes.', 'bxslider'); ?></label>
     134    <label for="bxslider_options_one_to_one_touch" class="note"><?php _e('If checked, non-fade slides follow the finger as it swipes.', 'bxsliderwp'); ?></label>
    135135    <div class="clear"></div>
    136136</div>
    137137<div class="bxslider-field">
    138     <label for="bxslider_options_prevent_default_swipe_x"><?php _e('Prevent Default Swipe X:', 'bxslider'); ?> </label>
     138    <label for="bxslider_options_prevent_default_swipe_x"><?php _e('Prevent Default Swipe X:', 'bxsliderwp'); ?> </label>
    139139    <input type="hidden" name="bxslider[options][prevent_default_swipe_x]" value="false" />
    140140    <input id="bxslider_options_prevent_default_swipe_x" type="checkbox" name="bxslider[options][prevent_default_swipe_x]" value="true" <?php echo ($options['prevent_default_swipe_x']=='true') ? 'checked="checked"' : ''; ?> />
    141     <label for="bxslider_options_prevent_default_swipe_x" class="note"><?php _e('If checked, touch screen will not move along the x-axis as the finger swipes.', 'bxslider'); ?></label>
     141    <label for="bxslider_options_prevent_default_swipe_x" class="note"><?php _e('If checked, touch screen will not move along the x-axis as the finger swipes.', 'bxsliderwp'); ?></label>
    142142    <div class="clear"></div>
    143143</div>
    144144<div class="bxslider-field">
    145     <label for="bxslider_options_prevent_default_swipe_y"><?php _e('Prevent Default Swipe Y:', 'bxslider'); ?> </label>
     145    <label for="bxslider_options_prevent_default_swipe_y"><?php _e('Prevent Default Swipe Y:', 'bxsliderwp'); ?> </label>
    146146    <input type="hidden" name="bxslider[options][prevent_default_swipe_y]" value="false" />
    147147    <input id="bxslider_options_prevent_default_swipe_y" type="checkbox" name="bxslider[options][prevent_default_swipe_y]" value="true" <?php echo ($options['prevent_default_swipe_y']=='true') ? 'checked="checked"' : ''; ?> />
    148     <label for="bxslider_options_prevent_default_swipe_y" class="note"><?php _e('If checked, touch screen will not move along the y-axis as the finger swipes.', 'bxslider'); ?></label>
     148    <label for="bxslider_options_prevent_default_swipe_y" class="note"><?php _e('If checked, touch screen will not move along the y-axis as the finger swipes.', 'bxsliderwp'); ?></label>
    149149    <div class="clear"></div>
    150150</div>
    151151<div class="bxslider-field">
    152     <label for="bxslider_options_slide_margin"><?php _e('Slide Margin:', 'bxslider'); ?> </label>
     152    <label for="bxslider_options_slide_margin"><?php _e('Slide Margin:', 'bxsliderwp'); ?> </label>
    153153    <input id="bxslider_options_slide_margin" type="number" name="bxslider[options][slide_margin]" value="<?php echo esc_attr($options['slide_margin']); ?>" />
    154     <br /><span class="note"><?php _e('Margin between each slide.', 'bxslider'); ?></span>
     154    <br /><span class="note"><?php _e('Margin between each slide.', 'bxsliderwp'); ?></span>
    155155    <div class="clear"></div>
    156156</div>
    157157<div class="bxslider-field last">
    158     <label for="bxslider_options_slide_selector"><?php _e('Slide Selector:', 'bxslider'); ?> </label>
     158    <label for="bxslider_options_slide_selector"><?php _e('Slide Selector:', 'bxsliderwp'); ?> </label>
    159159    <input id="bxslider_options_slide_selector" type="text" name="bxslider[options][slide_selector]" value="<?php echo $options['slide_selector']; ?>" />
    160     <span class="note"><?php _e('Element to use as slides (ex. \'div.slide\'). Note: by default, bxSlider will use all immediate children of the slider element.', 'bxslider'); ?></span>
     160    <span class="note"><?php _e('Element to use as slides (ex. \'div.slide\'). Note: by default, bxSlider will use all immediate children of the slider element.', 'bxsliderwp'); ?></span>
    161161    <div class="clear"></div>
    162162</div>
    163163<div class="bxslider-field" style="display: none;">
    164     <label for="bxslider_options_start_slide"><?php _e('Start Slide:', 'bxslider'); ?> </label>
     164    <label for="bxslider_options_start_slide"><?php _e('Start Slide:', 'bxsliderwp'); ?> </label>
    165165    <input id="bxslider_options_start_slide" type="number" name="bxslider[options][start_slide]" value="<?php echo esc_attr($options['start_slide']); ?>" />
    166     <br /><span class="note"><?php _e('Starting slide index (zero-based).', 'bxslider'); ?></span>
     166    <br /><span class="note"><?php _e('Starting slide index (zero-based).', 'bxsliderwp'); ?></span>
    167167    <div class="clear"></div>
    168168</div>
  • bxslider-wp/trunk/views/pager-options.php

    r754008 r1675348  
    11<?php if(!defined('ABSPATH')) die('Direct access denied.'); ?>
    2 <div class="bxslider-cover"><p>Available in <a href="http://www.codefleet.net/bxslider-wp/">premium</a> version.</p></div>
     2<div class="bxslider-cover"><p><?php echo sprintf(__('Available in %s version.','bxsliderwp'), '<a href="https://www.codefleet.net/bxslider-wp-pro/">premium</a>'); ?></p></div>
    33<div class="bxslider-field">
    4     <label for="bxslider_options_pager"><?php _e('Pager:', 'bxslider'); ?> </label>
     4    <label for="bxslider_options_pager"><?php _e('Pager:', 'bxsliderwp'); ?> </label>
    55    <input type="hidden" name="bxslider[options][pager]" value="false" />
    6     <input id="bxslider_options_pager" type="checkbox" name="bxslider[options][pager]" value="true" <?php echo ($options['pager']=='true') ? 'checked="checked"' : ''; ?> />
    7     <label for="bxslider_options_pager" class="note"><?php _e('If checked, a pager will be added.', 'bxslider'); ?></label>
     6    <input id="bxslider_options_pager" type="checkbox" value="true" <?php echo ($options['pager']=='true') ? 'checked="checked"' : ''; ?> />
     7    <label for="bxslider_options_pager" class="note"><?php _e('If checked, a pager will be added.', 'bxsliderwp'); ?></label>
    88    <div class="clear"></div>
    99</div>
    1010<div class="bxslider-field">
    11     <label for="bxslider_options_pager_type"><?php _e('Pager Type:', 'bxslider'); ?></label>
    12     <select id="bxslider_options_pager_type" name="bxslider[options][pager_type]">
     11    <label for="bxslider_options_pager_type"><?php _e('Pager Type:', 'bxsliderwp'); ?></label>
     12    <select id="bxslider_options_pager_type">
    1313    <?php foreach($pager_type_options as $pager_type_option): ?>
    1414        <option <?php echo esc_attr($pager_type_option['selected']); ?> value="<?php echo esc_attr($pager_type_option['value']); ?>"><?php echo esc_attr($pager_type_option['text']); ?></option>
    1515    <?php endforeach; ?>
    1616    </select>
    17     <span class="note"><?php _e('If "full", a pager link will be generated for each slide. If "short", a x / y pager will be used (ex. 1 / 5).', 'bxslider'); ?></span>
     17    <span class="note"><?php _e('If "full", a pager link will be generated for each slide. If "short", a x / y pager will be used (ex. 1 / 5).', 'bxsliderwp'); ?></span>
    1818    <div class="clear"></div>
    1919</div>
    2020<div class="bxslider-field">
    21     <label for="bxslider_options_pager_short_separator"><?php _e('Pager Short Separator:', 'bxslider'); ?> </label>
    22     <input id="bxslider_options_pager_short_separator" type="text" name="bxslider[options][pager_short_separator]" value="<?php echo esc_attr($options['pager_short_separator']); ?>" />
    23     <span class="note"><?php _e('If "short", pager will use this value as the separating character.', 'bxslider'); ?></span>
     21    <label for="bxslider_options_pager_short_separator"><?php _e('Pager Short Separator:', 'bxsliderwp'); ?> </label>
     22    <input id="bxslider_options_pager_short_separator" type="text" value="<?php echo esc_attr($options['pager_short_separator']); ?>" />
     23    <span class="note"><?php _e('If "short", pager will use this value as the separating character.', 'bxsliderwp'); ?></span>
    2424    <div class="clear"></div>
    2525</div>
    2626<div class="bxslider-field last">
    27     <label for="bxslider_options_pager_selector"><?php _e('Pager Selector:', 'bxslider'); ?> </label>
    28     <input id="bxslider_options_pager_selector" type="text" name="bxslider[options][pager_selector]" value="<?php echo esc_attr($options['pager_selector']); ?>" />
    29     <span class="note"><?php _e('Element used to populate the pager. By default, the pager is appended to the bx-viewport. Note: Use jQuery selectors.', 'bxslider'); ?></span>
     27    <label for="bxslider_options_pager_selector"><?php _e('Pager Selector:', 'bxsliderwp'); ?> </label>
     28    <input id="bxslider_options_pager_selector" type="text" value="<?php echo esc_attr($options['pager_selector']); ?>" />
     29    <span class="note"><?php _e('Element used to populate the pager. By default, the pager is appended to the bx-viewport. Note: Use jQuery selectors.', 'bxsliderwp'); ?></span>
    3030    <div class="clear"></div>
    3131</div>
  • bxslider-wp/trunk/views/slide-edit.php

    r1061068 r1675348  
    1616        </span>
    1717        <span class="bxslider-controls">
    18             <span class="bxslider-drag" title="<?php _e('Drag', $textdomain); ?>"><?php _e('Drag', $textdomain); ?></span>
    19             <span class="bxslider-toggle" title="<?php _e('Toggle', $textdomain); ?>"><?php _e('Toggle', $textdomain); ?></span>
    20             <span class="bxslider-delete" title="<?php _e('Delete', $textdomain); ?>"><?php _e('Delete', $textdomain); ?></span>
     18            <span class="bxslider-drag" title="<?php _e('Drag', 'bxsliderwp'); ?>"><?php _e('Drag', 'bxsliderwp'); ?></span>
     19            <span class="bxslider-toggle" title="<?php _e('Toggle', 'bxsliderwp'); ?>"><?php _e('Toggle', 'bxsliderwp'); ?></span>
     20            <span class="bxslider-delete" title="<?php _e('Delete', 'bxsliderwp'); ?>"><?php _e('Delete', 'bxsliderwp'); ?></span>
    2121        </span>
    2222        <div class="clear"></div>
     
    2525        <div class="bxslider-slide-type-bar">
    2626            <select class="bxslider-slide-type-switcher" name="bxslider[slides][<?php echo $i; ?>][type]">
    27                 <option value="image" <?php echo ('image'==$slide['type']) ? 'selected="selected"' : ''; ?>><?php _e('Image', $textdomain); ?></option>
    28                 <option value="custom" <?php echo ('custom'==$slide['type']) ? 'selected="selected"' : ''; ?>><?php _e('Custom', $textdomain); ?></option>
     27                <option value="image" <?php echo ('image'==$slide['type']) ? 'selected="selected"' : ''; ?>><?php _e('Image', 'bxsliderwp'); ?></option>
     28                <option value="custom" <?php echo ('custom'==$slide['type']) ? 'selected="selected"' : ''; ?>><?php _e('Custom', 'bxsliderwp'); ?></option>
    2929            </select>   
    3030        </div>
     
    3838                </div>
    3939                <input class="bxslider-image-id" name="bxslider[slides][<?php echo $i; ?>][id]" type="hidden" value="<?php echo esc_attr($slide['id']); ?>" />
    40                 <input class="button-secondary bxslider-media-gallery-show" type="button" value="<?php _e('Get Image', $textdomain); ?>" />
     40                <input class="button-secondary bxslider-media-gallery-show" type="button" value="<?php _e('Get Image', 'bxsliderwp'); ?>" />
    4141            </div>
    4242            <div class="bxslider-image-settings">
    43                 <p class="expandable-group-title first"><?php _e('Slide Properties:', $textdomain); ?></p>
     43                <p class="expandable-group-title first"><?php _e('Slide Properties:', 'bxsliderwp'); ?></p>
    4444                <div class="expandable-box">
    45                     <div class="expandable-header first"><?php _e('Link', $textdomain); ?></div>
     45                    <div class="expandable-header first"><?php _e('Link', 'bxsliderwp'); ?></div>
    4646                    <div class="expandable-body">
    4747                        <div class="field">
    48                             <label><?php _e('Enable Link:', $textdomain); ?></label> <br>
     48                            <label><?php _e('Enable Link:', 'bxsliderwp'); ?></label> <br>
    4949                            <input name="bxslider[slides][<?php echo $i; ?>][enable_link]" type="hidden" value="false" />
    5050                            <input name="bxslider[slides][<?php echo $i; ?>][enable_link]" type="checkbox" <?php echo ($slide['enable_link']=='true') ? 'checked="checked"' : ''; ?> value="true" />
    5151                        </div>
    5252                        <div class="field">
    53                             <label><?php _e('Link URL:', $textdomain); ?></label> <br>
     53                            <label><?php _e('Link URL:', 'bxsliderwp'); ?></label> <br>
    5454                            <input class="widefat" name="bxslider[slides][<?php echo $i; ?>][link]" type="text" value="<?php echo esc_url($slide['link']); ?>" />
    5555                        </div>
    5656                        <div class="field last">
    57                             <label for=""><?php _e('Open Link in:', $textdomain); ?></label> <br>
     57                            <label for=""><?php _e('Open Link in:', 'bxsliderwp'); ?></label> <br>
    5858                            <select id="" name="bxslider[slides][<?php echo $i; ?>][link_target]">
    59                                 <option <?php echo ('_self'==$slide['link_target']) ? 'selected="selected"' : ''; ?> value="_self"><?php _e('Same Window', $textdomain); ?></option>
    60                                 <option <?php echo ('_blank'==$slide['link_target']) ? 'selected="selected"' : ''; ?> value="_blank"><?php _e('New Tab or Window', $textdomain); ?></option>
     59                                <option <?php echo ('_self'==$slide['link_target']) ? 'selected="selected"' : ''; ?> value="_self"><?php _e('Same Window', 'bxsliderwp'); ?></option>
     60                                <option <?php echo ('_blank'==$slide['link_target']) ? 'selected="selected"' : ''; ?> value="_blank"><?php _e('New Tab or Window', 'bxsliderwp'); ?></option>
    6161                            </select>
    6262                        </div>
     
    6464                </div>
    6565                <div class="expandable-box last">
    66                     <div class="expandable-header"><?php _e('Caption', $textdomain); ?></div>
     66                    <div class="expandable-header"><?php _e('Caption', 'bxsliderwp'); ?></div>
    6767                    <div class="expandable-body">
    6868                        <div class="field last">
     
    7676        <div class="bxslider-custom">
    7777            <div class="field last">
    78                 <label for=""><?php _e('Custom HTML', $textdomain); ?></label>
     78                <label for=""><?php _e('Custom HTML', 'bxsliderwp'); ?></label>
    7979                <textarea class="widefat bxslider-custom-html" name="bxslider[slides][<?php echo $i; ?>][custom]"><?php echo esc_textarea($slide['custom']); ?></textarea>
    8080            </div>
  • bxslider-wp/trunk/views/slider-codes.php

    r756162 r1675348  
    22
    33<div class="bxslider-field">
    4     <label for="bxslider_get_shortcode"><?php _e('Your Shortcode:', 'bxslider'); ?> </label>
     4    <label for="bxslider_get_shortcode"><?php _e('Your Shortcode:', 'bxsliderwp'); ?> </label>
    55    <input onfocus="bxslider_select(this)" readonly="true" id="bxslider_get_shortcode" type="text" class="ltr widefat" name="" value="<?php echo esc_attr($shortcode); ?>" />
    6     <span class="note"><?php _e('Copy and paste this shortcode into your Post, Page or Custom Post editor.', 'bxslider'); ?></span>
     6    <span class="note"><?php _e('Copy and paste this shortcode into your Post, Page or Custom Post editor.', 'bxsliderwp'); ?></span>
    77    <div class="clear"></div>
    88</div>
    99<div class="bxslider-field last">
    10     <label for="bxslider_get_code"><?php _e('Your PHP Code:', 'bxslider'); ?> </label>
     10    <label for="bxslider_get_code"><?php _e('Your PHP Code:', 'bxsliderwp'); ?> </label>
    1111    <input onfocus="bxslider_select(this)" readonly="true" id="bxslider_get_code" type="text" class="ltr widefat" name="" value="<?php echo esc_attr($template_code); ?>" />
    12     <span class="note"><?php _e('Copy and paste this code when you need to display the slider in template files (header.php, front-page.php, etc.).', 'bxslider'); ?></span>
     12    <span class="note"><?php _e('Copy and paste this code when you need to display the slider in template files (header.php, front-page.php, etc.).', 'bxsliderwp'); ?></span>
    1313    <div class="clear"></div>
    1414</div>
  • bxslider-wp/trunk/views/slides.php

    r754008 r1675348  
    55</div><!-- end .bxslider-sortable -->
    66
    7 <input type="button" value="<?php _e('Add Slide', 'bxslider'); ?>" class="bxslider-add-slide button-secondary" />
    8 <input type="button" value="<?php _e('Add Images as Slides', 'bxslider'); ?>" class="bxslider-multiple-slides button-secondary" />
     7<input type="button" value="<?php _e('Add Slide', 'bxsliderwp'); ?>" class="bxslider-add-slide button-secondary" />
     8<input type="button" value="<?php _e('Add Images as Slides', 'bxsliderwp'); ?>" class="bxslider-multiple-slides button-secondary" />
Note: See TracChangeset for help on using the changeset viewer.