Changeset 1675348
- Timestamp:
- 06/10/2017 08:22:33 AM (9 years ago)
- Location:
- bxslider-wp/trunk
- Files:
-
- 15 added
- 4 deleted
- 18 edited
-
README.txt (modified) (5 diffs)
-
bxslider-wp.php (deleted)
-
css/admin.css (modified) (3 diffs)
-
lang (deleted)
-
languages (added)
-
languages/bxsliderwp-he_IL.mo (added)
-
languages/bxsliderwp-he_IL.po (added)
-
languages/bxsliderwp.pot (added)
-
main.php (added)
-
src/BxSliderWp/Admin.php (modified) (31 diffs)
-
src/BxSliderWp/AutoInject.php (added)
-
src/BxSliderWp/Base.php (deleted)
-
src/BxSliderWp/Crispin (added)
-
src/BxSliderWp/Crispin/RestClientInterface.php (added)
-
src/BxSliderWp/Crispin/RestClientWp.php (added)
-
src/BxSliderWp/Crispin/RestSigner.php (added)
-
src/BxSliderWp/Data.php (modified) (1 diff)
-
src/BxSliderWp/Frontend.php (modified) (7 diffs)
-
src/BxSliderWp/IRunnable.php (added)
-
src/BxSliderWp/Main.php (deleted)
-
src/BxSliderWp/Servicer.php (added)
-
src/BxSliderWp/SettingsPage.php (modified) (8 diffs)
-
src/BxSliderWp/Updater.php (modified) (1 diff)
-
src/BxSliderWp/View.php (modified) (2 diffs)
-
src/BxSliderWp/WidgetSlider.php (modified) (3 diffs)
-
src/BxSliderWp/Widgets.php (modified) (2 diffs)
-
src/autoloader.php (added)
-
src/plugin.php (added)
-
views/auto-options.php (modified) (1 diff)
-
views/carousel-options.php (modified) (1 diff)
-
views/controls-options.php (modified) (1 diff)
-
views/general-options.php (modified) (3 diffs)
-
views/pager-options.php (modified) (1 diff)
-
views/settings-page.php (added)
-
views/slide-edit.php (modified) (5 diffs)
-
views/slider-codes.php (modified) (1 diff)
-
views/slides.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bxslider-wp/trunk/README.txt
r1061070 r1675348 2 2 Contributors: kosinix 3 3 Donate link: http://www.codefleet.net/donate/ 4 Tags: bxslider, wordpress, slider, slideshow, carousel, jquery, responsive, multilingual, custom post4 Tags: bxslider, multilingual, rtl, ltr, wordpress, slider, slideshow, carousel, jquery, responsive, custom post 5 5 Requires at least: 3.5 6 Tested up to: 4. 17 Stable tag: 1.5.28 License: GPLv 2 or later9 License URI: http://www.gnu.org/licenses/gpl- 2.0.html6 Tested up to: 4.8 7 Stable tag: trunk 8 License: GPLv3 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 10 11 11 An easy-to-use WordPress slider plugin for bxSlider. … … 30 30 31 31 = More Info = 32 Learn more about [BxSlider WP](http ://www.codefleet.net/bxslider-wp/).32 Learn more about [BxSlider WP](https://www.codefleet.net/bxslider-wp/). 33 33 34 34 = Premium Version = … … 36 36 37 37 = Examples = 38 Check out what you can do with these [examples](http ://www.codefleet.net/bxslider-wp/examples/).38 Check out what you can do with these [examples](https://www.codefleet.net/bxslider-wp/examples/). 39 39 40 40 = Credits = … … 78 78 79 79 == 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. 80 86 81 87 = 1.5.2 - 2015-01-06 = … … 125 131 == Upgrade Notice == 126 132 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. 133 See changelog -
bxslider-wp/trunk/css/admin.css
r754008 r1675348 39 39 border-right:1px solid #D3D3D3; 40 40 } 41 .rtl .bxslider-header .bxslider-icon{ 42 float:right; 43 border-left:1px solid #D3D3D3; 44 border-right:0; 45 } 41 46 .bxslider-icon i{ 42 47 width:14px; … … 66 71 margin-left: -1px; 67 72 } 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 } 68 80 .bxslider-controls{ 69 81 float:right; 70 82 padding:5px; 83 } 84 .rtl .bxslider-controls{ 85 float:left; 71 86 } 72 87 .bxslider-drag, … … 80 95 height:15px; 81 96 } 97 .rtl .bxslider-drag, 98 .rtl .bxslider-toggle, 99 .rtl .bxslider-delete{ 100 float:right; 101 text-indent:99999px; 102 } 82 103 .bxslider-drag{ 83 104 display:none; -
bxslider-wp/trunk/src/BxSliderWp/Admin.php
r1061068 r1675348 3 3 * Class that handles the slideshow admin pages 4 4 */ 5 class BxSliderWp_Admin extends BxSliderWp_Base { 6 7 public function bootstrap(){ 8 5 class BxSliderWp_Admin extends BxSliderWp_AutoInject implements BxSliderWp_IRunnable { 6 7 public function run(){ 9 8 // Register admin styles and scripts 10 9 add_action( 'admin_enqueue_scripts', array( $this, 'register_wp_media' ), 9); … … 70 69 } 71 70 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') ); 73 72 74 73 // Scripts 75 74 wp_dequeue_script( 'autosave' );//disable autosave 76 75 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') ); 80 79 wp_localize_script( 'bxslider-admin-script', 'bxslider', 81 80 array( 82 81 'new_media_gallery' => $new_media_gallery, 83 'title' => __( 'Select an image', $this->plugin['textdomain']), // This will be used as the default title84 '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 text86 '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()) 89 88 ) 90 89 ); … … 104 103 array( 105 104 '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') 116 115 ), 117 116 'supports' => array('title'), … … 155 154 add_meta_box( 156 155 'bxslider-slides-meta-box', 157 __('Slides', $this->plugin['textdomain']),156 __('Slides', 'bxsliderwp'), 158 157 array( $this, 'render_slides_meta_box' ), 159 158 'bxslider' , … … 163 162 add_meta_box( 164 163 'bxslider-slider-codes', 165 __('Get Slider Codes', $this->plugin['textdomain']),164 __('Get Slider Codes', 'bxsliderwp'), 166 165 array( $this, 'render_slider_codes' ), 167 166 'bxslider' , … … 171 170 add_meta_box( 172 171 'bxslider-general-options-meta-box', 173 __('General Options', $this->plugin['textdomain']),172 __('General Options', 'bxsliderwp'), 174 173 array( $this, 'render_general_options_meta_box' ), 175 174 'bxslider' , … … 179 178 add_meta_box( 180 179 'bxslider-pager-options-meta-box', 181 __('Pager Options', $this->plugin['textdomain']),180 __('Pager Options', 'bxsliderwp'), 182 181 array( $this, 'render_pager_options_meta_box' ), 183 182 'bxslider' , … … 187 186 add_meta_box( 188 187 'bxslider-controls-options-meta-box', 189 __('Controls Options', $this->plugin['textdomain']),188 __('Controls Options', 'bxsliderwp'), 190 189 array( $this, 'render_controls_options_meta_box' ), 191 190 'bxslider' , … … 195 194 add_meta_box( 196 195 'bxslider-auto-options-meta-box', 197 __('Auto Options', $this->plugin['textdomain']),196 __('Auto Options', 'bxsliderwp'), 198 197 array( $this, 'render_auto_options_meta_box' ), 199 198 'bxslider' , … … 203 202 add_meta_box( 204 203 'bxslider-carousel-options-meta-box', 205 __('Carousel Options', $this->plugin['textdomain']),204 __('Carousel Options', 'bxsliderwp'), 206 205 array( $this, 'render_carousel_options_meta_box' ), 207 206 'bxslider' , … … 216 215 public function render_slides_meta_box( $post ){ 217 216 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); 220 219 221 220 $slides_html = ''; … … 227 226 $vars = array(); 228 227 $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()); 230 229 $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'; 233 232 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); 235 234 endforeach; 236 235 endif; … … 240 239 $vars['post_id'] = $post->ID; 241 240 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 )); 247 246 } 248 247 } … … 263 262 } 264 263 265 $this->plugin ['view']->render('slider-codes.php', $vars);264 $this->plugin->get('view')->render('slider-codes.php', $vars); 266 265 267 266 } … … 272 271 public function render_general_options_meta_box( $post ){ 273 272 274 $options = $this->plugin ['data']->get_options( $post->ID );273 $options = $this->plugin->get('data')->get_options( $post->ID ); 275 274 276 275 $vars = array(); 277 276 $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') ); 280 279 $mode_options = array( 281 280 array( … … 304 303 // Easing 305 304 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']); 307 306 } 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']); 309 308 } 310 309 … … 328 327 $vars['preload_images_options'] = $preload_images_options; 329 328 330 $this->plugin ['view']->render('general-options.php', $vars);329 $this->plugin->get('view')->render('general-options.php', $vars); 331 330 332 331 } … … 337 336 public function render_pager_options_meta_box( $post ){ 338 337 339 $options = $this->plugin ['data']->get_options( $post->ID );338 $options = $this->plugin->get('data')->get_options( $post->ID ); 340 339 $vars = array(); 341 340 $vars['options'] = $options; … … 360 359 $vars['pager_type_options'] = $pager_type_options; 361 360 362 $this->plugin ['view']->render('pager-options.php', $vars);361 $this->plugin->get('view')->render('pager-options.php', $vars); 363 362 } 364 363 … … 368 367 public function render_controls_options_meta_box( $post ){ 369 368 370 $options = $this->plugin ['data']->get_options( $post->ID );369 $options = $this->plugin->get('data')->get_options( $post->ID ); 371 370 $vars = array(); 372 371 $vars['options'] = $options; … … 391 390 $vars['auto_controls_options'] = $auto_controls_options; 392 391 393 $this->plugin ['view']->render('controls-options.php', $vars);392 $this->plugin->get('view')->render('controls-options.php', $vars); 394 393 } 395 394 … … 399 398 public function render_auto_options_meta_box( $post ){ 400 399 401 $options = $this->plugin ['data']->get_options( $post->ID );400 $options = $this->plugin->get('data')->get_options( $post->ID ); 402 401 $vars = array(); 403 402 $vars['options'] = $options; … … 422 421 $vars['auto_direction_options'] = $auto_direction_options; 423 422 424 $this->plugin ['view']->render('auto-options.php', $vars);423 $this->plugin->get('view')->render('auto-options.php', $vars); 425 424 } 426 425 … … 430 429 public function render_carousel_options_meta_box( $post ){ 431 430 432 $options = $this->plugin ['data']->get_options( $post->ID );431 $options = $this->plugin->get('data')->get_options( $post->ID ); 433 432 $vars = array(); 434 433 $vars['options'] = $options; … … 453 452 $vars['auto_controls_options'] = $auto_controls_options; 454 453 455 $this->plugin ['view']->render('carousel-options.php', $vars);454 $this->plugin->get('view')->render('carousel-options.php', $vars); 456 455 } 457 456 … … 461 460 public function slideshow_columns($columns) { 462 461 $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'); 467 466 return $columns; 468 467 } … … 473 472 public function custom_column( $column_name, $post_id ){ 474 473 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>'; 476 475 } 477 476 if ($column_name == 'id') { … … 494 493 $messages['bxslider'] = array( 495 494 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' ) 506 505 ); 507 506 return $messages; … … 516 515 if(get_post_type()=='bxslider'){ 517 516 518 $slide = $this->plugin ['data']->get_slide_defaults();517 $slide = $this->plugin->get('data')->get_slide_defaults(); 519 518 520 519 $vars = array(); 521 520 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'); 524 523 $vars['image_url'] = ''; 525 524 $vars['i'] = '{id}'; … … 530 529 <div class="bxslider-slide-skeleton"> 531 530 <?php 532 $this->plugin ['view']->render('slide-edit.php', $vars);531 $this->plugin->get('view')->render('slide-edit.php', $vars); 533 532 ?> 534 533 </div><!-- end .bxslider-box-template --> … … 543 542 544 543 // 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') )) { 547 546 return $post_id; 548 547 } -
bxslider-wp/trunk/src/BxSliderWp/Data.php
r1061068 r1675348 3 3 * Class for saving and getting data 4 4 */ 5 class BxSliderWp_Data extends BxSliderWp_ Base{5 class BxSliderWp_Data extends BxSliderWp_AutoInject { 6 6 7 7 /** -
bxslider-wp/trunk/src/BxSliderWp/Frontend.php
r1061068 r1675348 3 3 * Class that handles the front-end slider 4 4 */ 5 class BxSliderWp_Frontend extends BxSliderWp_ Base {5 class BxSliderWp_Frontend extends BxSliderWp_AutoInject implements BxSliderWp_IRunnable { 6 6 7 7 protected $scripts; // Hold the scripts … … 9 9 10 10 11 public function bootstrap() { 12 11 public function run() { 13 12 14 13 $this->styles = array( 15 14 'bxslider-styles' => array( 16 'url' => $this->plugin ['url'].'bxslider/jquery.bxslider.css',15 'url' => $this->plugin->get('url').'bxslider/jquery.bxslider.css', 17 16 'deps' => array(), 18 'ver' => $this->plugin ['version'],17 'ver' => $this->plugin->get('version'), 19 18 'media' => 'all' 20 19 ) … … 23 22 $this->scripts = array( 24 23 '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', 26 25 'deps' => array('jquery'), 27 'ver' => $this->plugin ['version']26 'ver' => $this->plugin->get('version') 28 27 ), 29 28 'fitvids' => array( 30 'url' => $this->plugin ['url'].'bxslider/plugins/jquery.fitvids.js',29 'url' => $this->plugin->get('url').'bxslider/plugins/jquery.fitvids.js', 31 30 'deps' => array('jquery'), 32 'ver' => $this->plugin ['version']31 'ver' => $this->plugin->get('version') 33 32 ), 34 33 'bxslider' => array( 35 'url' => $this->plugin ['url'].'bxslider/jquery.bxslider.min.js',34 'url' => $this->plugin->get('url').'bxslider/jquery.bxslider.min.js', 36 35 'deps' => array('jquery'), 37 'ver' => $this->plugin ['version']36 'ver' => $this->plugin->get('version') 38 37 ), 39 38 'bxslider-initialize' => array( 40 'url' => $this->plugin ['url'].'js/initialize.js',39 'url' => $this->plugin->get('url').'js/initialize.js', 41 40 'deps' => array('bxslider'), 42 'ver' => $this->plugin ['version']41 'ver' => $this->plugin->get('version') 43 42 ) 44 43 ); … … 50 49 add_shortcode('bxslider', array( $this, 'bxslider_shortcode') ); 51 50 52 } // end constructor51 } 53 52 54 53 /** … … 60 59 $is_using_jquery_easing = false; 61 60 $has_video = false; 62 if($sliders = $this->plugin ['data']->get_sliders()){61 if($sliders = $this->plugin->get('data')->get_sliders()){ 63 62 foreach($sliders as $slider){ 64 $options = $this->plugin ['data']->get_options($slider->ID);63 $options = $this->plugin->get('data')->get_options($slider->ID); 65 64 if($options['use_css']=='false'){ 66 65 $is_using_jquery_easing = true; … … 119 118 $output = ''; 120 119 121 if( $slider = $this->plugin ['data']->get_slider_by_name( $name ) ){120 if( $slider = $this->plugin->get('data')->get_slider_by_name( $name ) ){ 122 121 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 ); 125 124 126 125 $vars = array(); … … 128 127 $vars['options'] = $options; 129 128 $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 ); 131 130 132 131 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 missing132 $vars['slides'][$i] = wp_parse_args($slide, $this->plugin->get('data')->get_slide_defaults()); //Apply defaults in case some keys are missing 134 133 $image_url = wp_get_attachment_image_src( $slide['id'], 'full' ); 135 134 $image_url = (is_array($image_url)) ? $image_url[0] : ''; 136 135 $vars['slides'][$i]['image_url'] = $image_url; 137 136 } 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); 139 138 140 $output = $this->plugin ['view']->get_render('slider.php', $vars);139 $output = $this->plugin->get('view')->get_render('slider.php', $vars); 141 140 } else { 142 $output = sprintf(__('[Slider "%s" not found]', $this->plugin['textdomain']), $name);141 $output = sprintf(__('[Slider "%s" not found]', 'bxsliderwp'), $name); 143 142 } 144 143 -
bxslider-wp/trunk/src/BxSliderWp/SettingsPage.php
r1061068 r1675348 3 3 * Class for settings page 4 4 */ 5 class BxSliderWp_SettingsPage extends BxSliderWp_ Base {5 class BxSliderWp_SettingsPage extends BxSliderWp_AutoInject implements BxSliderWp_IRunnable { 6 6 7 7 8 public function bootstrap() {8 public function run() { 9 9 10 10 // Add settings … … 18 18 // Use built-in WP function 19 19 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'), 23 23 'manage_options', 24 $this->plugin ['settings_page.menu_slug'],24 $this->plugin->get('settings_page.menu_slug'), 25 25 array( $this, 'render_settings_page') 26 26 ); … … 36 36 37 37 $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'); 40 39 41 40 if ( version_compare( $wp_version, '3.7', '<=' ) ) { // WP 3.7 and below … … 45 44 } 46 45 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'); 49 48 $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>' : ''; 52 51 53 $this->plugin ['view']->render('settings-page.php', $vars);52 $this->plugin->get('view')->render('settings-page.php', $vars); 54 53 } 55 54 … … 59 58 public function register_settings() { 60 59 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'), 63 62 array( $this, 'validate_options') 64 63 ); … … 75 74 if( isset($_POST['reset']) ){ 76 75 $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' ); 78 77 } 79 78 return $input; … … 84 83 */ 85 84 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() ); 87 86 } 88 87 … … 122 121 } 123 122 124 } // end class123 } -
bxslider-wp/trunk/src/BxSliderWp/Updater.php
r1061068 r1675348 1 1 <?php 2 2 /** 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 */ 5 class BxSliderWp_Updater implements BxSliderWp_IRunnable { 75 6 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 1 1 <?php 2 3 2 /** 4 3 * Simple class for fetching template files and attaching template variables 5 4 */ 6 7 5 class BxSliderWp_View { 8 6 … … 38 36 */ 39 37 public function render($file, $vars = array()){ 38 $vars = apply_filters('bxsliderwp_pre_render_view_vars', $vars); 40 39 $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); 41 41 if(@file_exists($view_file)){ 42 42 if(!empty($vars)){ 43 43 extract($vars, EXTR_SKIP); // Extract variables 44 44 } 45 46 include ($view_file); //Include the view file45 46 include $view_file; //Include the view file 47 47 } else { 48 48 echo '<p>Not found '.$view_file.'</p>'; -
bxslider-wp/trunk/src/BxSliderWp/WidgetSlider.php
r1061068 r1675348 11 11 parent::__construct( 12 12 'bxslider-widget', // Base ID 13 __( 'BxSlider Widget', 'bxslider ' ), // Name14 array( 'description' => __( 'Widget for displaying sliders.', 'bxslider ' ), ) // Args13 __( 'BxSlider Widget', 'bxsliderwp' ), // Name 14 array( 'description' => __( 'Widget for displaying sliders.', 'bxsliderwp' ), ) // Args 15 15 ); 16 16 } … … 50 50 if($sliders = BxSliderWp_Data::get_sliders() ): 51 51 ?> 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> 53 53 <select class="widefat" id="<?php echo $this->get_field_id('slider'); ?>" name="<?php echo $this->get_field_name('slider'); ?>"> 54 54 <option value=""></option> … … 61 61 </select> 62 62 <?php else: ?> 63 <?php _e('No sliders found.', 'bxslider '); ?>63 <?php _e('No sliders found.', 'bxsliderwp'); ?> 64 64 <?php endif; ?> 65 65 </p> -
bxslider-wp/trunk/src/BxSliderWp/Widgets.php
r1061068 r1675348 3 3 * Class for initializing widgets 4 4 */ 5 class BxSliderWp_Widgets extends BxSliderWp_Base {5 class BxSliderWp_Widgets implements BxSliderWp_IRunnable { 6 6 7 7 /** 8 8 * Initialize 9 9 */ 10 public function bootstrap() {10 public function run() { 11 11 add_action('widgets_init', array( $this, 'register_widgets') ); 12 12 } … … 19 19 } 20 20 21 } // end class21 } -
bxslider-wp/trunk/views/auto-options.php
r754008 r1675348 1 1 <?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> 3 3 <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> 5 5 <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> 8 8 <div class="clear"></div> 9 9 </div> 10 10 <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> 14 14 <div class="clear"></div> 15 15 </div> 16 16 <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> 18 18 <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> 21 21 <div class="clear"></div> 22 22 </div> 23 23 <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"> 26 26 <?php foreach($auto_direction_options as $auto_direction_option): ?> 27 27 <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> 28 28 <?php endforeach; ?> 29 29 </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> 31 31 <div class="clear"></div> 32 32 </div> 33 33 <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> 35 35 <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> 38 38 <div class="clear"></div> 39 39 </div> 40 40 <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> 44 44 <div class="clear"></div> 45 45 </div> -
bxslider-wp/trunk/views/carousel-options.php
r754008 r1675348 1 1 <?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> 3 3 <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> 7 7 <div class="clear"></div> 8 8 </div> 9 9 <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> 13 13 <div class="clear"></div> 14 14 </div> 15 15 <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> 19 19 <div class="clear"></div> 20 20 </div> 21 21 <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> 25 25 <div class="clear"></div> 26 26 </div> -
bxslider-wp/trunk/views/controls-options.php
r754008 r1675348 1 1 <?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> 3 3 <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> 5 5 <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> 8 8 <div class="clear"></div> 9 9 </div> 10 10 <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> 14 14 <div class="clear"></div> 15 15 </div> 16 16 <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> 20 20 <div class="clear"></div> 21 21 </div> 22 22 <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> 26 26 <div class="clear"></div> 27 27 </div> 28 28 <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> 32 32 <div class="clear"></div> 33 33 </div> 34 34 <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> 36 36 <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> 39 39 <div class="clear"></div> 40 40 </div> 41 41 <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> 45 45 <div class="clear"></div> 46 46 </div> 47 47 <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> 51 51 <div class="clear"></div> 52 52 </div> 53 53 <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> 55 55 <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> 58 58 <div class="clear"></div> 59 59 </div> 60 60 <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> 64 64 <div class="clear"></div> 65 65 </div> -
bxslider-wp/trunk/views/general-options.php
r754008 r1675348 4 4 5 5 <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> 7 7 <select id="bxslider_options_mode" name="bxslider[options][mode]"> 8 8 <?php foreach($mode_options as $mode_option): ?> … … 10 10 <?php endforeach; ?> 11 11 </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> 13 13 <div class="clear"></div> 14 14 </div> 15 15 <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> 17 17 <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> 19 19 <div class="clear"></div> 20 20 </div> 21 21 22 22 <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> 24 24 <input type="hidden" name="bxslider[options][random_start]" value="false" /> 25 25 <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> 27 27 <div class="clear"></div> 28 28 </div> 29 29 30 30 <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> 32 32 <input type="hidden" name="bxslider[options][infinite_loop]" value="false" /> 33 33 <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> 35 35 <div class="clear"></div> 36 36 </div> 37 37 <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> 39 39 <input type="hidden" name="bxslider[options][hide_control_on_end]" value="false" /> 40 40 <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> 42 42 <div class="clear"></div> 43 43 </div> 44 44 <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> 46 46 <input type="hidden" name="bxslider[options][captions]" value="false" /> 47 47 <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> 49 49 <div class="clear"></div> 50 50 </div> 51 51 <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> 53 53 <input type="hidden" name="bxslider[options][ticker]" value="false" /> 54 54 <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> 56 56 <div class="clear"></div> 57 57 </div> 58 58 <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> 60 60 <input type="hidden" name="bxslider[options][ticker_hover]" value="false" /> 61 61 <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> 63 63 <div class="clear"></div> 64 64 </div> 65 65 <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> 67 67 <input type="hidden" name="bxslider[options][adaptive_height]" value="false" /> 68 68 <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> 70 70 <div class="clear"></div> 71 71 </div> 72 72 <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> 74 74 <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> 76 76 <div class="clear"></div> 77 77 </div> 78 78 <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> 80 80 <input type="hidden" name="bxslider[options][video]" value="false" /> 81 81 <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> 83 83 <div class="clear"></div> 84 84 </div> 85 85 <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> 87 87 <input type="hidden" name="bxslider[options][responsive]" value="false" /> 88 88 <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> 90 90 <div class="clear"></div> 91 91 </div> 92 92 <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> 94 94 <input type="hidden" name="bxslider[options][use_css]" value="false" /> 95 95 <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> 97 97 <div class="clear"></div> 98 98 </div> 99 99 <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> 101 101 <select id="bxslider_options_easing" name="bxslider[options][easing]"> 102 102 <?php echo $easing_options; ?> 103 103 </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> 105 105 <div class="clear"></div> 106 106 </div> 107 107 <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> 109 109 <select id="bxslider_options_preload_images" name="bxslider[options][preload_images]"> 110 110 <?php foreach($preload_images_options as $preload_images_option): ?> … … 112 112 <?php endforeach; ?> 113 113 </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> 115 115 <div class="clear"></div> 116 116 </div> 117 117 <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> 119 119 <input type="hidden" name="bxslider[options][touch_enabled]" value="false" /> 120 120 <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> 122 122 <div class="clear"></div> 123 123 </div> 124 124 <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> 126 126 <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> 128 128 <div class="clear"></div> 129 129 </div> 130 130 <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> 132 132 <input type="hidden" name="bxslider[options][one_to_one_touch]" value="false" /> 133 133 <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> 135 135 <div class="clear"></div> 136 136 </div> 137 137 <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> 139 139 <input type="hidden" name="bxslider[options][prevent_default_swipe_x]" value="false" /> 140 140 <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> 142 142 <div class="clear"></div> 143 143 </div> 144 144 <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> 146 146 <input type="hidden" name="bxslider[options][prevent_default_swipe_y]" value="false" /> 147 147 <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> 149 149 <div class="clear"></div> 150 150 </div> 151 151 <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> 153 153 <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> 155 155 <div class="clear"></div> 156 156 </div> 157 157 <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> 159 159 <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> 161 161 <div class="clear"></div> 162 162 </div> 163 163 <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> 165 165 <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> 167 167 <div class="clear"></div> 168 168 </div> -
bxslider-wp/trunk/views/pager-options.php
r754008 r1675348 1 1 <?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> 3 3 <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> 5 5 <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> 8 8 <div class="clear"></div> 9 9 </div> 10 10 <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"> 13 13 <?php foreach($pager_type_options as $pager_type_option): ?> 14 14 <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> 15 15 <?php endforeach; ?> 16 16 </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> 18 18 <div class="clear"></div> 19 19 </div> 20 20 <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> 24 24 <div class="clear"></div> 25 25 </div> 26 26 <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> 30 30 <div class="clear"></div> 31 31 </div> -
bxslider-wp/trunk/views/slide-edit.php
r1061068 r1675348 16 16 </span> 17 17 <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> 21 21 </span> 22 22 <div class="clear"></div> … … 25 25 <div class="bxslider-slide-type-bar"> 26 26 <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> 29 29 </select> 30 30 </div> … … 38 38 </div> 39 39 <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'); ?>" /> 41 41 </div> 42 42 <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> 44 44 <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> 46 46 <div class="expandable-body"> 47 47 <div class="field"> 48 <label><?php _e('Enable Link:', $textdomain); ?></label> <br>48 <label><?php _e('Enable Link:', 'bxsliderwp'); ?></label> <br> 49 49 <input name="bxslider[slides][<?php echo $i; ?>][enable_link]" type="hidden" value="false" /> 50 50 <input name="bxslider[slides][<?php echo $i; ?>][enable_link]" type="checkbox" <?php echo ($slide['enable_link']=='true') ? 'checked="checked"' : ''; ?> value="true" /> 51 51 </div> 52 52 <div class="field"> 53 <label><?php _e('Link URL:', $textdomain); ?></label> <br>53 <label><?php _e('Link URL:', 'bxsliderwp'); ?></label> <br> 54 54 <input class="widefat" name="bxslider[slides][<?php echo $i; ?>][link]" type="text" value="<?php echo esc_url($slide['link']); ?>" /> 55 55 </div> 56 56 <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> 58 58 <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> 61 61 </select> 62 62 </div> … … 64 64 </div> 65 65 <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> 67 67 <div class="expandable-body"> 68 68 <div class="field last"> … … 76 76 <div class="bxslider-custom"> 77 77 <div class="field last"> 78 <label for=""><?php _e('Custom HTML', $textdomain); ?></label>78 <label for=""><?php _e('Custom HTML', 'bxsliderwp'); ?></label> 79 79 <textarea class="widefat bxslider-custom-html" name="bxslider[slides][<?php echo $i; ?>][custom]"><?php echo esc_textarea($slide['custom']); ?></textarea> 80 80 </div> -
bxslider-wp/trunk/views/slider-codes.php
r756162 r1675348 2 2 3 3 <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> 5 5 <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> 7 7 <div class="clear"></div> 8 8 </div> 9 9 <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> 11 11 <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> 13 13 <div class="clear"></div> 14 14 </div> -
bxslider-wp/trunk/views/slides.php
r754008 r1675348 5 5 </div><!-- end .bxslider-sortable --> 6 6 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.