Your IP : 216.73.216.172


Current Path : /proc/thread-self/root/proc/thread-self/root/proc/1908984/root/tmp/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/proc/1908984/root/tmp/php0WdCZo

/* Tick style override */

.tick-default {
  font-size: 2.5em;
} 
.tick-small {
  font-size: 1em;
} 
.tick-medium {
  font-size: 1.5em;
} 
.tick-large {
  font-size: 3.5em;
} 
.tick .tick-text {
    font-size: 1rem;
    margin-bottom: 10px;
}
.tick .tick-group:last-child {
    margin-right: 0;
}
.tick-light .tick-flip-panel {
    color:#34383b !important;
    background:#e8ecf0 !important;
}
.su-countdown.su-layout-horizontal .tick .tick-group {
    margin: 0 .5em 0 0;
}
.su-countdown.su-text-light .su_prefix-text,
.su-countdown.su-text-light .su_suffix-text,
.su-countdown.su-text-light .tick-text {
  color: #ffffff;
}
.su-countdown.su-align-left {
  text-align: left;
}
.su-countdown.su-align-right {
  text-align: right;
}
.su-countdown.su-align-center {
  text-align: center;
}
.su-countdown .su_suffix-text {
  margin-top: 20px;
}<html><body></body></html><?php 

/**
* @package   Shortcode Ultimate
* @author    BdThemes http://www.bdthemes.com
* @copyright Copyright (C) BdThemes Ltd
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

defined( '_JEXEC' ) or die( 'Restricted access' );

class Su_Shortcode_flip_countdown_config extends Su_Data {

    function __construct() {
        parent::__construct();
    }
    static function get_config() {
      // flip_countdown
        return array(
            'name'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FLIP_COUNTDOWN'),
            'desc'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FLIP_COUNTDOWN_DESC'),
            'type'  => 'single',
            'group' => 'box',
            'badge' => 'BETA',
            'icon'  => 'sort-numeric-desc',
            'atts'  => array(
                'datetime' => array(
                    'default' => '2020-05-01T00:00:00',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DATETIME'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DATETIME_DESC'),
                ),
                'count_size' => array(
                    'type'    => 'select',
                    'default' => 'default',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_COUNT_SIZE'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_COUNT_SIZE_DESC'),
                    'values'  => array(
                        'default' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DEFAULT'),
                        'small'   => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SMALL'),
                        'medium'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_MEDIUM'),
                        'large'   => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LARGE'),
                    ),
                    'child'   => array(
                        'count_color' => array(
                            'type'    => 'select',
                            'default' => 'dark',
                            'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_COUNT_COLOR'),
                            'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_COUNT_COLOR_DESC'),
                            'values'  => array(
                                'dark'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DARK'),
                                'light' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHT'),
                            ),
                        ),
                        'text' => array(
                            'type'    => 'select',
                            'default' => 'dark',
                            'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_TEXT'),
                            'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_TEXT_DESC'),
                            'values'  => array(
                                'dark'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DARK'),
                                'light' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHT'),
                            ),
                        ),
                    )
                ),
                'time_name' => array(
                    'type'    => 'bool',
                    'default' => 'yes',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_TIME_NAME'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_TIME_NAME_DESC'),
                ),
                'prefix' => array(
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PREFIX'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PREFIX_DESC'),
                    'child'   => array(
                        'suffix' => array(
                            'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SUFFIX'),
                            'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SUFFIX_DESC')
                        )
                    )
                ),
                'layout' => array(
                    'type'    => 'select',
                    'default' => 'horizontal',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_LAYOUT'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_LAYOUT_DESC'),
                    'values'  => array(
                        'vertical'   => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FCD_VERTICAL'),
                        'horizontal' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_HORIZONTAL'),
                    ),
                ),
                'align' => array(
                    'type'    => 'select',
                    'default' => 'left',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ALIGN'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ALIGN_DESC'),
                    'values'  => array(
                        'left'   => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LEFT'),
                        'right'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_RIGHT'),
                        'center' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CENTER'),
                    ),
                ),
                'scroll_reveal' => array(
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL_DESC')
                ),
                'class' => array(
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS_DESC')
                )
            )
        );
    }

}
<html><body></body></html><?php 
/**
* @package   Shortcode Ultimate
* @author    BdThemes http://www.bdthemes.com
* @copyright Copyright (C) BdThemes Ltd
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
defined( '_JEXEC' ) or die( 'Restricted access' );

class Su_Shortcode_flip_countdown extends Su_Shortcodes {

    function __construct() {
        parent::__construct();
    }

    public static function flip_countdown($atts = null, $content = null) {
        $atts = su_shortcode_atts(array(
            'datetime'      => '2020-03-27T00:00:00', // example: 2020-05-01T00:00:00
            'count_size'    => 'default',  // default, medium, small, large
            'count_color'   => 'dark',  // dark, light
            'text'          => 'dark', // dark, light
            'time_name'     => 'yes',  // yes, no
            'prefix'        => '',
            'suffix'        => '',
            'layout'        => 'horizontal', // horizontal, vertical
            'align'         => 'left', // left, right, center
            'scroll_reveal' => '',
            'class'         => ''
        ), $atts, 'flip_countdown');

        $id = uniqid('sufcd_');
        $output       = [];
        $tick_class   = ['tick'];
        $classes      = array('su-countdown');
        $classes[]      = ($atts['align']!='') ? 'su-align-'.$atts['align'] : '';
        $classes[]      = ($atts['text']!='') ? 'su-text-'.$atts['text'] : '';
        $classes[]      = ($atts['layout']!='') ? 'su-layout-'.$atts['layout'] : '';
        
        $tick_class[] = ($atts['count_size']) ? 'tick-'.$atts['count_size'] : 'tick-default';
        $tick_class[] = ($atts['count_color']) ? 'tick-'.$atts['count_color'] : '';

        $settings ='
            <script>
                "use strict";
                function '.$id.'Init(tick) {
                    var nextYear = "'.$atts['datetime'].'";
                    var counter = Tick.count.down(nextYear);
                    counter.onupdate = function(value) {
                        tick.value = value;
                    };
                }
            </script>
        ';

        $output[] = '<div class="'.su_acssc($classes).'">';
            $output[] = '<div class="">';

                if($atts['datetime']!='') {
                    if ($atts['prefix'] != '') {
                        $output[] ='<div><h3 class="su_prefix-text">'.$atts['prefix'].'</h3></div>';
                    }

                    $output[] ='<div class="'.su_acssc($tick_class).'" data-did-init="'.$id.'Init">';
                        $output[] ='<div data-layout="'.$atts['layout'].' '.$atts['align'].'" data-repeat="true"
                                        data-transform="rotate( 
                                            transform( plural(day, days), input() ), 
                                            transform( plural(hour, hours), input() ),
                                            transform( plural(minute, minutes), input() ),
                                            transform( plural(second, seconds), input() )
                                         ) -> map( keys( label, value ) )">';

                            $output[] ='<div class="tick-group">';
                                $output[] = ($atts['time_name'] == 'yes') ? '<div data-key="label" data-view="text"></div>' : '';

                                $output[] ='<div data-key="value" data-repeat="true" data-transform="pad(00) -> split -> delay">
                                    <span data-view="flip"></span>';
                                $output[] ='</div>';
                            $output[] ='</div>';
                        $output[] ='</div>';
                    $output[] ='</div>';

                    if ($atts['suffix'] != '') {
                        $output[] ='<div><h3 class="su_suffix-text">'.$atts['suffix'].'</h3></div>';
                    }

                    $output[] = $settings;
                    
                }
                else {
                    $output[] = '<strong>You did not enter any date of custom date.</strong>';
                }
            $output[] ='</div>';
        $output[] ='</div>';

        suAsset::addFile('css', 'tick.css');
        suAsset::addFile('css', 'flip-countdown.css', __FUNCTION__);
        suAsset::addFile('js', 'tick.js');

        return implode("\n", $output);
    }
}