Changeset 1072438
- Timestamp:
- 01/21/2015 10:21:55 AM (11 years ago)
- Location:
- mykraft-owl-slider/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (3 diffs)
-
mykraft-owl-slider.php (modified) (4 diffs)
-
owl-carousel/owl.theme.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mykraft-owl-slider/trunk/README.txt
r1049265 r1072438 5 5 Requires at least: 3.0 6 6 Tested up to: 4.1 7 Stable tag: trunk7 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 26 26 9. Auto play 27 27 10. WordPress extended Customize page with slider options 28 11. Set slider width in pixels (default slider width 100%) 28 29 29 30 … … 60 61 ==Changelog== 61 62 63 = 1.1 = 64 * Added slider maximum width support for Customizer. 65 62 66 = 1.0 = 63 67 * Published version 64 68 65 69 == Upgrade Notice == 70 71 = 1.1 = 72 Upgrade: Added slider maximum width support for Customizer. 66 73 67 74 = 1.0 = -
mykraft-owl-slider/trunk/mykraft-owl-slider.php
r1036538 r1072438 4 4 Plugin URI: http://megakrafts.com/mykraft-owl-slider-plugin 5 5 Description: Mykraft Owl Slider is a simple, responsive WordPress slider plugin ideal for template homepage. It is based on OWL Carousel, touch enabled jQuery plugin. Slider works as a custom post type with featured images, excerpt as a slide description and each slide can have a link with an option to open a link in a new tab. 6 Version: 1. 06 Version: 1.1 7 7 Author: Vitomir Gojak 8 8 Author Email: mykraftmail@gmail.com … … 13 13 if ( function_exists( 'add_theme_support' ) ) { 14 14 add_theme_support( 'post-thumbnails' ); 15 add_image_size( 'slider', 1200, 400, true );16 15 } 17 16 … … 272 271 } 273 272 add_action('wp_head', 'slider_hidepagination'); 273 274 // Slider Width for WP Customizer 275 function slider_width_size() { ?> 276 <style type="text/css"> 277 .owl-background { 278 max-width: <?php if (get_theme_mod( 'slider_width' )) : echo get_theme_mod( 'slider_width'); endif; ?>px; 279 } 280 </style> 281 <?php } 282 add_action('wp_head', 'slider_width_size'); 274 283 275 284 // WP Customizer Menu Slider Options … … 333 342 'priority' => 4 334 343 ) ); 344 345 // Slider Width 346 $wp_manager->add_setting( 'slider_width', array( 347 'default' => '', 348 ) ); 349 350 $wp_manager->add_control( 'slider_width', array( 351 'label' => 'Slider Maximum Width - numeric value (e.g. 1400), without px', 352 'section' => 'customiser_slider_theme_section', 353 'type' => 'text', 354 'priority' => 5 355 ) ); 335 356 } 336 357 } 337 338 358 ?> -
mykraft-owl-slider/trunk/owl-carousel/owl.theme.css
r1036538 r1072438 138 138 .owl-background { 139 139 margin: 0 auto; 140 max-width: 1 200px;140 max-width: 100%; 141 141 width: 100%; 142 142 height: auto;
Note: See TracChangeset
for help on using the changeset viewer.