Plugin Directory

Changeset 2544234


Ignore:
Timestamp:
06/08/2021 11:04:18 AM (5 years ago)
Author:
marcopappalardo
Message:

Implemented Owl Carousel

Location:
all-in-one-avada-addons
Files:
1718 added
4 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-avada-addons/trunk/all-in-one-avada-addons.php

    r2535358 r2544234  
    44 * Plugin URI: http://www.advisionplus.com
    55 * Description: This is an addons collection for Avada Theme.
    6  * Version: 1.1.6
     6 * Version: 1.1.7
    77 * Author: Marco Pappalardo
    88 * Author URI: http://www.marcopappalardo.it
     
    1010 * Text Domain: avada_addons
    1111 */
     12
     13if ( ! defined( 'ABSPATH' ) ) {
     14    exit; // Exit if accessed directly
     15}
    1216
    1317define('PLUGIN_URL', plugins_url('all-in-one-avada-addons/'));
     
    5660// Include Addon to add Credit.
    5761include_once('builder-elements/credits.php');
     62// Include Addon to add Post Carousel.
     63include_once('builder-elements/post-carousel.php');
    5864
    5965// Include Addon to show Post Type in Archive Pages.
  • all-in-one-avada-addons/trunk/assets/css/admin/all-in-one-style-admin.css

    r2535358 r2544234  
    5555    display: none;
    5656}
     57
     58.dashicons-avada::before {
     59    content: "\e936";
     60    font-size: 16px;
     61    font-family: "icomoon";
     62    font-style: normal;
     63    font-weight: normal;
     64    font-variant: normal;
     65    text-transform: none;
     66    line-height: 1;
     67}
  • all-in-one-avada-addons/trunk/inc/aio-redux-core/config/config.php

    r2535358 r2544234  
    8484
    8585    // Specify a custom URL to an icon.
    86     'menu_icon'                 => 'dashicons-hammer',
     86    'menu_icon'                 => 'dashicons-avada',
    8787
    8888    // Force your panel to always open to a specific tab (by id).
     
    264264
    265265$section = array(
     266    'title'  => esc_html__( 'Aio Breakpoints', 'avada_addons' ),
     267    'id'     => 'aio-breackpoints',
     268    'icon'   => 'el el-upload',
     269    'fields' => array(
     270        array(
     271            'id'            =>  'aio-medium-brackpoint',
     272            'type'          =>  'slider',
     273            'min'           =>  0,
     274            'max'           =>  2048,
     275            'step'          =>  1,
     276            'handles'       =>  1,
     277            'resolution'    =>  1,
     278            'title'         =>  esc_html__( 'Medium Size Breakpoint', 'avada_addons' ),
     279            'subtitle'      =>  esc_html__( 'Controls when the Medium screen options and visibility should take effect for the "Aio" elements. In pixels.', 'avada_addons' ),
     280            'default'       =>  1200,
     281        ),
     282        array(
     283            'id'            =>  'aio-small-brackpoint',
     284            'type'          =>  'slider',
     285            'min'           =>  0,
     286            'max'           =>  2048,
     287            'step'          =>  1,
     288            'handles'       =>  1,
     289            'resolution'    =>  1,
     290            'title'         =>  esc_html__( 'Small Size Breakpoint', 'avada_addons' ),
     291            'subtitle'      =>  esc_html__( 'Controls when the small screen options and visibility should take effect for the "Aio" elements. In pixels.', 'avada_addons' ),
     292            'default'       =>  640,
     293        ),
     294    ),
     295);
     296
     297Redux::set_section( $opt_name, $section );
     298
     299$section = array(
    266300    'title'  => esc_html__( 'Uploads', 'avada_addons' ),
    267301    'id'     => 'aio-uploads',
  • all-in-one-avada-addons/trunk/template/addons-post-carousel.php

    r2503989 r2544234  
    11<?php
    2 if (!function_exists('avada_addons_carousel_post_func')){
    3     function avada_addons_carousel_post_func($atts){
    4         $atts = shortcode_atts (
    5             array(
    6                 'post_type' => '',
    7                 'posts_per_page' => '-1',
    8                 'exclude' => '', //(array) An array of post IDs not to retrieve. Default empty array.
    9                 'order' => '', //(string) Designates ascending or descending order of posts. Default 'DESC'. Accepts 'ASC', 'DESC'.
    10                 'orderby' => '', //Accepts 'none', 'name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'relevance', 'RAND(x)' (where 'x' is an integer seed value), 'comment_count', 'meta_value', 'meta_value_num', 'post__in', 'post_name__in', 'post_parent__in', and the array keys of $meta_query. Default is 'date', except when a search is being performed, when the default is 'relevance'.
    11                 'picture_size'=>'auto',
    12                 'hover_type'=>'none',
    13                 'autoplay'=>'no',
    14                 'columns'=>'4',
    15                 'column_spacing'=>'13',
    16                 'scroll_items'=>'',
    17                 'show_nav'=>'yes',
    18                 'mouse_scroll'=>'no',
    19                 'border'=>'no',
    20                 'lightbox'=>'no',
    21                 'hide_on_mobile'=>'small-visibility,medium-visibility,large-visibility',
    22                 'class'=>'',
    23                 'id'=>'',
    24                 'show_link_button'=>'yes',
    25                 'show_content'=>'yes',
    26                 'show_title'=>'yes',
    27                 'show_image'=>'yes',
    28                 'show_link'=>'yes',
    29                 'filtering_by_taxonomy'=>'',
    30                 'taxonomy' => '',
    31                 'field'    => 'slug',
    32                 'terms'    => array(''),
    33                 'excerpt' => '100',
    34                 'title_color' => '',
    35                 'excerpt_symbol' => '',
    36                 'content_color' => '',
    37             ), $atts, 'carousel_post_type'
    38         );
    39 
    40         if($atts['filtering_by_taxonomy']=='yes'){
    41             $args = array(
    42                 'post_type' => $atts['post_type'],
    43                 'posts_per_page' => $atts['posts_per_page'],
    44                 'exclude' => $atts['exclude'],
    45                 'order' => $atts['order'],
    46                 'orderby' => $atts['orderby'],
    47                 'tax_query' => array($atts)
    48             );
    49             $all_news = get_posts($args);
    50         }
    51 
    52 
    53         if($atts['filtering_by_taxonomy']=='no'){
    54             $args_no_cat = array(
    55                 'post_type' => $atts['post_type'],
    56                 'posts_per_page' => $atts['posts_per_page'],
    57                 'exclude' => $atts['exclude'],
    58                 'order' => $atts['order'],
    59                 'orderby' => $atts['orderby']
    60             );
    61             $all_news = get_posts($args_no_cat);
    62         }
    63 
    64         $carousel_output .= '[fusion_images picture_size="'.$atts['picture_size'].'" hover_type="'.$atts['hover_type'].'" autoplay="'.$atts['autoplay'].'" columns="'.$atts['columns'].'" column_spacing="'.$atts['column_spacing'].'" scroll_items="'.$atts['scroll_items'].'" show_nav="'.$atts['show_nav'].'" mouse_scroll="'.$atts['mouse_scroll'].'" border="'.$atts['border'].'" lightbox="'.$atts['lightbox'].'" hide_on_mobile="'.$atts['hide_on_mobile'].'" class="'.$atts['class'].'" id="'.$atts['id'].'"]';
    65 
    66 
    67         foreach($all_news as $single_news){
    68             $image_preview = get_the_post_thumbnail($single_news->ID);
    69             $link = get_permalink($single_news->ID);
    70             $title = get_the_title($single_news->ID);
    71 
    72             $carousel_output .= '<li class="fusion-carousel-item">';
    73                 $carousel_output .= '<div class="fusion-carousel-item-wrapper">';
    74 
    75                     if($atts['show_image']=='yes'){
    76                         if($atts['show_link']=='yes'){
    77                     $carousel_output .= '<a href="'.$link.'">';
    78                         }
    79                     $carousel_output .= '<div class="fusion-image-wrapper hover-type-none">';
    80                         $carousel_output .= $image_preview;
    81                     $carousel_output .= '</div>';
    82                     $carousel_output .= '</a>';
    83                     }
    84 
    85                     $carousel_output .= '<div class="single-news-content-carousel">';
    86 
    87                     if($atts['show_title']=='yes'){
    88                     $carousel_output .= '<div class="single-news-titolo">';
    89                         if($atts['show_link']=='yes'){
    90                             $carousel_output .= '<a href="'.$link.'" style="color:'.$atts['title_color'].';">';
    91                         }
    92                         $carousel_output .= $title;
    93                             if($atts['show_link']=='yes'){
    94                         $carousel_output .= '</a>';
    95                         }
    96                                 $carousel_output .= '</div>';
    97                         }
    98 
    99                     if($atts['show_content']=='yes'){
    100                     $carousel_output .= '<div class="single-news-excerpt" style="color:'.$atts['content_color'].'"><p style="color:'.$atts['content_color'].'">'.substr($single_news->post_content, 0, $atts['excerpt']);
    101                         if ($atts['excerpt_symbol']=='yes'){
    102                             $carousel_output .= '[...]';
    103                         }
    104                         $carousel_output .= '</></div>';
    105                         }
    106 
    107                     if($atts['show_link_button']=='yes'){
    108                         $carousel_output .= '<a class="button-single-news-carousel" href="'.$link.'">'.__("Leggi", "avada_addons").'</a>';
    109                         }
    110 
    111                     $carousel_output .= '</div>';
    112                     $carousel_output .= '</div>';
    113             $carousel_output .= '</li>';
    114 
    115 
    116         }
    117 
    118         $carousel_output .= '[/fusion_images]';
    119 
    120         return do_shortcode($carousel_output);
    121 
    122     }
    123     add_shortcode('carousel_post_type', 'avada_addons_carousel_post_func');
    124 }
    125 
    126 
    127 
    128 //----------------------------------------------------------------------------->>>START FUSION BUILDER INTEGRATION
    129 if (!function_exists('avada_addons_add_post_carousel_element')){
    130     function avada_addons_add_post_carousel_element() {
    131     fusion_builder_map(     
    132                 fusion_builder_frontend_data(
    133                 'FusionPostCarousel',
    134                 [
    135                     'name'              => esc_attr__('Post Carousel AIO', 'avada_addons'),
    136                     'shortcode'         => 'carousel_post_type',
    137                     'icon'              => 'fusiona-tag',
    138                     'help_url'          => 'https://theme-fusion.com/documentation/avada_addons/elements/button-element/',
    139                     'inline_editor'     => true,
    140                     'params'            => [
    141                         [
    142                             'type'        => 'textfield',
    143                             'heading'     => esc_attr__( 'Post Type Name', 'avada_addons' ),
    144                             'description' => esc_attr__( 'Enter the name of the post type you want to view. Default is Post.', 'avada_addons' ),
    145                             'param_name'  => 'post_type',
    146                             'value'       => 'post',
    147                         ],
    148                         [
    149                             'type'        => 'radio_button_set',
    150                             'heading'     => esc_attr__( 'Filter by Taxonomy e Term', 'avada_addons' ),
    151                             'description' => esc_attr__( 'Choose no if you want to get all posts', 'avada_addons' ),
    152                             'param_name'  => 'filtering_by_taxonomy',
    153                             'value'       => [
    154                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    155                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    156                             ],
    157                             'default'     => 'no',
    158                         ],
    159                         [
    160                             'type'        => 'textfield',
    161                             'heading'     => esc_attr__( 'Taxonomy', 'avada_addons' ),
    162                             'description' => esc_attr__( 'Write taxonomy slug to filter', 'avada_addons' ),
    163                             'param_name'  => 'taxonomy',
    164                             'value'       => '',
    165                             'dependency'  => [
    166                                 [
    167                                     'element'  => 'filtering_by_taxonomy',
    168                                     'value'    => 'yes',
    169                                     'operator' => '==',
    170                                 ],
    171                             ],
    172                         ],
    173                         [
    174                             'type'        => 'textfield',
    175                             'heading'     => esc_attr__( 'Terms', 'avada_addons' ),
    176                             'description' => esc_attr__( 'Filter list of terms to show.', 'avada_addons' ),
    177                             'param_name'  => 'terms',
    178                             'value'       => '',
    179                             'dependency'  => [
    180                                 [
    181                                     'element'  => 'filtering_by_taxonomy',
    182                                     'value'    => 'yes',
    183                                     'operator' => '==',
    184                                 ],
    185                             ],
    186                         ],
    187                         [
    188                             'type'        => 'range',
    189                             'heading'     => esc_attr__( 'Post per Page', 'avada_addons' ),
    190                             'description' => esc_attr__( 'Select the number of posts to show in the carousel.', 'avada_addons' ),
    191                             'param_name'  => 'posts_per_page',
    192                             'value'       => '-1',
    193                             'min'         => '-1',
    194                             'max'         => '300',
    195                             'step'        => '1',
    196                         ],
    197                         [
    198                             'type'        => 'textfield',
    199                             'heading'     => esc_attr__( 'Exclude Categories Slug', 'avada_addons' ),
    200                             'description' => esc_attr__( 'Filter categories to exclude by Comma-separated slug or leave blank for show all.', 'avada_addons' ),
    201                             'param_name'  => 'exclude',
    202                             'value'       => '',
    203                         ],
    204                         [
    205                             'type'        => 'radio_button_set',
    206                             'heading'     => esc_attr__( 'Order', 'avada_addons' ),
    207                             'description' => esc_attr__( 'Defines the sorting order of posts.', 'avada_addons' ),
    208                             'param_name'  => 'order',
    209                             'default'     => 'DESC',
    210                             'value'       => [
    211                                 'DESC' => esc_attr__( 'Descending', 'avada_addons' ),
    212                                 'ASC'  => esc_attr__( 'Ascending', 'avada_addons' ),
    213                             ],
    214                             'dependency'  => [
    215                                 [
    216                                     'element'  => 'orderby',
    217                                     'value'    => 'rand',
    218                                     'operator' => '!=',
    219                                 ],
    220                             ],
    221                             'callback'    => [
    222                                 'function' => 'fusion_ajax',
    223                                 'action'   => 'get_fusion_blog',
    224                                 'ajax'     => true,
    225                             ],
    226                         ],
    227                         [
    228                             'type'        => 'select',
    229                             'heading'     => esc_attr__( 'Order By', 'avada_addons' ),
    230                             'description' => esc_attr__( 'Defines how posts should be ordered.', 'avada_addons' ),
    231                             'param_name'  => 'orderby',
    232                             'default'     => 'date',
    233                             'value'       => [
    234                                 'date'          => esc_attr__( 'Date', 'avada_addons' ),
    235                                 'title'         => esc_attr__( 'Post Title', 'avada_addons' ),
    236                                 'name'          => esc_attr__( 'Post Slug', 'avada_addons' ),
    237                                 'author'        => esc_attr__( 'Author', 'avada_addons' ),
    238                                 'comment_count' => esc_attr__( 'Number of Comments', 'avada_addons' ),
    239                                 'modified'      => esc_attr__( 'Last Modified', 'avada_addons' ),
    240                                 'rand'          => esc_attr__( 'Random', 'avada_addons' ),
    241                             ],
    242                             'callback'    => [
    243                                 'function' => 'fusion_ajax',
    244                                 'action'   => 'get_fusion_blog',
    245                                 'ajax'     => true,
    246                             ],
    247                         ],
    248                         [
    249                             'type'        => 'radio_button_set',
    250                             'heading'     => esc_attr__( 'Picture Size', 'avada_addons' ),
    251                             'description' => __( 'fixed = width and height will be fixed<br>auto = width and height will adjust to the image.', 'avada_addons' ),
    252                             'param_name'  => 'picture_size',
    253                             'value'       => [
    254                                 'auto'     => esc_attr__( 'Auto', 'avada_addons' ),
    255                                 'fixed' => esc_attr__( 'Fixed', 'avada_addons' ),
    256                             ],         
    257                             'default'     => 'auto',
    258                         ],
    259                         [
    260                             'type'        => 'select',
    261                             'heading'     => esc_attr__( 'Hover Type', 'avada_addons' ),
    262                             'description' => esc_attr__( 'Select the hover effect type.', 'avada_addons' ),
    263                             'param_name'  => 'hover_type',
    264                             'value'       => [
    265                                 'none'    => esc_attr__( 'None', 'avada_addons' ),
    266                                 'zoomin'  => esc_attr__( 'Zoom In', 'avada_addons' ),
    267                                 'zoomout' => esc_attr__( 'Zoom Out', 'avada_addons' ),
    268                                 'liftup'  => esc_attr__( 'Lift Up', 'avada_addons' ),
    269                             ],
    270                             'default'     => 'none',
    271                             'preview'     => [
    272                                 'selector' => '.fusion-image-wrapper',
    273                                 'type'     => 'class',
    274                                 'toggle'   => 'hover',
    275                             ],
    276                         ],
    277                         [
    278                             'type'        => 'radio_button_set',
    279                             'heading'     => esc_attr__( 'Autoplay', 'avada_addons' ),
    280                             'description' => esc_attr__( 'Choose to autoplay the carousel.', 'avada_addons' ),
    281                             'param_name'  => 'autoplay',
    282                             'value'       => [
    283                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    284                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    285                             ],
    286                             'default'     => 'no',
    287                         ],
    288                         [
    289                             'type'        => 'range',
    290                             'heading'     => esc_attr__( 'Maximum Columns', 'avada_addons' ),
    291                             'description' => esc_attr__( 'Select the number of max columns to display.', 'avada_addons' ),
    292                             'param_name'  => 'columns',
    293                             'value'       => '5',
    294                             'min'         => '1',
    295                             'max'         => '6',
    296                             'step'        => '1',
    297                         ],
    298                         [
    299                             'type'        => 'range',
    300                             'heading'     => esc_attr__( 'Column Spacing', 'avada_addons' ),
    301                             'description' => esc_attr__( 'Insert the amount of spacing between items without "px". ex: 13.', 'avada_addons' ),
    302                             'param_name'  => 'column_spacing',
    303                             'value'       => '13',
    304                             'min'         => '0',
    305                             'max'         => '300',
    306                             'step'        => '1',
    307                         ],
    308                         [
    309                             'type'        => 'textfield',
    310                             'heading'     => esc_attr__( 'Scroll Items', 'avada_addons' ),
    311                             'description' => esc_attr__( 'Insert the amount of items to scroll. Leave empty to scroll number of visible items.', 'avada_addons' ),
    312                             'param_name'  => 'scroll_items',
    313                             'value'       => '',
    314                         ],
    315                         [
    316                             'type'        => 'radio_button_set',
    317                             'heading'     => esc_attr__( 'Show Navigation', 'avada_addons' ),
    318                             'description' => esc_attr__( 'Choose to show navigation buttons on the carousel.', 'avada_addons' ),
    319                             'param_name'  => 'show_nav',
    320                             'value'       => [
    321                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    322                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    323                             ],
    324                             'default'     => 'yes',
    325                         ],
    326                         [
    327                             'type'        => 'radio_button_set',
    328                             'heading'     => esc_attr__( 'Mouse Scroll', 'avada_addons' ),
    329                             'description' => esc_attr__( 'Choose to enable mouse drag control on the carousel. IMPORTANT: For easy draggability, when mouse scroll is activated, links will be disabled.', 'avada_addons' ),
    330                             'param_name'  => 'mouse_scroll',
    331                             'value'       => [
    332                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    333                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    334                             ],
    335                             'default'     => 'no',
    336                         ],
    337                         [
    338                             'type'        => 'radio_button_set',
    339                             'heading'     => esc_attr__( 'Border', 'avada_addons' ),
    340                             'description' => esc_attr__( 'Choose to enable a border around the images.', 'avada_addons' ),
    341                             'param_name'  => 'border',
    342                             'value'       => [
    343                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    344                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    345                             ],
    346                             'default'     => 'yes',
    347                             'group'       => esc_attr__( 'Design', 'avada_addons' ),
    348                         ],
    349                         [
    350                             'type'        => 'radio_button_set',
    351                             'heading'     => esc_attr__( 'Image lightbox', 'avada_addons' ),
    352                             'description' => esc_attr__( 'Show image in lightbox. Lightbox must be enabled in Global Options or the image will open up in the same tab by itself.', 'avada_addons' ),
    353                             'param_name'  => 'lightbox',
    354                             'value'       => [
    355                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    356                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    357                             ],
    358                             'default'     => 'no',
    359                         ],
    360                         [
    361                             'type'        => 'checkbox_button_set',
    362                             'heading'     => esc_attr__( 'Element Visibility', 'avada_addons' ),
    363                             'param_name'  => 'hide_on_mobile',
    364                             'value'       => fusion_builder_visibility_options( 'full' ),
    365                             'default'     => fusion_builder_default_visibility( 'array' ),
    366                             'description' => __( 'Choose to show or hide the element on small, medium or large screens. You can choose more than one at a time.', 'avada_addons' ),
    367                         ],
    368                         [
    369                             'type'        => 'textfield',
    370                             'heading'     => esc_attr__( 'CSS Class', 'avada_addons' ),
    371                             'description' => esc_attr__( 'Add a class to the wrapping HTML element.', 'avada_addons' ),
    372                             'param_name'  => 'class',
    373                             'value'       => '',
    374                             'group'       => esc_attr__( 'General', 'avada_addons' ),
    375                         ],
    376                         [
    377                             'type'        => 'textfield',
    378                             'heading'     => esc_attr__( 'CSS ID', 'avada_addons' ),
    379                             'description' => esc_attr__( 'Add an ID to the wrapping HTML element.', 'avada_addons' ),
    380                             'param_name'  => 'id',
    381                             'value'       => '',
    382                             'group'       => esc_attr__( 'General', 'avada_addons' ),
    383                         ],
    384                         [
    385                             'type'        => 'radio_button_set',
    386                             'heading'     => esc_attr__( 'Show Button', 'avada_addons' ),
    387                             'description' => esc_attr__( 'Choose to show the button.', 'avada_addons' ),
    388                             'param_name'  => 'show_link_button',
    389                             'value'       => [
    390                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    391                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    392                             ],
    393                             'default'     => 'yes',
    394                         ],
    395                         [
    396                             'type'        => 'radio_button_set',
    397                             'heading'     => esc_attr__( 'Show Title', 'avada_addons' ),
    398                             'description' => esc_attr__( 'Choose to show the title.', 'avada_addons' ),
    399                             'param_name'  => 'show_title',
    400                             'value'       => [
    401                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    402                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    403                             ],
    404                             'default'     => 'yes',
    405                         ],
    406                         [
    407                             'type'        => 'colorpicker',
    408                             'heading'     => esc_attr__( 'Title Color', 'avada_addons' ),
    409                             'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ),
    410                             'param_name'  => 'title_color',
    411                             'value'       => '',
    412                             'group'       => esc_attr__( 'Design', 'avada_addons' ),
    413                         ],
    414                         [
    415                             'type'        => 'radio_button_set',
    416                             'heading'     => esc_attr__( 'Show Content', 'avada_addons' ),
    417                             'description' => esc_attr__( 'Choose to show the content.', 'avada_addons' ),
    418                             'param_name'  => 'show_content',
    419                             'value'       => [
    420                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    421                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    422                             ],
    423                             'default'     => 'yes',
    424                         ],
    425                         [
    426                             'type'        => 'colorpicker',
    427                             'heading'     => esc_attr__( 'Content Color', 'avada_addons' ),
    428                             'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ),
    429                             'param_name'  => 'content_color',
    430                             'value'       => '',
    431                             'group'       => esc_attr__( 'Design', 'avada_addons' ),
    432                         ],
    433                         [
    434                             'type'        => 'range',
    435                             'heading'     => esc_attr__( 'Excerpt Length', 'avada_addons' ),
    436                             'description' => esc_attr__( 'Insert the Excerpt Length', 'avada_addons' ),
    437                             'param_name'  => 'excerpt',
    438                             'value'       => '100',
    439                             'min'         => '0',
    440                             'max'         => '3000',
    441                             'step'        => '1',
    442                         ],
    443                         [
    444                             'type'        => 'radio_button_set',
    445                             'heading'     => esc_attr__( 'Show Continue Symbol', 'avada_addons' ),
    446                             'description' => esc_attr__( 'Choose if you want to show the continue symbol [...]', 'avada_addons' ),
    447                             'param_name'  => 'excerpt_symbol',
    448                             'value'       => [
    449                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    450                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    451                             ],
    452                             'default'     => 'yes',
    453                         ],
    454                         [
    455                             'type'        => 'radio_button_set',
    456                             'heading'     => esc_attr__( 'Show Image preview', 'avada_addons' ),
    457                             'description' => esc_attr__( 'Choose to show the image preview.', 'avada_addons' ),
    458                             'param_name'  => 'show_image',
    459                             'value'       => [
    460                                 'yes' => esc_attr__( 'Yes', 'avada_addons' ),
    461                                 'no'  => esc_attr__( 'No', 'avada_addons' ),
    462                             ],
    463                             'default'     => 'yes',
    464                         ],
    465                     ],
    466                 ]
    467     ));
    468     }
    469     add_action( 'fusion_builder_before_init', 'avada_addons_add_post_carousel_element' );
    470 }
Note: See TracChangeset for help on using the changeset viewer.