Changeset 671289
- Timestamp:
- 02/21/2013 04:33:21 PM (13 years ago)
- Location:
- ml-slider/branches/refactor
- Files:
-
- 7 edited
-
assets/ml-slider.js (modified) (2 diffs)
-
inc/ml-slider.class.php (modified) (3 diffs)
-
inc/ml-slider.coin.class.php (modified) (3 diffs)
-
inc/ml-slider.flex.class.php (modified) (3 diffs)
-
inc/ml-slider.nivo.class.php (modified) (3 diffs)
-
inc/ml-slider.responsive.class.php (modified) (2 diffs)
-
ml-slider.php (modified) (36 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ml-slider/branches/refactor/assets/ml-slider.js
r671267 r671289 51 51 } 52 52 }); 53 53 54 54 55 $(".confirm").click(function() { … … 134 135 $(".ml-slider table.sortable").tableDnD({ 135 136 onDrop: function() { 136 updateSlideOrder() 137 updateSlideOrder(); 137 138 } 138 139 }); -
ml-slider/branches/refactor/inc/ml-slider.class.php
r671229 r671289 24 24 $this->settings = $this->get_settings(); 25 25 $this->identifier = 'ml_slider_' . rand(); 26 $this->enqueue_scripts();27 26 } 28 27 … … 83 82 84 83 /** 85 * Include the default CSS86 */87 private function enqueue_scripts() {88 wp_enqueue_style('ml-slider_display_css', plugins_url('ml-slider/assets/ml-slider-display.css'));89 }90 91 /**92 84 * Get settings for the current slider 93 85 * … … 104 96 * @return string | bool setting value or fase 105 97 */ 106 p rotectedfunction get_setting($name) {98 public function get_setting($name) { 107 99 return isset($this->settings[$name]) && strlen($this->settings[$name]) > 0 ? $this->settings[$name] : "false"; 108 100 } -
ml-slider/branches/refactor/inc/ml-slider.coin.class.php
r671229 r671289 12 12 } 13 13 14 /** 15 * 16 */ 14 17 public function output() { 15 18 return parent::wrap_html($this->get_html()) . parent::get_javascript('coinSlider'); … … 25 28 26 29 if (parent::get_setting('printCss') == 'true') { 30 wp_enqueue_style('ml-slider_display_css', plugins_url('ml-slider/assets/ml-slider-display.css')); 27 31 wp_enqueue_style('ml-slider_coin_slider_css', plugins_url('ml-slider/assets/coinslider/coin-slider-styles.css')); 28 32 } … … 51 55 return $retVal; 52 56 } 53 54 55 56 57 } 57 58 ?> -
ml-slider/branches/refactor/inc/ml-slider.flex.class.php
r671229 r671289 12 12 } 13 13 14 /** 15 * 16 */ 14 17 public function output() { 15 18 return parent::wrap_html($this->get_html()) . parent::get_javascript('flexSlider'); … … 25 28 26 29 if (parent::get_setting('printCss') == 'true') { 30 wp_enqueue_style('ml-slider_display_css', plugins_url('ml-slider/assets/ml-slider-display.css')); 27 31 wp_enqueue_style('ml-slider_flex_slider_css', plugins_url('ml-slider/assets/flexslider/flexslider.css')); 28 32 } … … 52 56 return $retVal; 53 57 } 54 55 56 57 58 } 58 59 ?> -
ml-slider/branches/refactor/inc/ml-slider.nivo.class.php
r671229 r671289 12 12 } 13 13 14 /** 15 * 16 */ 14 17 public function output() { 15 18 return parent::wrap_html($this->get_html()) . parent::get_javascript('nivoSlider'); … … 25 28 26 29 if (parent::get_setting('printCss') == 'true') { 30 wp_enqueue_style('ml-slider_display_css', plugins_url('ml-slider/assets/ml-slider-display.css')); 27 31 wp_enqueue_style('ml-slider_nivo_slider_css', plugins_url('ml-slider/assets/nivoslider/nivo-slider.css')); 28 wp_enqueue_style('ml-slider_nivo_slider_theme_' . $ this->get_setting('theme'), plugins_url('ml-slider/assets/nivoslider/themes/' . $this->get_setting('theme') . '/' . $this->get_setting('theme') . '.css'));32 wp_enqueue_style('ml-slider_nivo_slider_theme_' . $parent::get_setting('theme'), plugins_url('ml-slider/assets/nivoslider/themes/' . $parent::get_setting('theme') . '/' . $parent::get_setting('theme') . '.css')); 29 33 } 30 34 } … … 52 56 return $retVal; 53 57 } 54 55 58 } 56 59 ?> -
ml-slider/branches/refactor/inc/ml-slider.responsive.class.php
r671229 r671289 12 12 } 13 13 14 /** 15 * 16 */ 14 17 public function output() { 15 18 return parent::wrap_html($this->get_html()) . parent::get_javascript('responsiveSlides'); … … 25 28 26 29 if (parent::get_setting('printCss') == 'true') { 30 wp_enqueue_style('ml-slider_display_css', plugins_url('ml-slider/assets/ml-slider-display.css')); 27 31 wp_enqueue_style('ml-slider_responsive_slides_css', plugins_url('ml-slider/assets/responsiveslides/responsiveslides.css')); 28 32 } -
ml-slider/branches/refactor/ml-slider.php
r671267 r671289 66 66 wp_enqueue_script('jquery-ui-sortable', array('jquery', 'jquery-ui-core')); 67 67 wp_enqueue_script('ml-slider-tipsy', plugins_url('ml-slider/assets/tipsy/jquery.tipsy.js'), array('jquery')); 68 wp_enqueue_script('ml-slider-admin-script', plugins_url('ml-slider/assets/ml-slider.js'), array('jquery', 'jquery-ui-sortable', 'media-upload')); 69 68 wp_enqueue_script('ml-slider-admin-script', plugins_url('ml-slider/assets/ml-slider.js'), array('jquery', 'ml-slider-tipsy', 'media-upload')); 70 69 } 71 70 … … 86 85 ), MLSLIDER_ASSETS_URL . 'matchalabs.png', 99999); 87 86 88 add_action('admin_print_scripts-' . $page, array( $this, 'register_admin_scripts' ) , 99999);87 add_action('admin_print_scripts-' . $page, array( $this, 'register_admin_scripts' ) ); 89 88 } 90 89 … … 143 142 144 143 /** 145 * Get slide ID146 *147 * @return int the current slider ID148 */149 private function get_slider() {150 return $this->slider;151 }152 153 /**154 144 * Get settings for the current slider 155 145 * … … 157 147 */ 158 148 private function get_settings() { 159 return get_post_meta($this-> get_slider(), 'ml-slider_settings', true);149 return get_post_meta($this->slider->id, 'ml-slider_settings', true); 160 150 } 161 151 … … 211 201 212 202 while ($the_query->have_posts()) { 213 if (!$this-> get_slider()->id) {203 if (!$this->slider->id) { 214 204 $this->set_slider($the_query->post->ID); 215 205 } 216 206 217 207 $the_query->the_post(); 218 $active = $this-> get_slider()->id == $the_query->post->ID ? true : false;208 $active = $this->slider->id == $the_query->post->ID ? true : false; 219 209 220 210 $sliders[] = array( … … 237 227 238 228 $args = array( 239 'orderby' => $this-> get_setting('random') == 'true' && !is_admin() ? 'rand' : 'menu_order',229 'orderby' => $this->slider->get_setting('random') == 'true' && !is_admin() ? 'rand' : 'menu_order', 240 230 'order' => 'ASC', 241 231 'post_type' => 'attachment', … … 246 236 'taxonomy' => 'ml-slider', 247 237 'field' => 'slug', 248 'terms' => $this-> get_slider()->id238 'terms' => $this->slider->id 249 239 ) 250 240 ) … … 334 324 private function handle_update_slider_settings() { 335 325 if (isset($_POST['settings'])) { 336 $old_settings = get_post_meta($this-> get_slider(), 'ml-slider_settings', true);326 $old_settings = get_post_meta($this->slider->id, 'ml-slider_settings', true); 337 327 $new_settings = $_POST['settings']; 338 328 … … 349 339 350 340 // update the slider settings 351 update_post_meta($this-> get_slider(), 'ml-slider_settings', array_merge($old_settings, $new_settings));341 update_post_meta($this->slider->id, 'ml-slider_settings', array_merge($old_settings, $new_settings)); 352 342 353 343 // update settings 354 $this->settings = get_post_meta($this-> get_slider(), 'ml-slider_settings', true);344 $this->settings = get_post_meta($this->slider->id, 'ml-slider_settings', true); 355 345 } 356 346 } … … 362 352 if (isset($_POST['title'])) { 363 353 $slide = array( 364 'ID' => $this-> get_slider(),354 'ID' => $this->slider->id, 365 355 'post_title' => $_POST['title'] 366 356 ); … … 383 373 $new_terms = array(); 384 374 $current_terms = wp_get_object_terms($slideToUntagFromCurrentSlider, 'ml-slider', array('fields' => 'ids')); 385 $term = get_term_by('name', $this-> get_slider(), 'ml-slider');375 $term = get_term_by('name', $this->slider->id, 'ml-slider'); 386 376 387 377 foreach ($current_terms as $current_term) { … … 404 394 foreach ($_POST['attachment'] as $id => $fields) { 405 395 // get the term thats name is the same as the ID of the slider 406 $term = get_term_by('name', $this-> get_slider(), 'ml-slider');396 $term = get_term_by('name', $this->slider->id, 'ml-slider'); 407 397 408 398 // tag this slide to the taxonomy term … … 428 418 429 419 // add a new image size for the current slider 430 add_image_size('ml-slider-slide', $this-> get_setting('width'), $this->get_setting('height'), true);420 add_image_size('ml-slider-slide', $this->slider->get_setting('width'), $this->slider->get_setting('height'), true); 431 421 $file = get_attached_file($id); 432 422 // ask WordPress to resize our slides for us … … 505 495 $this->set_slider($id); 506 496 507 switch ($this-> get_setting('type')) {497 switch ($this->slider->get_setting('type')) { 508 498 case('coin') : 509 499 $slider = new MLCoinSlider($id); … … 537 527 538 528 <div class="wrap ml-slider"> 539 <form enctype="multipart/form-data" action="?page=ml-slider&id=<?php echo $this-> get_slider()->id ?>" method="post">529 <form enctype="multipart/form-data" action="?page=ml-slider&id=<?php echo $this->slider->id ?>" method="post"> 540 530 541 531 <h2 class="nav-tab-wrapper" style="font-size: 13px;"> … … 556 546 557 547 <?php 558 if (!$this-> get_slider()->id) {548 if (!$this->slider->id) { 559 549 return; 560 550 } … … 572 562 <tbody> 573 563 <?php 574 $slides = $this-> get_slider()->slides;564 $slides = $this->slider->slides; 575 565 576 566 foreach($slides as $slide) { … … 579 569 echo "<tr class='slide'>"; 580 570 echo "<td>"; 581 echo "<div style='position: absolute'><a class='delete-slide confirm' href='?page=ml-slider&id={$this-> get_slider()->id}&deleteSlide={$slide['id']}'>x</a></div>";571 echo "<div style='position: absolute'><a class='delete-slide confirm' href='?page=ml-slider&id={$this->slider->id}&deleteSlide={$slide['id']}'>x</a></div>"; 582 572 echo "<img src='{$image_attributes[0]}' width='150px'></td>"; 583 573 echo "<td>"; … … 609 599 <div class='slider-lib nivo'> 610 600 <label for='nivo' title='Version: 3.2<br />Responsive: Yes<br />Effects: 14<br />Size: 12kb<br />Mobile Friendly: Yes<br />Themes: 4' class='tooltiptop'>NivoSlider</label> 611 <input class="select-slider" id='nivo' rel='nivo' type='radio' name="settings[type]" <?php if ($this-> get_setting('type') == 'nivo') echo 'checked=checked' ?> value='nivo' />601 <input class="select-slider" id='nivo' rel='nivo' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'nivo') echo 'checked=checked' ?> value='nivo' /> 612 602 </div> 613 603 <div class='slider-lib coin'> 614 604 <label for='coin' title='Version: 1.0<br />Responsive: No<br />Effects: 4<br />Size: 8kb<br />Mobile Friendly: Yes' class='tooltiptop'>CoinSlider</label> 615 <input class="select-slider" id='coin' rel='coin' type='radio' name="settings[type]" <?php if ($this-> get_setting('type') == 'coin') echo 'checked=checked' ?> value='coin' />605 <input class="select-slider" id='coin' rel='coin' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'coin') echo 'checked=checked' ?> value='coin' /> 616 606 </div> 617 607 <div class='slider-lib flex'> 618 608 <label for='flex' title='Version: 2.1<br />Responsive: Yes<br />Effects: 2<br />Size: 17kb<br />Mobile Friendly: Yes' class='tooltiptop'>FlexSlider</label> 619 <input class="select-slider" id='flex' rel='flex' type='radio' name="settings[type]" <?php if ($this-> get_setting('type') == 'flex') echo 'checked=checked' ?> value='flex' />609 <input class="select-slider" id='flex' rel='flex' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'flex') echo 'checked=checked' ?> value='flex' /> 620 610 </div> 621 611 <div class='slider-lib responsive'> 622 612 <label for='responsive' title='Version: 1.53<br />Responsive: Yes<br />Effects: 1<br />Size: 3kb<br />Mobile Friendly: Yes' class='tooltiptop'>Responsive</label> 623 <input class="select-slider" id='responsive' rel='responsive' type='radio' name="settings[type]" <?php if ($this-> get_setting('type') == 'responsive') echo 'checked=checked' ?> value='responsive' />613 <input class="select-slider" id='responsive' rel='responsive' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'responsive') echo 'checked=checked' ?> value='responsive' /> 624 614 </div> 625 615 </td> … … 629 619 <td>Size</td> 630 620 <td> 631 <input type='text' size='3' name="settings[width]" value='<?php echo $this-> get_setting('width') ?>' />px X632 <input type='text' size='3' name="settings[height]" value='<?php echo $this-> get_setting('height') ?>' />px621 <input type='text' size='3' name="settings[width]" value='<?php echo $this->slider->get_setting('width') ?>' />px X 622 <input type='text' size='3' name="settings[height]" value='<?php echo $this->slider->get_setting('height') ?>' />px 633 623 </td> 634 624 </tr> … … 638 628 <td> 639 629 <select name="settings[effect]" class='effect option coin nivo flex'> 640 <option class='option coin nivo' value='random' <?php if ($this-> get_setting('effect') == 'random') echo 'selected=selected' ?>>Random</option>641 <option class='option coin' value='swirl' <?php if ($this-> get_setting('effect') == 'swirl') echo 'selected=selected' ?>>Swirl</option>642 <option class='option coin' value='rain' <?php if ($this-> get_setting('effect') == 'rain') echo 'selected=selected' ?>>Rain</option>643 <option class='option coin' value='straight' <?php if ($this-> get_setting('effect') == 'straight') echo 'selected=selected' ?>>Straight</option>644 <option class='option nivo' value='sliceDown' <?php if ($this-> get_setting('effect') == 'sliceDown') echo 'selected=selected' ?>>Slice Down</option>645 <option class='option nivo' value='sliceUp' <?php if ($this-> get_setting('effect') == 'sliceUp') echo 'selected=selected' ?>>Slice Up</option>646 <option class='option nivo' value='sliceUpLeft' <?php if ($this-> get_setting('effect') == 'sliceUpLeft') echo 'selected=selected' ?>>Slice Up Left</option>647 <option class='option nivo' value='sliceUpDown' <?php if ($this-> get_setting('effect') == 'sliceUpDown') echo 'selected=selected' ?>>Slice Up Down</option>648 <option class='option nivo' value='sliceUpDownLeft' <?php if ($this-> get_setting('effect') == 'sliceUpDownLeft') echo 'selected=selected' ?>>Slice Up Down Left</option>649 <option class='option nivo' value='fold' <?php if ($this-> get_setting('effect') == 'fold') echo 'selected=selected' ?>>Fold</option>650 <option class='option nivo flex' value='fade' <?php if ($this-> get_setting('effect') == 'fade') echo 'selected=selected' ?>>Fade</option>651 <option class='option nivo' value='slideInRight' <?php if ($this-> get_setting('effect') == 'slideInRight') echo 'selected=selected' ?>>Slide In Right</option>652 <option class='option nivo' value='slideInLeft' <?php if ($this-> get_setting('effect') == 'slideInLeft') echo 'selected=selected' ?>>Slide In Left</option>653 <option class='option nivo' value='boxRandom' <?php if ($this-> get_setting('effect') == 'boxRandom') echo 'selected=selected' ?>>Box Random</option>654 <option class='option nivo' value='boxRain' <?php if ($this-> get_setting('effect') == 'boxRain') echo 'selected=selected' ?>>Box Rain</option>655 <option class='option nivo' value='boxRainReverse' <?php if ($this-> get_setting('effect') == 'boxRainReverse') echo 'selected=selected' ?>>Box Rain Reverse</option>656 <option class='option nivo' value='boxRainGrowReverse' <?php if ($this-> get_setting('effect') == 'boxRainGrowReverse') echo 'selected=selected' ?>>Box Rain Grow Reverse</option>657 <option class='option flex' value='slide' <?php if ($this-> get_setting('effect') == 'slide') echo 'selected=selected' ?>>Slide</option>630 <option class='option coin nivo' value='random' <?php if ($this->slider->get_setting('effect') == 'random') echo 'selected=selected' ?>>Random</option> 631 <option class='option coin' value='swirl' <?php if ($this->slider->get_setting('effect') == 'swirl') echo 'selected=selected' ?>>Swirl</option> 632 <option class='option coin' value='rain' <?php if ($this->slider->get_setting('effect') == 'rain') echo 'selected=selected' ?>>Rain</option> 633 <option class='option coin' value='straight' <?php if ($this->slider->get_setting('effect') == 'straight') echo 'selected=selected' ?>>Straight</option> 634 <option class='option nivo' value='sliceDown' <?php if ($this->slider->get_setting('effect') == 'sliceDown') echo 'selected=selected' ?>>Slice Down</option> 635 <option class='option nivo' value='sliceUp' <?php if ($this->slider->get_setting('effect') == 'sliceUp') echo 'selected=selected' ?>>Slice Up</option> 636 <option class='option nivo' value='sliceUpLeft' <?php if ($this->slider->get_setting('effect') == 'sliceUpLeft') echo 'selected=selected' ?>>Slice Up Left</option> 637 <option class='option nivo' value='sliceUpDown' <?php if ($this->slider->get_setting('effect') == 'sliceUpDown') echo 'selected=selected' ?>>Slice Up Down</option> 638 <option class='option nivo' value='sliceUpDownLeft' <?php if ($this->slider->get_setting('effect') == 'sliceUpDownLeft') echo 'selected=selected' ?>>Slice Up Down Left</option> 639 <option class='option nivo' value='fold' <?php if ($this->slider->get_setting('effect') == 'fold') echo 'selected=selected' ?>>Fold</option> 640 <option class='option nivo flex' value='fade' <?php if ($this->slider->get_setting('effect') == 'fade') echo 'selected=selected' ?>>Fade</option> 641 <option class='option nivo' value='slideInRight' <?php if ($this->slider->get_setting('effect') == 'slideInRight') echo 'selected=selected' ?>>Slide In Right</option> 642 <option class='option nivo' value='slideInLeft' <?php if ($this->slider->get_setting('effect') == 'slideInLeft') echo 'selected=selected' ?>>Slide In Left</option> 643 <option class='option nivo' value='boxRandom' <?php if ($this->slider->get_setting('effect') == 'boxRandom') echo 'selected=selected' ?>>Box Random</option> 644 <option class='option nivo' value='boxRain' <?php if ($this->slider->get_setting('effect') == 'boxRain') echo 'selected=selected' ?>>Box Rain</option> 645 <option class='option nivo' value='boxRainReverse' <?php if ($this->slider->get_setting('effect') == 'boxRainReverse') echo 'selected=selected' ?>>Box Rain Reverse</option> 646 <option class='option nivo' value='boxRainGrowReverse' <?php if ($this->slider->get_setting('effect') == 'boxRainGrowReverse') echo 'selected=selected' ?>>Box Rain Grow Reverse</option> 647 <option class='option flex' value='slide' <?php if ($this->slider->get_setting('effect') == 'slide') echo 'selected=selected' ?>>Slide</option> 658 648 </select> 659 649 </td> … … 664 654 <td> 665 655 <select class='option nivo' name="settings[theme]"> 666 <option value='default' <?php if ($this-> get_setting('theme') == 'default') echo 'selected=selected' ?>>Default</option>667 <option value='dark' <?php if ($this-> get_setting('theme') == 'dark') echo 'selected=selected' ?>>Dark</option>668 <option value='light' <?php if ($this-> get_setting('theme') == 'light') echo 'selected=selected' ?>>Light</option>669 <option value='bar' <?php if ($this-> get_setting('theme') == 'bar') echo 'selected=selected' ?>>Bar</option>656 <option value='default' <?php if ($this->slider->get_setting('theme') == 'default') echo 'selected=selected' ?>>Default</option> 657 <option value='dark' <?php if ($this->slider->get_setting('theme') == 'dark') echo 'selected=selected' ?>>Dark</option> 658 <option value='light' <?php if ($this->slider->get_setting('theme') == 'light') echo 'selected=selected' ?>>Light</option> 659 <option value='bar' <?php if ($this->slider->get_setting('theme') == 'bar') echo 'selected=selected' ?>>Bar</option> 670 660 </select> 671 661 </td> … … 675 665 <td>Number of squares</td> 676 666 <td> 677 <input class='option coin nivo' type='text' size='2' name="settings[spw]" value='<?php echo $this-> get_setting('spw') ?>' /> x678 <input class='option coin nivo' type='text' size='2' name="settings[sph]" value='<?php echo $this-> get_setting('sph') ?>' />667 <input class='option coin nivo' type='text' size='2' name="settings[spw]" value='<?php echo $this->slider->get_setting('spw') ?>' /> x 668 <input class='option coin nivo' type='text' size='2' name="settings[sph]" value='<?php echo $this->slider->get_setting('sph') ?>' /> 679 669 </td> 680 670 </tr> … … 683 673 <td>Number of slices</td> 684 674 <td> 685 <input class='option nivo' type='text' size='2' name="settings[slices]" value='<?php echo $this-> get_setting('slices') ?>' />675 <input class='option nivo' type='text' size='2' name="settings[slices]" value='<?php echo $this->slider->get_setting('slices') ?>' /> 686 676 </td> 687 677 </tr> … … 689 679 <td><a href="#" class="tooltip" title="How long to display each slide, in milliseconds">?</a></td> 690 680 <td>Slide delay</td> 691 <td><input class='option coin flex responsive nivo' type='text' size='5' name="settings[delay]" value='<?php echo $this-> get_setting('delay') ?>' />ms</td>681 <td><input class='option coin flex responsive nivo' type='text' size='5' name="settings[delay]" value='<?php echo $this->slider->get_setting('delay') ?>' />ms</td> 692 682 </tr> 693 683 <tr> 694 684 <td><a href="#" class="tooltip" title="Delay beetwen squares in ms">?</a></td> 695 685 <td>Square delay</td> 696 <td><input class='option coin' type='text' size='5' name="settings[sDelay]" value='<?php echo $this-> get_setting('sDelay') ?>' />ms</td>686 <td><input class='option coin' type='text' size='5' name="settings[sDelay]" value='<?php echo $this->slider->get_setting('sDelay') ?>' />ms</td> 697 687 </tr> 698 688 <tr> 699 689 <td><a href="#" class="tooltip" title="Opacity of title and navigation">?</a></td> 700 690 <td>Opacity</td> 701 <td><input class='option coin' type='text' size='5' name="settings[opacity]" value='<?php echo $this-> get_setting('opacity') ?>' /></td>691 <td><input class='option coin' type='text' size='5' name="settings[opacity]" value='<?php echo $this->slider->get_setting('opacity') ?>' /></td> 702 692 </tr> 703 693 <tr> 704 694 <td><a href="#" class="tooltip" title="Set the fade in speef of the caption">?</a></td> 705 695 <td>Caption speed</td> 706 <td><input class='option coin' type='text' size='5' name="settings[titleSpeed]" value='<?php echo $this-> get_setting('titleSpeed') ?>' />ms</td>696 <td><input class='option coin' type='text' size='5' name="settings[titleSpeed]" value='<?php echo $this->slider->get_setting('titleSpeed') ?>' />ms</td> 707 697 </tr> 708 698 <tr> 709 699 <td><a href="#" class="tooltip" title="Set the speed of animations, in milliseconds">?</a></td> 710 700 <td>Animation speed</td> 711 <td><input class='option flex responsive nivo' type='text' size='5' name="settings[animationSpeed]" value='<?php echo $this-> get_setting('animationSpeed') ?>' />ms</td>701 <td><input class='option flex responsive nivo' type='text' size='5' name="settings[animationSpeed]" value='<?php echo $this->slider->get_setting('animationSpeed') ?>' />ms</td> 712 702 </tr> 713 703 <tr> … … 715 705 <td>Navigation</td> 716 706 <td> 717 <input class='option coin responsive nivo flex' type='checkbox' name="settings[navigation]" <?php if ($this-> get_setting('navigation') == 'true') echo 'checked=checked' ?> />707 <input class='option coin responsive nivo flex' type='checkbox' name="settings[navigation]" <?php if ($this->slider->get_setting('navigation') == 'true') echo 'checked=checked' ?> /> 718 708 </td> 719 709 </tr> … … 722 712 <td>Links</td> 723 713 <td> 724 <input class='option responsive nivo flex' type='checkbox' name="settings[links]" <?php if ($this-> get_setting('links') == 'true') echo 'checked=checked' ?> />714 <input class='option responsive nivo flex' type='checkbox' name="settings[links]" <?php if ($this->slider->get_setting('links') == 'true') echo 'checked=checked' ?> /> 725 715 </td> 726 716 </tr> … … 729 719 <td>Hover pause</td> 730 720 <td> 731 <input class='option coin flex responsive nivo' type='checkbox' name="settings[hoverPause]" <?php if ($this-> get_setting('hoverPause') == 'true') echo 'checked=checked' ?> />721 <input class='option coin flex responsive nivo' type='checkbox' name="settings[hoverPause]" <?php if ($this->slider->get_setting('hoverPause') == 'true') echo 'checked=checked' ?> /> 732 722 </td> 733 723 </tr> … … 736 726 <td>Reverse</td> 737 727 <td> 738 <input class='option flex' type='checkbox' name="settings[reverse]" <?php if ($this-> get_setting('reverse') == 'true') echo 'checked=checked' ?> />728 <input class='option flex' type='checkbox' name="settings[reverse]" <?php if ($this->slider->get_setting('reverse') == 'true') echo 'checked=checked' ?> /> 739 729 </td> 740 730 </tr> … … 743 733 <td>Random</td> 744 734 <td> 745 <input type='checkbox' name="settings[random]" <?php if ($this-> get_setting('random') == 'true') echo 'checked=checked' ?> />735 <input type='checkbox' name="settings[random]" <?php if ($this->slider->get_setting('random') == 'true') echo 'checked=checked' ?> /> 746 736 </td> 747 737 </tr> … … 750 740 <td>Print CSS</td> 751 741 <td> 752 <input type='checkbox' name="settings[printCss]" <?php if ($this-> get_setting('printCss') == 'true') echo 'checked=checked' ?> />742 <input type='checkbox' name="settings[printCss]" <?php if ($this->slider->get_setting('printCss') == 'true') echo 'checked=checked' ?> /> 753 743 </td> 754 744 </tr> … … 757 747 <td>Print JS</td> 758 748 <td> 759 <input type='checkbox' name="settings[printJs]" <?php if ($this-> get_setting('printJs') == 'true') echo 'checked=checked' ?> />749 <input type='checkbox' name="settings[printJs]" <?php if ($this->slider->get_setting('printJs') == 'true') echo 'checked=checked' ?> /> 760 750 </td> 761 751 </tr> … … 765 755 <td> 766 756 <select class='option flex' name="settings[direction]"> 767 <option value='horizontal' <?php if ($this-> get_setting('direction') == 'horizontal') echo 'selected=selected' ?>>Horizontal</option>768 <option value='vertical' <?php if ($this-> get_setting('direction') == 'vertical') echo 'selected=selected' ?>>Vertical</option>757 <option value='horizontal' <?php if ($this->slider->get_setting('direction') == 'horizontal') echo 'selected=selected' ?>>Horizontal</option> 758 <option value='vertical' <?php if ($this->slider->get_setting('direction') == 'vertical') echo 'selected=selected' ?>>Vertical</option> 769 759 </select> 770 760 </td> … … 773 763 <td><a href="#" class="tooltip" title="Set the text for the 'previous' direction item">?</a></td> 774 764 <td>Previous text</td> 775 <td><input class='option flex responsive nivo' type='text' name="settings[prevText]" value='<?php if ($this-> get_setting('prevText') != 'false') echo $this->get_setting('prevText') ?>' /></td>765 <td><input class='option flex responsive nivo' type='text' name="settings[prevText]" value='<?php if ($this->slider->get_setting('prevText') != 'false') echo $this->slider->get_setting('prevText') ?>' /></td> 776 766 </tr> 777 767 <tr> 778 768 <td><a href="#" class="tooltip" title="Set the text for the 'next' direction item">?</a></td> 779 769 <td>Next text</td> 780 <td><input class='option flex responsive nivo' type='text' name="settings[nextText]" value='<?php if ($this-> get_setting('nextText') != 'false') echo $this->get_setting('nextText') ?>' /></td>770 <td><input class='option flex responsive nivo' type='text' name="settings[nextText]" value='<?php if ($this->slider->get_setting('nextText') != 'false') echo $this->slider->get_setting('nextText') ?>' /></td> 781 771 </tr> 782 772 <tr> 783 773 <td><a href="#" class="tooltip" title="Specify any custom CSS Classes you would like to be added to the slider wrapper">?</a></td> 784 774 <td>CSS classes</td> 785 <td><input type='text' name="settings[cssClass]" value='<?php if ($this-> get_setting('cssClass') != 'false') echo $this->get_setting('cssClass') ?>' /></td>775 <td><input type='text' name="settings[cssClass]" value='<?php if ($this->slider->get_setting('cssClass') != 'false') echo $this->slider->get_setting('cssClass') ?>' /></td> 786 776 </tr> 787 777 </tbody> … … 797 787 <tbody> 798 788 <tr> 799 <td><textarea style="width: 100%">[ml-slider id=<?php echo $this-> get_slider()?>]</textarea></td>789 <td><textarea style="width: 100%">[ml-slider id=<?php echo $this->slider->id ?>]</textarea></td> 800 790 </tr> 801 791 </tbody> … … 803 793 804 794 <br /> 805 <a class='alignright button-secondary confirm' href="?page=ml-slider&delete=<?php echo $this-> get_slider()?>">Delete Slider</a>795 <a class='alignright button-secondary confirm' href="?page=ml-slider&delete=<?php echo $this->slider->id ?>">Delete Slider</a> 806 796 </div> 807 797 </form>
Note: See TracChangeset
for help on using the changeset viewer.