Changeset 1214915
- Timestamp:
- 08/07/2015 02:41:12 PM (11 years ago)
- Location:
- penci-slider/trunk
- Files:
-
- 4 edited
-
inc/functions.php (modified) (1 diff)
-
inc/pencislider-form.php (modified) (1 diff)
-
inc/style.php (modified) (2 diffs)
-
init.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
penci-slider/trunk/inc/functions.php
r1212241 r1214915 3 3 $defaults_options = array( 4 4 'title_font' => 'Default', 5 'title_off_uppercase' => ' 0',5 'title_off_uppercase' => '', 6 6 'title_font_size' => '42', 7 7 'title_font_weight' => 'normal', -
penci-slider/trunk/inc/pencislider-form.php
r1212241 r1214915 34 34 </div> 35 35 <div class="kang-settings-input"> 36 <input type="checkbox" name="penci_slider_options[title_off_uppercase]" value="0" <?php checked( $plugin_options['title_off_uppercase'], 1); ?> /><span class="penci-more-detail"><?php _e( 'Turn Off Uppercase In Slide Title', 'pencidesign'); ?></span>36 <input type="checkbox" name="penci_slider_options[title_off_uppercase]" <?php checked( (bool) $plugin_options['title_off_uppercase'], true ); ?> /><span class="penci-more-detail"><?php _e( 'Turn Off Uppercase In Slide Title', 'pencidesign'); ?></span> 37 37 </div> 38 38 </div> -
penci-slider/trunk/inc/style.php
r1212241 r1214915 32 32 $overlay_opacity = isset( $options['overlay_opacity'] ) ? $options['overlay_opacity'] : '0.4'; 33 33 if( !in_array( $overlay_opacity, array( '0', '0.05', '0.1', '0.15', '0.2', '0.25', '0.3', '0.35', '0.4', '0.45', '0.5', '0.55', '0.6', '0.65', '0.7', '0.75', '0.8', '0.85', '0.9', '0.95', '1' ) ) ): $overlay_opacity = '0.4'; endif; 34 35 $title_off_uppercase = isset( $options['title_off_uppercase'] ) ? $options['title_off_uppercase'] : '0';36 if( $title_off_uppercase != '1' ): $title_off_uppercase = '0'; endif;37 34 38 35 $title_font_weight = isset( $options['title_font_weight'] ) ? $options['title_font_weight'] : 'normal'; … … 81 78 <?php endif; ?> 82 79 83 <?php if( $ title_off_uppercase == '1'): ?>.penci-slider .pencislider-container .pencislider-content .pencislider-title { text-transform: none; }<?php endif; ?>80 <?php if( $options['title_off_uppercase'] ): ?>.penci-slider .pencislider-container .pencislider-content .pencislider-title { text-transform: none; }<?php endif; ?> 84 81 .penci-slider ul.slides li:before { opacity: <?php echo $overlay_opacity; ?>; } 85 82 .penci-slider .pencislider-container .pencislider-content .pencislider-title { font-size: <?php echo $title_font_size; ?>px; font-weight: <?php echo $title_font_weight; ?>; } -
penci-slider/trunk/init.php
r1214295 r1214915 497 497 $defaults = array( 498 498 'title_font' => 'Default', 499 'title_off_uppercase' => ' 0',499 'title_off_uppercase' => '', 500 500 'title_font_size' => '42', 501 501 'title_font_weight' => 'normal',
Note: See TracChangeset
for help on using the changeset viewer.