Plugin Directory

Changeset 2005785


Ignore:
Timestamp:
01/03/2019 03:50:21 PM (7 years ago)
Author:
ryner1
Message:

carousel background update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cryptocurrency-shortcodes/trunk/my-admin/admin-return-html-templates/rg-shortcode-template.php

    r1999113 r2005785  
    1313    $attribs = shortcode_atts(
    1414        array(
    15             'type' => 'list',
    16             'max' => '1000',
    17             'title' => '',
    18             'bg' => '',
    19             'font_color' => ''
     15            'type'          => 'list',
     16            'max'           => '1000',
     17            'title'         => '',
     18            'bg_color'      => '#222',
     19            'font_color'    => '#fff'
    2020        ),$atts
    2121    );
    2222
    23     $type = $attribs['type'];
    24     $max = $attribs['max'];
     23    $type       = $attribs['type'];
     24    $max        = $attribs['max'];
     25    $bg_color   = $attribs['bg_color'];
     26
    2527    if($type == 'list'){
    2628        include('rg-shortcode-template-list.php');
    2729    }elseif($type == 'carousel'){
     30        ?>
     31        <style>
     32            .rynerg_rgcs_get_sample_shortcode_carousel, .rgcs_shortcode_carousel_container{ background: <?php echo $bg_color; ?> }
     33        </style>
     34        <?php
    2835        include('rg-shortcode-template-carousel.php');
    2936    }
Note: See TracChangeset for help on using the changeset viewer.