Plugin Directory

Changeset 1261360


Ignore:
Timestamp:
10/07/2015 11:56:25 PM (10 years ago)
Author:
chrdesigner
Message:

New version - 1.0.4

Location:
showcase-visual-composer-addon
Files:
52 added
16 edited

Legend:

Unmodified
Added
Removed
  • showcase-visual-composer-addon/trunk/admin/css/style.min.css

    r1257048 r1261360  
    1 .showcase-visual-composer-addon-admin{display:block;width:100%;margin-bottom:0}.showcase-visual-composer-addon-admin dd{display:inline-block;width:100%;margin-left:0}.showcase-visual-composer-addon-admin dd .label-showcase-visual-composer-addon{width:15%;float:left;font-weight:700;margin-top:5px;padding:0 0 10px}.showcase-visual-composer-addon-admin dd .input-showcase-visual-composer-addon{width:80%;float:left;margin-right:5px}.showcase-visual-composer-addon-admin dd .input-showcase-visual-composer-addon > *{display:block;width:100%}.handlediv{display: none}#showcase_meta_box.postbox {background: none repeat scroll 0 0 transparent;border: 0 none;box-shadow: none}
     1#titlediv > .inside, #minor-publishing-actions, #message.notice-success p a, .row-actions .view, .handlediv{display: none;}.showcase-visual-composer-addon-admin{display:block;width:100%;margin-bottom:0}.showcase-visual-composer-addon-admin dd{display:inline-block;width:100%;margin-left:0}.showcase-visual-composer-addon-admin dd .label-showcase-visual-composer-addon{width:15%;float:left;font-weight:700;margin-top:5px;padding:0 0 10px}.showcase-visual-composer-addon-admin dd .input-showcase-visual-composer-addon{width:80%;float:left;margin-right:5px}.showcase-visual-composer-addon-admin dd .input-showcase-visual-composer-addon > *{display:block;width:100%}#showcase_meta_box.postbox {background: none repeat scroll 0 0 transparent;border: 0 none;box-shadow: none}
  • showcase-visual-composer-addon/trunk/assets/css/owl.carousel.min.css

    r1057187 r1261360  
    1 .owl-carousel .owl-wrapper:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel{display:none;position:relative;width:100%;-ms-touch-action:pan-y}.owl-carousel .owl-wrapper{display:none;position:relative;-webkit-transform:translate3d(0px,0px,0px)}.owl-carousel .owl-wrapper-outer{overflow:hidden;position:relative;width:100%}.owl-carousel .owl-wrapper-outer.autoHeight{-webkit-transition:height 500ms ease-in-out;-moz-transition:height 500ms ease-in-out;-ms-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.owl-carousel .owl-item{float:left}.owl-controls .owl-page,.owl-controls .owl-buttons div{cursor:pointer}.owl-controls{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.grabbing{cursor:url(grabbing.png) 8 8,move}.owl-carousel .owl-wrapper,.owl-carousel .owl-item{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-theme .owl-controls{margin-top:10px;text-align:center}.owl-theme .owl-controls .owl-buttons div{color:#FFF;display:inline-block;zoom:1;*display:inline;margin:5px;padding:3px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;background:#869791;filter:Alpha(Opacity=50);opacity:.5}.owl-theme .owl-controls.clickable .owl-buttons div:hover{filter:Alpha(Opacity=100);opacity:1;text-decoration:none}.owl-theme .owl-controls .owl-page{display:inline-block;zoom:1;*display:inline}.owl-theme .owl-controls .owl-page span{display:block;width:12px;height:12px;margin:5px 7px;filter:Alpha(Opacity=50);opacity:.5;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;background:#869791}.owl-theme .owl-controls .owl-page.active span,.owl-theme .owl-controls.clickable .owl-page:hover span{filter:Alpha(Opacity=100);opacity:1}.owl-theme .owl-controls .owl-page span.owl-numbers{height:auto;width:auto;color:#FFF;padding:2px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.owl-item.loading{min-height:150px;background:url(./../ajax-loader.gif) no-repeat center center}
     1.owl-carousel .owl-wrapper:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel,.owl-carousel .owl-wrapper{position:relative;display:none}.owl-carousel{width:100%;-ms-touch-action:pan-y}.owl-carousel .owl-wrapper-outer{overflow:hidden;position:relative;width:100%}.owl-carousel .owl-wrapper-outer.autoHeight{-webkit-transition:height 500ms ease-in-out;-moz-transition:height 500ms ease-in-out;-ms-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.owl-carousel .owl-item{float:left}.owl-controls .owl-buttons div,.owl-controls .owl-page{cursor:pointer}.owl-controls{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.grabbing{cursor:url(grabbing.png) 8 8,move}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}
  • showcase-visual-composer-addon/trunk/includes/add-colums-showcase.php

    r1257048 r1261360  
    66    $columns = array(
    77        'cb' => '<input type="checkbox" />',
    8         'showcase_edit' => __( 'Name', 'showcase-visual-composer-addon' ),
    98        'showcase_image' => __( 'Image/Brand', 'showcase-visual-composer-addon' ),
     9        'title' => __( 'Name', 'showcase-visual-composer-addon' ),
    1010        'showcase_texto' => __( 'Summary Content', 'showcase-visual-composer-addon' ),
    1111        'showcase_url' => __( 'URL', 'showcase-visual-composer-addon' )       
     
    1919 */
    2020function showcase_posts_columns( $column, $post_id ) {
     21    global $post;
    2122    switch ( $column ) {
    22         case 'showcase_edit':
    23             echo sprintf( '<a href="%1$s" title="%2$s">%2$s</a>', admin_url( 'post.php?post=' . $post_id . '&action=edit' ), get_the_title() );
    24             break;
    2523        case 'showcase_image':
    26             $sc_carousel_thumb = get_the_post_thumbnail(  $post_id, 'thumb' );
    27             echo $sc_carousel_thumb;
     24            $sc_carousel_thumb = get_the_post_thumbnail(  $post_id, 'thumbnail' );
     25            echo sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', admin_url( 'post.php?post=' . $post_id . '&action=edit' ), get_the_title(), $sc_carousel_thumb );
    2826            break;
    2927        case 'showcase_texto':
  • showcase-visual-composer-addon/trunk/includes/showcase_meta_box.php

    r1257048 r1261360  
    44*/
    55
    6 function showcase_meta_box(){       
    7     add_meta_box('showcase_meta_box', __('More Info - Showcase', 'showcase-visual-composer-addon'), 'create_shocase_meta_box', 'showcases', 'advanced', 'high');
    8 }
     6function showcase_meta_box(){
     7    add_meta_box(
     8        'showcase_meta_box',
     9        __('More Info - Showcase', 'showcase-visual-composer-addon'),
     10        'create_shocase_meta_box',
     11        'showcases',
     12        'advanced',
     13        'high'
     14    );
     15};
    916
    1017function create_shocase_meta_box(){
    1118    global $post;
    1219
     20    $meta_element_align = get_post_meta($post->ID, 'custom_element_grid_align_meta_box', true);
    1321    $vc_showcase_facebook = get_post_meta($post->ID, 'vc_showcase_facebook', true);
    1422    $vc_showcase_google_plus = get_post_meta($post->ID, 'vc_showcase_google_plus', true);
     
    1725
    1826    ?>
     27
    1928    <dl class="showcase-visual-composer-addon-admin">
     29        <dd>
     30            <div class="label-showcase-visual-composer-addon">
     31                <label><?php _e('Image default align');?></label>
     32            </div>
     33            <div class="input-showcase-visual-composer-addon">
     34                <select name="custom_element_grid_align" id="custom_element_grid_align">
     35                    <option value="left" <?php selected( $meta_element_align, 'left' ); ?>><?php _e('Left', 'showcase-visual-composer-addon');?></option>
     36                    <option value="center" <?php selected( $meta_element_align, 'center' ); ?>><?php _e('Center', 'showcase-visual-composer-addon');?></option>
     37                    <option value="right" <?php selected( $meta_element_align, 'right' ); ?>><?php _e('Right', 'showcase-visual-composer-addon');?></option>
     38                </select>
     39            </div>
     40        </dd>
    2041        <dd>
    2142            <div class="label-showcase-visual-composer-addon">
     
    5778
    5879<?php
    59 }
     80};
    6081
    6182add_action( 'save_post', 'showcase_save_post', 1, 2 );
     
    7596    update_post_meta($post->ID, 'vc_showcase_custom_link', $_POST['vc_showcase_custom_link']);
    7697
     98    if(isset($_POST["custom_element_grid_align"])){
     99        $meta_element_align = $_POST['custom_element_grid_align'];
     100        update_post_meta($post->ID, 'custom_element_grid_align_meta_box', $meta_element_align);
     101    }
     102
    77103}
     104
  • showcase-visual-composer-addon/trunk/readme.txt

    r1257048 r1261360  
    99Tested up to: 4.3.1
    1010
    11 Stable tag: 1.0.3
     11Stable tag: 1.0.4
    1212License: GPLv2 or later
    1313
     
    2222== Description ==
    2323
    24 Create a amazing carousel showcase with Ajax presentations with Showcase - Visual Composer Addon you have three different box presentations Above, Below and Floats.
     24Create an amazing carousel showcase with Ajax presentations with Showcase - Visual Composer Addon you have three different box presentations Above, Below and Floats.
    2525
    26 * Important: This plugin is only a <strong>addon</strong>, you need to have installed Visual Composer -> <strong>Requires: 4.3 or higher</strong>;
     26* Important: This plugin is only an <strong>addon</strong>, you need to have installed Visual Composer -> <strong>Requires: 4.3 or higher</strong>;
     27* Important: It's an <strong>addon</strong>, if you have any question about the Visual Composer. Please, go to http://vc.wpbakery.com/
    2728* Important: After activate the plugin go to "Settings > Permalinks” and click on Save Changes button;
    2829
     
    888911. Content Above
    899012. Content Floats
     9113. Featured Image - Right
     9214. Featured Image - Center
    9093
    9194== Changelog ==
     
    109112* Changed to text domain showcase-vc-addon to showcase-visual-composer-addon.
    110113
     114= 1.0.4 =
     115
     116* Fixed Bugs.
     117* Tested Visual Composer verison up to: 4.7.0
     118* Updated OWL Carousel - JS/CSS
     119* Added new function - Position Featured Image inside post content "Left, Right and Center".
     120
    111121== Upgrade Notice ==
    112122
     
    129139* Changed to text domain showcase-vc-addon to showcase-visual-composer-addon.
    130140
     141= 1.0.4 =
     142
     143* Fixed Bugs.
     144* Tested Visual Composer verison up to: 4.7.0
     145* Updated OWL Carousel - JS/CSS
     146* Added new function - Position Featured Image inside post content "Left, Right and Center".
     147
    131148== License ==
    132149
  • showcase-visual-composer-addon/trunk/showcase-vc-addon.php

    r1257048 r1261360  
    22/*
    33Plugin Name: Showcase - Visual Composer Addon
    4 Version: 1.0.3
    5 Description: Create a amazing carousel showcase with Ajax presentations with Showcase - Visual Composer Addon you have three different box presentations.
     4Version: 1.0.4
     5Description: Create an amazing carousel showcase with Ajax presentations with Showcase - Visual Composer Addon you have three different box presentations.
    66Author: CHR Designer
    77Author URI:  http://chrdesigner.com
     
    5959            ),
    6060 
    61             'public' => true,
    62             'menu_position' => 15,
    63             'supports' => array( 'title', 'editor', 'thumbnail' ),
    64             'taxonomies' => array( '' ),
    65             'menu_icon' => '',
     61            'public'               => true,
     62            'menu_position'        => 15,
     63            'supports'             => array( 'title', 'editor', 'thumbnail' ),
     64            'taxonomies'           => array( '' ),
     65            'menu_icon'            => '',
    6666            'register_meta_box_cb' => 'showcase_meta_box',
    67             'has_archive' => true
     67            'has_archive'          => true
    6868        )
    6969    );
     
    7777add_image_size( 'brand-testimonial', 450, 450, array( 'left', 'top' ) );
    7878
     79add_action( 'wp_enqueue_scripts', 'chr_script_showcase_vc_addon' );
    7980function chr_script_showcase_vc_addon() {
    80     wp_register_script( 'owl.carousel.js', plugins_url('/assets/js/owl.carousel.min.js' , __FILE__ ), false, '1.3.2', false );
     81    wp_register_script( 'owl.carousel.js', plugins_url('/assets/js/owl.carousel.min.js' , __FILE__ ), false, '1.3.3', true );
    8182    wp_enqueue_script( 'owl.carousel.js' );
    82     wp_register_style( 'owl.carousel.css', plugins_url('/assets/css/owl.carousel.min.css' , __FILE__ ), false, '1.3.2', false );
     83    wp_register_style( 'owl.carousel.css', plugins_url('/assets/css/owl.carousel.min.css' , __FILE__ ), false, '1.3.3', false );
    8384    wp_enqueue_style( 'owl.carousel.css' );
    84     wp_register_style( 'sc.vc.addon.style', plugins_url('/assets/css/style.min.css' , __FILE__ ), false, '1.0.0', false );
     85    wp_register_style( 'owl.theme.css', plugins_url('/assets/css/owl.theme.min.css' , __FILE__ ), false, '1.3.3', false );
     86    wp_enqueue_style( 'owl.theme.css' );
     87    wp_register_style( 'sc.vc.addon.style', plugins_url('/assets/css/style.min.css' , __FILE__ ), false, '1.0.4', false );
    8588    wp_enqueue_style( 'sc.vc.addon.style' );
    8689}
    87 add_action( 'wp_enqueue_scripts', 'chr_script_showcase_vc_addon' );
    8890
    8991function chr_style_showcase_vc_addon() {
    90     wp_register_style( 'style.sc.vc.addon.admin', plugins_url('/admin/css/style.sc.vc.addon.admin.css' , __FILE__ ), false, '1.0.0', false );
     92    wp_register_style( 'style.sc.vc.addon.admin', plugins_url('/admin/css/style.sc.vc.addon.admin.css' , __FILE__ ), false, '1.0.4', false );
    9193    wp_enqueue_style( 'style.sc.vc.addon.admin' );
    9294}
  • showcase-visual-composer-addon/trunk/single-showcases.php

    r1257048 r1261360  
    44    global $post;
    55   
     6    $meta_element_align = get_post_meta(get_the_ID(), 'custom_element_grid_align_meta_box', true);
     7    if( empty($meta_element_align) ) { $meta_element_align = 'left'; };
    68    $vc_showcase_facebook = get_post_meta(get_the_ID(), 'vc_showcase_facebook', true);
    79    $vc_showcase_google_plus = get_post_meta(get_the_ID(), 'vc_showcase_google_plus', true);
     
    1315    <section id="showcase-post-<?php the_ID(); ?>">
    1416        <a id="showcase-closebtn">X</a>
    15         <article class="vc_col-sm-12 vc_span12">
     17        <article class="vc_col-xs-12 vc_col-sm-12 vc_col-md-12 vc_col-lg-12">
     18
    1619        <?php
    17         if ( has_post_thumbnail() ) { echo '
    18             <figure class="vc_col-sm-4 vc_span4">
    19                 ' . get_the_post_thumbnail( get_the_ID(), 'brand-testimonial' , array('class' => 'showcase-brand')) . '
     20        if ( has_post_thumbnail() ) {   
     21            if($meta_element_align == 'center'){
     22                $class_sc_figure = 'vc_col-xs-12 vc_col-sm-12 vc_col-md-12 vc_col-lg-12 vc_gitem-float-none';
     23                $class_sc_blockquote = 'vc_col-xs-12 vc_col-sm-12 vc_col-md-12 vc_col-lg-12';
     24                $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), large );
     25            }elseif($meta_element_align == 'right'){
     26                $class_sc_figure = 'vc_col-xs-4 vc_col-sm-4 vc_col-md-4 vc_col-lg-4 vc_gitem-float-right ';
     27                $class_sc_blockquote = 'vc_col-xs-7 vc_col-sm-7 vc_col-md-7 vc_col-lg-7';
     28                $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), thumbnail );
     29            }else{
     30                $class_sc_figure = 'vc_col-xs-4 vc_col-sm-4 vc_col-md-4 vc_col-lg-4 vc_gitem-float-left';
     31                $class_sc_blockquote = 'vc_col-xs-7 vc_col-sm-7 vc_col-md-7 vc_col-lg-7';
     32                $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), thumbnail );
     33            };?>
     34            <figure class="<?php echo $class_sc_figure;?>">
     35                <?php echo '<img src="' . $src[0] . '" alt="'. get_the_title() .'" title="'. get_the_title() .'"  class="showcase-brand" />'; ?>
    2036            </figure>
    21         ';}
    22         ?>
    23             <blockquote class="vc_col-sm-7 vc_span7">
     37        <?php }; ?>
     38           
     39            <blockquote class="<?php echo $class_sc_blockquote;?>">
    2440                <h4 class="showcase-post-title"><?php the_title(); ?></h4>
    2541                <div class="showcase-blog-detail">
     
    3147                    <dl id="showcase-icons">
    3248                        <dt><?php _e('Links:', 'showcase-visual-composer-addon');?></dt>
    33                         <?php if( !empty($vc_showcase_facebook) ) : ?><dd class="sc-icon-link sc-icon-facebook"><?php echo '<a href="'.$vc_showcase_facebook.'" title="'.$vc_showcase_facebook.'" target="_blank">' . $vc_showcase_facebook . '</a>';?></dd><?php endif; ?>
    34                         <?php if( !empty($vc_showcase_google_plus) ) : ?><dd class="sc-icon-link sc-icon-google-plus"><?php echo '<a href="'.$vc_showcase_google_plus.'" title="'.$vc_showcase_google_plus.'" target="_blank">' . $vc_showcase_google_plus . '</a>';?></dd><?php endif; ?>
    35                         <?php if( !empty($vc_showcase_linkedin) ) : ?><dd class="sc-icon-link sc-icon-linkedin"><?php echo '<a href="'.$vc_showcase_linkedin.'" title="'.$vc_showcase_linkedin.'" target="_blank">' . $vc_showcase_linkedin . '</a>';?></dd><?php endif; ?>
     49                        <?php if( !empty($vc_showcase_facebook) ) : ?><dd class="sc-icon-link sc-icon-facebook"><?php echo '<a href="'.$vc_showcase_facebook.'" title="Facebook - '.$vc_showcase_facebook.'" target="_blank">' . $vc_showcase_facebook . '</a>';?></dd><?php endif; ?>
     50                        <?php if( !empty($vc_showcase_google_plus) ) : ?><dd class="sc-icon-link sc-icon-google-plus"><?php echo '<a href="'.$vc_showcase_google_plus.'" title="Google Plus - '.$vc_showcase_google_plus.'" target="_blank">' . $vc_showcase_google_plus . '</a>';?></dd><?php endif; ?>
     51                        <?php if( !empty($vc_showcase_linkedin) ) : ?><dd class="sc-icon-link sc-icon-linkedin"><?php echo '<a href="'.$vc_showcase_linkedin.'" title="LinkedIn - '.$vc_showcase_linkedin.'" target="_blank">' . $vc_showcase_linkedin . '</a>';?></dd><?php endif; ?>
    3652                        <?php if( !empty($vc_showcase_custom_link) ) : ?><dd class="sc-icon-link sc-icon-custom-link"><?php echo '<a href="'.$vc_showcase_custom_link.'" title="'.$vc_showcase_custom_link.'" target="_blank">' . $vc_showcase_custom_link . '</a>';?></dd><?php endif; ?>
    3753                    </dl><?php
Note: See TracChangeset for help on using the changeset viewer.