Plugin Directory

Changeset 1072438


Ignore:
Timestamp:
01/21/2015 10:21:55 AM (11 years ago)
Author:
gojak
Message:

Version 1.1

Location:
mykraft-owl-slider/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mykraft-owl-slider/trunk/README.txt

    r1049265 r1072438  
    55Requires at least: 3.0
    66Tested up to: 4.1 
    7 Stable tag: trunk
     7Stable tag: 1.1
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    26269. Auto play
    272710. WordPress extended Customize page with slider options
     2811. Set slider width in pixels (default slider width 100%)
    2829
    2930 
     
    6061==Changelog==
    6162
     63= 1.1 =
     64* Added slider maximum width support for Customizer.
     65
    6266= 1.0 =
    6367* Published version
    6468
    6569== Upgrade Notice ==
     70
     71= 1.1 =
     72Upgrade: Added slider maximum width support for Customizer.
    6673
    6774= 1.0 =
  • mykraft-owl-slider/trunk/mykraft-owl-slider.php

    r1036538 r1072438  
    44Plugin URI: http://megakrafts.com/mykraft-owl-slider-plugin
    55Description: 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.0
     6Version: 1.1
    77Author: Vitomir Gojak
    88Author Email: mykraftmail@gmail.com
     
    1313    if ( function_exists( 'add_theme_support' ) ) {
    1414    add_theme_support( 'post-thumbnails' );
    15     add_image_size( 'slider', 1200, 400, true );
    1615    }
    1716   
     
    272271    }
    273272    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');
    274283   
    275284//  WP Customizer Menu Slider Options
     
    333342                'priority' => 4
    334343            ) );
     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            ) );       
    335356        }
    336357    }
    337 
    338358?>
  • mykraft-owl-slider/trunk/owl-carousel/owl.theme.css

    r1036538 r1072438  
    138138.owl-background {
    139139    margin: 0 auto;
    140     max-width: 1200px;
     140    max-width: 100%;
    141141    width: 100%;
    142142    height: auto;
Note: See TracChangeset for help on using the changeset viewer.