Plugin Directory

Changeset 2005869


Ignore:
Timestamp:
01/03/2019 06:34:59 PM (7 years ago)
Author:
ryner1
Message:

carousel

Location:
cryptocurrency-shortcodes/trunk/my-admin
Files:
3 edited

Legend:

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

    r2005773 r2005869  
    1616    .rynerg_rgcs_get_sample_shortcode_carousel .rgcs_shortcode_carousel_container > .slick-list > .slick-track{ line-height: 0; }
    1717</style>
    18 <div class="rynerg_rgcs_get_sample_shortcode_carousel <?php echo ( $ctr_coins >= 5 ) ? 'rgcs_move_carousel' : ''; ?>" >
     18<div class="rynerg_rgcs_get_sample_shortcode_carousel <?php echo ( $ctr_coins >= 5 ) ? 'rgcs_move_carousel' : ''; ?>" style="visibility: hidden;">
    1919    <div class="rgcs_shortcode_carousel_container" rgcs_recur_carousel = 1 rgcs_recur_left = 0 style="visibility: hidden;">
    2020        <?php
     
    2929                            $p_24h = number_format(str_replace("-","",$p_change_24h),2,'.','');
    3030                            if( $p_change_24h > 0)
    31                                 {$p_change_24h = '<i class="fa fa-long-arrow-alt-up" style="color:#0073aa;"></i>  %'.$p_24h;}
     31                                {$p_change_24h = '<i class="fas fa-long-arrow-alt-up" style="color:#0073aa;"></i>  %'.$p_24h;}
    3232                            else
    33                                 {$p_change_24h = '<i class="fa fa-long-arrow-alt-down" style="color:#d82222;"></i>  %'.$p_24h;}
     33                                {$p_change_24h = '<i class="fas fa-long-arrow-alt-down" style="color:#d82222;"></i>  %'.$p_24h;}
    3434
    3535
     
    5252    </div>
    5353</div>
    54 <script type="text/javascript">
    5554
    56 var rsg_slick = jQuery.noConflict();
    57 
    58 rsg_slick(document).ready(function() {
    59 
    60 
    61     rsg_slick('.rgcs_shortcode_carousel_container').slick({
    62       dots: false,
    63       infinite: true,
    64       autoplay: true,
    65       autoplaySpeed:0,
    66       speed: 3000,
    67       speed: 9000,
    68       cssEase: 'linear',
    69       slidesToShow: 6,
    70       slidesToScroll: 1,
    71       arrows: false,
    72     }).css('visibility','visible');
    73 
    74 });
    75 
    76 </script>
  • cryptocurrency-shortcodes/trunk/my-admin/admin-return-html-templates/rg-shortcode-template.php

    r2005785 r2005869  
    1717            'title'         => '',
    1818            'bg_color'      => '#222',
    19             'font_color'    => '#fff'
     19            'font_color'    => '#fff',
     20            'c_speed'       => '9000',
     21            'c_data_per_slide'      => '6'
    2022        ),$atts
    2123    );
     
    2426    $max        = $attribs['max'];
    2527    $bg_color   = $attribs['bg_color'];
     28    $font_color = $attribs['font_color'];
     29    $c_speed    = $attribs['c_speed'];
     30    $c_data_per_slide   = $attribs['c_data_per_slide'];
    2631
    2732    if($type == 'list'){
     
    3136        <style>
    3237            .rynerg_rgcs_get_sample_shortcode_carousel, .rgcs_shortcode_carousel_container{ background: <?php echo $bg_color; ?> }
     38            .rgcs_shortcode_carousel_container{ color: <?php echo $font_color; ?> }
    3339        </style>
    3440        <?php
    3541        include('rg-shortcode-template-carousel.php');
    3642    }
     43
     44    ?>
     45        <script type="text/javascript">
     46
     47            var rsg_slick = jQuery.noConflict();
     48
     49            rsg_slick(document).ready(function() {
     50
     51                rsg_slick('.rynerg_rgcs_get_sample_shortcode_carousel').css('visibility','visible');
     52
     53                rsg_slick('.rgcs_shortcode_carousel_container').slick({
     54                  dots: false,
     55                  infinite: true,
     56                  autoplay: true,
     57                  autoplaySpeed:0,
     58                  speed: <?php echo $c_speed; ?>,
     59                  cssEase: 'linear',
     60                  slidesToShow: <?php echo $c_data_per_slide; ?>,
     61                  slidesToScroll: 1,
     62                  arrows: false,
     63                }).css('visibility','visible');
     64
     65            });
     66
     67        </script>
     68    <?php
     69
    3770    return ob_get_clean();
    3871}
  • cryptocurrency-shortcodes/trunk/my-admin/rgcs-template-tab-content-shortcode.php

    r2005787 r2005869  
    2525                        bg_color=#222
    2626                    </td>
    27                     <td><i>bg_color</i> refers to the container's background. The default background color are set to black or #222. Accepted values are color names or hex values. You can refer to <a href="https://htmlcolorcodes.com/" target="_blank">https://htmlcolorcodes.com/</a> for more color options.</td>
     27                    <td><i>bg_color</i> refers to the carousel container's background. The default background color are set to black or #222. Accepted values are color names or hex values. You can refer to <a href="https://htmlcolorcodes.com/" target="_blank">https://htmlcolorcodes.com/</a> for more color options.</td>
    2828                </tr>
    2929                <tr>
     
    4040                </tr>
    4141                <tr>
    42                     <td>custom_class="className1 className2"</td>
    43                     <td>If you want to have additional class for your personal style of the display. Separate different class names with a space.</td>
     42                    <td>c_speed=9000</td>
     43                    <td>Indicates the speed of the carousel. The number represents milliseconds. So 9000 is 9 seconds. Default is 9000 </td>
     44                </tr>
     45                <tr>
     46                    <td>c_data_per_slide=6</td>
     47                    <td>Indicates the number of data to be displayed for the carousel. Default is 6. </td>
    4448                </tr>
    4549            </table>
Note: See TracChangeset for help on using the changeset viewer.