Plugin Directory

Changeset 2176547


Ignore:
Timestamp:
10/20/2019 09:59:38 PM (6 years ago)
Author:
wpeffects
Message:

added new files

Location:
ultimate-hover-effects/trunk
Files:
345 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • ultimate-hover-effects/trunk/readme.txt

    r2153327 r2176547  
    55Requires at least: 3.0.1
    66Tested up to: 5.2
    7 Stable tag: 2.8.2
     7Stable tag: 2.8.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8282== Changelog ==
    8383
     84= 2.8.3 =
     85* Updated plugin
     86
    8487= 2.8.2 =
    8588* Updated plugin
     
    202205== Upgrade Notice ==
    203206
     207= 2.8.3 =
     208* Updated plugin
     209
    204210= 2.8.2 =
    205211* Updated plugin
  • ultimate-hover-effects/trunk/shortcodes/index.php

    r1785083 r2176547  
    1818    $idd = get_the_ID();
    1919
    20     $options = get_post_meta( $idd, 'ultimate_hover_options', true );
    2120   
    22     $extra_class = $options['extra_class'];
     21    $extra_class = get_post_meta( get_the_ID(), 'uhe_extra_class', true );
    2322   
    2423    //typography
    2524    //$heading_font = $options['heading_font'];
    2625    //$desc_font = $options['desc_font'];
    27     $heading_font_size = $options['heading_font_size'];
    28     $heading_color = $options['heading_color'];
     26    $heading_font_size = get_post_meta( get_the_ID(), 'uhe_heading_font_size', true );
     27    $heading_color = get_post_meta( get_the_ID(), 'uhe_heading_color', true );
    2928    //$heading_text_transform = $options['heading_text_transform'];
    3029    //$heading_italic = $options['heading_italic'];
    31     $desc_font_size = $options['desc_font_size'];
     30    $desc_font_size = get_post_meta( get_the_ID(), 'uhe_desc_font_size', true );
    3231    //$desc_color = $options['desc_color'];
    3332    //$desc_text_transform = $options['desc_text_transform'];
     
    3635   
    3736    //image sizes
    38     $custom_image_size = $options['custom_image_size'];
    39     $image_width = $options['image_width'];
     37    $custom_image_size = get_post_meta( get_the_ID(), 'uhe_custom_image_size', true );
     38    $image_width = get_post_meta( get_the_ID(), 'uhe_image_width', true );
    4039    //$image_height = $options['image_height'];
    4140    //$remove_image_gap = $options['remove_image_gap'];
    4241
    4342    //item column
    44     $column_number = $options['column_number'];
     43    $column_number = get_post_meta( get_the_ID(), 'uhe_column_number', true );
    4544    switch ($column_number) {
    4645    case 1:
     
    6665$output ='';
    6766
    68 if( ! empty( $options['option'] ) ) {
    69    
    70     $groups = $options['option'];
     67$options = get_post_meta( get_the_ID(), 'options', true );
    7168
    7269
    7370    $output .='<div class="hover-wrap row">';
    7471
    75     foreach( $groups as $group ){
     72    foreach ( (array) $options as $option ) {
    7673       
    77     $image = $group['image'];
    78     $image = wp_get_attachment_image_src( $image, 'full' );
    79     $effect = $group['effect'];
     74    $image = wp_get_attachment_image( $option['uhe_image_id'], 'share-pick', null, array(
     75            'class' => 'full',
     76        ) );
     77    $effect = $option['uhe_effect'];
    8078       
    8179   
     
    9088
    9189   
    92     $output .= '<img style="width:300px; height:300px" data-src="'.$image[0].'" alt="'.$group['title'].'"/>';
     90    $output .= '<img style="width:300px; height:300px" data-src="'.$image.'" alt="'.$option['title'].'"/>';
    9391 
    9492    $output .= '<figcaption>
    9593            <div class="effect-caption">
    9694                <div class="effect-heading">
    97                     <h2 style="font-size:'.$heading_font_size.'px; color:'.$heading_color.';">'.$group['title'].'</h2>
     95                    <h2 style="font-size:'.$heading_font_size.'px; color:'.$heading_color.';">'.$option['title'].'</h2>
    9896                </div>
    9997
    10098                <div class="effect-description">
    101                     <p style="font-size:'.$desc_font_size.'px;" class="description">'.$group['desc'].'</p>               
     99                    <p style="font-size:'.$desc_font_size.'px;" class="description">'.$option['desc'].'</p>               
    102100                </div>
    103101
     
    114112    }
    115113   
    116     $output .='</div>';//hover wraper close
    117 
    118 }
    119      
     114    $output .='</div>';//hover wraper close 
    120115   
    121116    endwhile;
  • ultimate-hover-effects/trunk/ultimate-hover-effects.php

    r2153327 r2176547  
    77Author URI: http://codenpy.com/
    88Text Domain: uhe
    9 Version: 2.8.2
     9Version: 2.8.3
    1010*/
    1111
     
    1414
    1515
    16 add_filter('widget_text', 'do_shortcode');
     16// add_filter('widget_text', 'do_shortcode');
    1717
    18 function uhe_plugin_init() {
    19     if( ! function_exists( 'cs_framework_init' ) && ! class_exists( 'CSFramework' ) ) {
    2018
    21         // Lood framework
    22         require_once ('admin/framework/cs-framework.php');
     19require_once ('admin/google-fonts.php');
    2320
    24     }else{
     21require_once ('admin/cmb2/init.php');
    2522
    26        //Do not include cs-framework location as it is already initiated somewhere
    27 
    28     }
    29 }
    30 add_action( 'plugins_loaded', 'uhe_plugin_init' );
    31 
     23// Loading Metabox fields
     24require_once ('admin/cmb2/example-functions.php');
    3225
    3326
     
    3629
    3730    // CSS
    38     //wp_enqueue_style('uhe_bootstrap', plugins_url( '/assets/css/bootstrap.min.css' , __FILE__ ) );
     31    wp_enqueue_style('uhe_grid', plugins_url( '/assets/css/grid.css' , __FILE__ ) );
    3932    wp_enqueue_style('uhe_ultimate_hover', plugins_url( '/assets/css/ultimate-hover.css' , __FILE__ ) );
    4033    wp_enqueue_style('uhe_i_hover', plugins_url( '/assets/css/ihover.css' , __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.