Changeset 2236152
- Timestamp:
- 01/31/2020 02:10:26 AM (6 years ago)
- Location:
- content-repeater/trunk
- Files:
-
- 3 edited
-
content-repeater.php (modified) (4 diffs)
-
includes/admin-page.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
content-repeater/trunk/content-repeater.php
r2236144 r2236152 3 3 * Plugin Name: Content Repeater 4 4 * Description: Quickly set up custom content like Testimonials, Coupons, Products, Flipboxes, Portals, Portfolios, Before & Afters, etc. and display it in interesting ways: Ajax Reload, Masonry, Isotope, Slick Slider, Single Row. 5 * Version: 1.1. 25 * Version: 1.1.3 6 6 * Author: Denis Buka 7 7 * Text Domain: content-repeater … … 33 33 require_once RPTR_PATH.'includes/sorting.php'; 34 34 35 self::$d['breakpoints'] = 'SM:384,MD:576,LG:768,XL:960';35 // self::$d['breakpoints'] = 'SM:384,MD:576,LG:768,XL:960'; 36 36 self::$o = '{'; 37 37 self::$c = '}'; … … 101 101 public static function rptr_front_scripts_styles() { 102 102 add_action( 'wp_head', function() { 103 $breakpoints = (rptr_get_option('breakpoints') !== null) ? rptr_get_option('breakpoints') : self::$d['breakpoints'];103 $breakpoints = (rptr_get_option('breakpoints') !== null) ? rptr_get_option('breakpoints') : '0'; 104 104 ?> 105 105 <script type="text/javascript"> … … 379 379 380 380 $classes .= (($template == 'template_single') ? ' cr-single '.$type.'-single' : ''); 381 $dor = (rptr_get_option('breakpoints') !== '0') ? ' data-observe-resizes' : ''; 381 if(rptr_get_option('breakpoints') && rptr_get_option('breakpoints') !== '0') { 382 $dor = ' data-observe-resizes'; 383 } else { 384 $dor = ''; 385 } 382 386 $output = '<div class="crid-'.$id.' cri'.$classes.' clearfix"'.$style.$dor.'>'; 383 387 $output .= $content; -
content-repeater/trunk/includes/admin-page.php
r2079539 r2236152 196 196 'type' => 'text', 197 197 'name' => 'rptr_options[breakpoints]', 198 'value' => (isset($options['breakpoints'])) ? $options['breakpoints'] : self::$d['breakpoints'],199 'descr' => "Responsive breakpoints, 0 to disable Resize Observer ( default: ".self::$d['breakpoints'].")",198 'value' => (isset($options['breakpoints'])) ? $options['breakpoints'] : '0', 199 'descr' => "Responsive breakpoints, 0 to disable Resize Observer (example: SM:384,MD:576,LG:768,XL:960)", 200 200 'classes' => 'cr-breakpoints' 201 201 )); ?> -
content-repeater/trunk/readme.txt
r2236144 r2236152 116 116 = 1.1.2 = 117 117 remove id="crid-..." 118 = 1.1.3 = 119 disable Resize Observer by default
Note: See TracChangeset
for help on using the changeset viewer.