Example #1
0
 function ci_theme_thick_border_class($classes)
 {
     if (ci_setting('thick_border') != '') {
         $classes[] = ci_setting('thick_border');
     }
     return $classes;
 }
 function ci_the_post_thumbnail_full($args = array())
 {
     $args = wp_parse_args((array) $args, array('class' => '', 'noalign' => false));
     $attr = array();
     if (ci_setting('featured_full_use_full') == 'full') {
         $attr['class'] = $args['class'];
         //			if($args['noalign'] === false)
         //			{
         //				$attr['class'] .= ' '.ci_setting('featured_single_align').' ';
         //			}
         if (empty($attr['class'])) {
             unset($attr['class']);
         }
         the_post_thumbnail('ci_featured_full', $attr);
     }
     if (ci_setting('featured_full_use_full') == 'single') {
         $attr['class'] = $args['class'];
         if ($args['noalign'] === false) {
             $attr['class'] .= ' ' . ci_setting('featured_single_align') . ' ';
         }
         if (empty($attr['class'])) {
             unset($attr['class']);
         }
         the_post_thumbnail('ci_featured_single', $attr);
     }
     if (ci_setting('featured_full_use_full') == 'disabled') {
         // Do nothing
     }
 }
 function ci_output_google_analytics_code()
 {
     // Load Google Analytics code, if available.
     if (ci_setting('google_analytics_code')) {
         echo html_entity_decode(ci_setting('google_analytics_code'));
     }
 }
 function ci_theme_wc_loop_shop_per_page_view($posts_per_page)
 {
     if (empty($_GET['view'])) {
         return $posts_per_page;
     }
     $values = array($posts_per_page);
     if ('all' === $_GET['view']) {
         $view = -1;
     } else {
         $view = intval($_GET['view']);
     }
     if (ci_setting('eshop_products_view_first') != '') {
         $values[] = ci_setting('eshop_products_view_first');
     }
     if (ci_setting('eshop_products_view_second') != '') {
         $values[] = ci_setting('eshop_products_view_second');
     }
     if (ci_setting('eshop_products_view_all') == 'enabled') {
         $values[] = -1;
     }
     if (in_array($view, $values)) {
         return $view;
     }
     return $posts_per_page;
 }
Example #5
0
        function ci_touch_favicon()
        {
            if (ci_setting('touch_favicon')) {
                ?>
<link rel="apple-touch-icon<?php 
                echo ci_setting('touch_favicon_pre') == 'enabled' ? '-precomposed' : '';
                ?>
" href="<?php 
                echo esc_attr(ci_setting('touch_favicon'));
                ?>
" /><?php 
            }
            if (ci_setting('touch_favicon_72')) {
                ?>
<link rel="apple-touch-icon<?php 
                echo ci_setting('touch_favicon_72_pre') == 'enabled' ? '-precomposed' : '';
                ?>
" sizes="72x72" href="<?php 
                echo esc_attr(ci_setting('touch_favicon_72'));
                ?>
" /><?php 
            }
            if (ci_setting('touch_favicon_114')) {
                ?>
<link rel="apple-touch-icon<?php 
                echo ci_setting('touch_favicon_114_pre') == 'enabled' ? '-precomposed' : '';
                ?>
" sizes="114x114" href="<?php 
                echo esc_attr(ci_setting('touch_favicon_72'));
                ?>
" /><?php 
            }
        }
        function ci_custom_background()
        {
            if (ci_setting('bg_custom_disabled') != 'enabled' or ci_setting('bg_h_custom_disabled') != 'enabled' and get_ci_theme_support('custom_header_background') or ci_setting('bg_f_custom_disabled') != 'enabled' and get_ci_theme_support('custom_footer_background')) {
                ?>
				<style type="text/css">
					<?php 
                if (ci_setting('bg_h_custom_disabled') != 'enabled' and get_ci_theme_support('custom_header_background')) {
                    $custom_bg_h = array('bg_h_color' => apply_filters('ci_background_color_value', ci_setting('bg_h_color')), 'bg_h_image' => ci_setting('bg_h_image'), 'bg_h_image_horizontal' => ci_setting('bg_h_image_horizontal'), 'bg_h_image_vertical' => ci_setting('bg_h_image_vertical'), 'bg_h_image_attachment' => ci_setting('bg_h_image_attachment'), 'bg_h_image_repeat' => ci_setting('bg_h_image_repeat'), 'bg_h_image_disable' => ci_setting('bg_h_image_disable'), 'bg_h_image_size' => ci_setting('bg_h_image_size') != 'custom' ? ci_setting('bg_h_image_size') : ci_setting('bg_h_image_size_value'));
                    do_action('ci_custom_header_background', apply_filters('ci_custom_header_background_options', $custom_bg_h));
                }
                if (ci_setting('bg_custom_disabled') != 'enabled') {
                    $custom_bg = array('bg_color' => apply_filters('ci_background_color_value', ci_setting('bg_color')), 'bg_image' => ci_setting('bg_image'), 'bg_image_horizontal' => ci_setting('bg_image_horizontal'), 'bg_image_vertical' => ci_setting('bg_image_vertical'), 'bg_image_attachment' => ci_setting('bg_image_attachment'), 'bg_image_repeat' => ci_setting('bg_image_repeat'), 'bg_image_disable' => ci_setting('bg_image_disable'), 'bg_image_size' => ci_setting('bg_image_size') != 'custom' ? ci_setting('bg_image_size') : ci_setting('bg_image_size_value'));
                    do_action('ci_custom_background', apply_filters('ci_custom_background_options', $custom_bg));
                }
                if (ci_setting('bg_f_custom_disabled') != 'enabled' and get_ci_theme_support('custom_footer_background')) {
                    $custom_bg_f = array('bg_f_color' => apply_filters('ci_background_color_value', ci_setting('bg_f_color')), 'bg_f_image' => ci_setting('bg_f_image'), 'bg_f_image_horizontal' => ci_setting('bg_f_image_horizontal'), 'bg_f_image_vertical' => ci_setting('bg_f_image_vertical'), 'bg_f_image_attachment' => ci_setting('bg_f_image_attachment'), 'bg_f_image_repeat' => ci_setting('bg_f_image_repeat'), 'bg_f_image_disable' => ci_setting('bg_f_image_disable'), 'bg_f_image_size' => ci_setting('bg_f_image_size') != 'custom' ? ci_setting('bg_f_image_size') : ci_setting('bg_f_image_size_value'));
                    do_action('ci_custom_footer_background', apply_filters('ci_custom_footer_background_options', $custom_bg_f));
                }
                ?>
				</style>
			<?php 
            }
            ?>
			<?php 
        }
Example #7
0
 function ci_cpt_taxonomy_paging_request($query)
 {
     //We don't want to mess other templates/post types or with the admin panel.
     if (!is_tax() || is_admin()) {
         return $query;
     }
     // Make sure we don't override any explicitly set posts_per_page
     if (isset($query->query_vars['posts_per_page'])) {
         return $query;
     }
     $num_of_pages = false;
     if (is_tax('artists-category')) {
         $num_of_pages = intval(ci_setting('artists_per_page'));
     } elseif (is_tax('video-category')) {
         $num_of_pages = intval(ci_setting('videos_per_page'));
     } elseif (is_tax('event-category')) {
         $num_of_pages = intval(ci_setting('events_per_page'));
     } elseif (is_tax('gallery-category')) {
         $num_of_pages = intval(ci_setting('galleries_per_page'));
     } elseif (is_tax('section')) {
         $num_of_pages = intval(ci_setting('discography_per_page'));
     }
     // Assign a number only if a number was found;
     if ($num_of_pages !== false && $num_of_pages > 0) {
         $query->set('posts_per_page', $num_of_pages);
     }
     return $query;
 }
 function ci_register_bsa_script()
 {
     // Load Buy Sell Ads code, if available.
     if (ci_setting('buysellads_code')) {
         echo html_entity_decode(ci_setting('buysellads_code'));
     }
 }
Example #9
0
 function ci_register_theme_styles()
 {
     //
     // Register all front-end and admin styles here.
     // There is no need to register them conditionally, as the enqueueing can be conditional.
     //
     $font_url = '';
     /* translators: If there are characters in your language that are not supported by Source Sans Pro, translate this to 'off'. Do not translate into your own language. */
     if ('off' !== _x('on', 'Source Sans Pro font: on or off', 'ci_theme')) {
         $font_url = add_query_arg('family', urlencode('Source Sans Pro:300,400,700,900,400italic'), "//fonts.googleapis.com/css");
     }
     wp_register_style('ci-google-font', $font_url, array());
     wp_register_style('ci-base', get_child_or_parent_file_uri('/css/base.css'));
     wp_register_style('ci-flexslider', get_child_or_parent_file_uri('/css/flexslider.css'));
     wp_register_style('mmenu', get_child_or_parent_file_uri('/css/mmenu.css'));
     wp_register_style('woocommerce_prettyPhoto_css', get_child_or_parent_file_uri('/css/prettyPhoto.css'));
     wp_register_style('jquery-ui-style', get_child_or_parent_file_uri('/css/admin/jquery-ui.css'), array(), '1.10.4');
     wp_register_style('stapel', get_child_or_parent_file_uri('/css/stapel.css'), array(), '1.10.4');
     wp_register_style('jquery-ui-timepicker', get_child_or_parent_file_uri('/css/admin/jquery-ui-timepicker-addon.css'));
     wp_register_style('ci-repeating-fields', get_child_or_parent_file_uri('/css/admin/repeating-fields.css'));
     wp_register_style('ci-admin-widgets', get_child_or_parent_file_uri('/css/admin/admin-widgets.css'), array('ci-repeating-fields'));
     wp_register_style('ci-post-edit-screens', get_child_or_parent_file_uri('/css/admin/post_edit_screens.css'), array('ci-repeating-fields'));
     wp_register_style('ci-color-scheme', get_child_or_parent_file_uri('/colors/' . ci_setting('stylesheet')));
     wp_register_style('ci-style', get_stylesheet_uri(), array('ci-google-font', 'ci-base', 'ci-flexslider', 'font-awesome', 'mmenu', 'stapel'), CI_THEME_VERSION, 'screen');
 }
 function ci_is_featured_enabled()
 {
     $post_type = get_post_type();
     if (ci_setting('featured_single_' . $post_type . '_show') == 'enabled') {
         return true;
     }
     return false;
 }
 function ci_register_google_maps_api()
 {
     $key = '';
     if (ci_setting('google_maps_api_key')) {
         $key = 'key=' . ci_setting('google_maps_api_key') . '&';
     }
     $google_url = "//maps.googleapis.com/maps/api/js?" . $key . "v=3.5&sensor=false";
     wp_register_script('google-maps', $google_url, array(), null, false);
 }
Example #12
0
        function ci_favicon()
        {
            if (ci_setting('favicon')) {
                ?>
<link rel="shortcut icon" type="image/x-icon" href="<?php 
                echo esc_attr(ci_setting('favicon'));
                ?>
" /><?php 
            }
        }
 function ci_disable_pages_comments($comments_open, $post_id)
 {
     if (is_page($post_id)) {
         if (ci_setting('pages_comments_off') == 'enabled') {
             return false;
         } else {
             return $comments_open;
         }
     } else {
         return $comments_open;
     }
 }
        function ci_favicon()
        {
            if (function_exists('has_site_icon') && has_site_icon()) {
                return;
            }
            if (ci_setting('favicon')) {
                ?>
<link rel="shortcut icon" type="image/x-icon" href="<?php 
                echo esc_attr(ci_setting('favicon'));
                ?>
" /><?php 
            }
        }
 function ci_register_theme_styles()
 {
     //
     // Register all front-end and admin styles here.
     // There is no need to register them conditionally, as the enqueueing can be conditional.
     //
     wp_register_style('google-font-lato-lora', '//fonts.googleapis.com/css?family=Lato:700,900|Lora:400,700,400italic,700italic');
     wp_register_style('ci-base', get_child_or_parent_file_uri('/css/base.css'));
     wp_register_style('ci-flexslider', get_child_or_parent_file_uri('/css/flexslider.css'));
     wp_register_style('ci-mmenu', get_child_or_parent_file_uri('/css/mmenu.css'));
     wp_register_style('ci-ilightbox', get_child_or_parent_file_uri('/css/ilightbox.css'));
     wp_register_style('ci-style', get_stylesheet_uri(), array(), CI_THEME_VERSION, 'screen');
     wp_register_style('ci-color-scheme', get_child_or_parent_file_uri('/colors/' . ci_setting('stylesheet')));
 }
 function ci_newsletter_hidden_fields()
 {
     $fields = ci_setting('newsletter_hidden_fields');
     $out = '';
     if (is_array($fields) and count($fields) > 0) {
         for ($i = 0; $i < count($fields); $i += 2) {
             if (empty($fields[$i])) {
                 continue;
             }
             $out .= '<input type="hidden" name="' . esc_attr($fields[$i]) . '" value="' . esc_attr($fields[$i + 1]) . '" />';
         }
     }
     return $out;
 }
 function ci_enqueue_theme_scripts()
 {
     //
     // Enqueue all (or most) front-end scripts here.
     // They can be also enqueued from within template files.
     //
     if (is_singular() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
     $params['slider_autoslide'] = ci_setting('slider_autoslide') == 'enabled' ? true : false;
     $params['slider_effect'] = ci_setting('slider_effect');
     $params['slider_direction'] = ci_setting('slider_direction');
     $params['slider_duration'] = (string) ci_setting('slider_duration');
     $params['slider_speed'] = (string) ci_setting('slider_speed');
     wp_localize_script('ci-front-scripts', 'ThemeOption', $params);
     wp_enqueue_script('ci-front-scripts');
 }
Example #18
0
 function ci_theme_enqueue_header_css()
 {
     $css = '';
     $slides_count = 0;
     if (is_page_template('template-frontpage.php')) {
         $slides = ci_theme_get_slides(false, false, true);
         $slides_count = $slides->post_count;
     }
     if (is_page_template('template-frontpage.php') && $slides_count > 0) {
         $css = '#header { background: none; border: none; }';
     } else {
         $img_url = ci_setting('default_header_bg');
         $img_id = ci_setting('default_header_bg_hidden');
         if (!empty($img_url) and !empty($img_id)) {
             $img_url = ci_get_image_src($img_id, 'ci_page_header');
         }
         if (!empty($img_url)) {
             $css = '#header { background-image: url("' . esc_url($img_url) . '"); }';
         }
     }
     wp_add_inline_style('ci-color-scheme', $css);
 }
Example #19
0
 function ci_enqueue_theme_scripts()
 {
     //
     // Enqueue all (or most) front-end scripts here.
     // They can be also enqueued from within template files.
     //
     if (is_singular() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
     wp_enqueue_script('ci-front-scripts');
     $params['theme_url'] = get_template_directory_uri();
     $params['slider_auto'] = ci_setting('slider_auto') == 'enabled' ? true : false;
     $params['swfPath'] = get_template_directory_uri() . '/js/swf/';
     $params['slider_autoslide'] = ci_setting('slider_autoslide') == 'enabled' ? true : false;
     $params['slider_effect'] = ci_setting('slider_effect');
     $params['slider_direction'] = ci_setting('slider_direction');
     $params['slider_duration'] = (string) ci_setting('slider_duration');
     $params['slider_speed'] = (string) ci_setting('slider_speed');
     wp_localize_script('ci-front-scripts', 'ThemeOption', $params);
     if (ci_setting('google_maps_api_enable') == 'on') {
         wp_enqueue_script('google-maps');
     }
 }
Example #20
0
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     $color = isset($instance['color']) ? $instance['color'] : 'default';
     $color = empty($color) ? 'default' : $color;
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     if (ci_setting('social_rss_show') == 'enabled') {
         echo '<a href="' . esc_url(ci_rss_feed()) . '" class="icn rss ' . esc_attr($color) . '" title="' . esc_attr(ci_setting('social_rss_text')) . '">' . ci_setting('social_rss_text') . '</a>';
     }
     $services = ci_social_services();
     foreach ($services as $key => $value) {
         $enabled = ci_setting('social_' . $key . '_show');
         $url = ci_setting('social_' . $key . '_url');
         $text = ci_setting('social_' . $key . '_text');
         if ($enabled == 'enabled' and !empty($url)) {
             echo '<a href="' . esc_url($url) . '" class="icn ' . esc_attr($key) . ' ' . esc_attr($color) . '" title="' . esc_attr($text) . '">' . $text . '</a>';
         }
     }
     echo $after_widget;
 }
Example #21
0
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $product, $woocommerce, $woocommerce_loop;
$upsells = $product->get_upsells();
if (sizeof($upsells) == 0) {
    return;
}
$meta_query = $woocommerce->query->get_meta_query();
$args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array($product->id), 'meta_query' => $meta_query);
$products = new WP_Query($args);
$woocommerce_loop['columns'] = ci_setting('product_columns') + 1;
if ($products->have_posts()) {
    ?>

	<div class="upsells products">

		<h3 class="section-title"><span><?php 
    _e('You may also like', 'ci_theme');
    ?>
</span></h3>

		<div class="row">

			<?php 
    woocommerce_product_loop_start();
    ?>
Example #22
0
 function get_logo_class()
 {
     return ci_setting('logo') != '' ? 'imglogo' : 'textual';
 }
?>

<main id="main">
	<div class="container">
		<div class="row">
			<div class="col-xs-12">
				<?php 
get_template_part('inc_section_titles');
?>

				<?php 
$cpt = 'cpt_video';
$cpt_taxonomy = get_query_var('taxonomy');
$masonry = ci_setting('videos_masonry');
$isotope = ci_setting('videos_isotope');
$columns = ci_setting('videos_columns');
$term = get_term_by('slug', get_query_var('term'), $cpt_taxonomy);
$div_class = '';
if ('on' == $isotope || 'on' == $masonry) {
    $div_class = 'list-masonry';
}
?>

				<?php 
if ('on' == $isotope) {
    ?>
					<ul class="filters-nav group">
						<li><a href="#filter" class="selected btn small transparent" data-filter="*"><?php 
    _e('All Items', 'ci_theme');
    ?>
</a></li>
Example #24
0
 function form($instance)
 {
     $instance = wp_parse_args((array) $instance, array('ci_title' => '', 'ci_username' => '', 'ci_number' => ''));
     if (ci_setting('twitter_consumer_key') == '' or ci_setting('twitter_consumer_secret') == '' or ci_setting('twitter_access_token') == '' or ci_setting('twitter_access_token_secret') == '') {
         echo '<p>' . __("It looks like you haven't provided Twitter access details, in order for this widget to work. Unfortunately, this is needed. Please visit the theme's settings page and provide the required access details.", 'ci_theme') . '</p>';
     } else {
         $ci_title = $instance['ci_title'];
         $ci_username = $instance['ci_username'];
         $ci_number = $instance['ci_number'];
         echo '<p><label for="' . esc_attr($this->get_field_id('ci_title')) . '">' . __('Title:', 'ci_theme') . '</label><input id="' . esc_attr($this->get_field_id('ci_title')) . '" name="' . esc_attr($this->get_field_name('ci_title')) . '" type="text" value="' . esc_attr($ci_title) . '" class="widefat" /></p>';
         echo '<p><label for="' . esc_attr($this->get_field_id('ci_username')) . '">' . __('Username:'******'ci_theme') . '</label><input id="' . esc_attr($this->get_field_id('ci_username')) . '" name="' . esc_attr($this->get_field_name('ci_username')) . '" type="text" value="' . esc_attr($ci_username) . '" class="widefat" /></p>';
         echo '<p><label for="' . esc_attr($this->get_field_id('ci_number')) . '">' . __('Number of tweets:', 'ci_theme') . '</label><input id="' . esc_attr($this->get_field_id('ci_number')) . '" name="' . esc_attr($this->get_field_name('ci_number')) . '" type="text" value="' . esc_attr($ci_number) . '" class="widefat" /></p>';
     }
 }
?>

<main id="main">
	<div class="container">
		<div class="row">
			<div class="col-xs-12">
				<?php 
get_template_part('inc_section_titles');
?>

				<?php 
$cpt = 'cpt_gallery';
$cpt_taxonomy = get_query_var('taxonomy');
$masonry = ci_setting('galleries_masonry');
$isotope = ci_setting('galleries_isotope');
$columns = ci_setting('galleries_columns');
$term = get_term_by('slug', get_query_var('term'), $cpt_taxonomy);
$div_class = '';
if ('on' == $isotope || 'on' == $masonry) {
    $div_class = 'list-masonry';
}
?>

				<?php 
if ('on' == $isotope) {
    ?>
					<ul class="filters-nav group">
						<li><a href="#filter" class="selected btn small transparent" data-filter="*"><?php 
    _e('All Items', 'ci_theme');
    ?>
</a></li>
Example #26
0
 function ci_loop_show_columns()
 {
     return ci_setting('product_columns');
 }
        function widget($args, $instance)
        {
            extract($args);
            $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
            $button = $instance['button'];
            $description = $instance['description'];
            $parallax = $instance['parallax'];
            $parallax_speed = $instance['parallax_speed'];
            $text_cols = '';
            $form_cols = '';
            if (in_array($id, array('frontpage-widgets', 'inner-sidebar'))) {
                $text_cols = 'col-md-5';
                $form_cols = 'col-md-7';
            }
            echo $before_widget;
            $data_speed = !empty($parallax) ? ' data-speed="' . $parallax_speed / 10 . '" ' : '';
            ?>
<div class="widget-wrap <?php 
            echo $parallax;
            ?>
" <?php 
            echo $data_speed;
            ?>
><?php 
            if (in_array($id, array('frontpage-widgets', 'inner-sidebar'))) {
                ?>
<div class="container"><?php 
            }
            if (ci_setting('newsletter_action') != '') {
                ?>
			<form action="<?php 
                ci_e_setting('newsletter_action');
                ?>
" method="post" class="ci-newsletter-form">
				<div class="row">
					<div class="<?php 
                echo $text_cols;
                ?>
 col-sm-12">
						<label for="<?php 
                ci_e_setting('newsletter_email_id');
                ?>
"><?php 
                echo $title;
                ?>
</label>
						<span><?php 
                echo $description;
                ?>
</span>
					</div>

					<div class="<?php 
                echo $form_cols;
                ?>
 col-sm-12">
						<div class="input-group">
							<input type="email" name="<?php 
                ci_e_setting('newsletter_email_name');
                ?>
" id="<?php 
                ci_e_setting('newsletter_email_id');
                ?>
" placeholder="<?php 
                _e('Your e-mail', 'ci_theme');
                ?>
">
							<button type="submit" class="btn"><?php 
                echo $button;
                ?>
</button>
						</div>
					</div>
				</div>
				<?php 
                echo ci_newsletter_hidden_fields();
                ?>
			</form>
			<?php 
            }
            if (in_array($id, array('frontpage-widgets', 'inner-sidebar'))) {
                ?>
</div><!-- /container --><?php 
            }
            ?>
</div><!-- /widget-wrap --><?php 
            echo $after_widget;
        }
Example #28
0
 function ci_title()
 {
     $sep = trim(ci_setting('title_separator'));
     $sep = !empty($sep) ? ' ' . $sep . ' ' : ' | ';
     return wp_title($sep, false, 'right');
 }
 function ci_change_read_more($more_link, $more_link_text)
 {
     return str_replace($more_link_text, ci_setting('read_more_text'), $more_link);
 }
Example #30
0
<?php

$autoplay = '';
$current_track = '';
$pid = intval(ci_setting('music_player_post_id'));
$s_url = esc_url(ci_setting('music_player_stream_url'));
$s_name = ci_setting('music_player_stream_name');
$tracklisting = get_post_meta($pid, 'ci_cpt_discography_tracks', true);
if (empty($tracklisting) || !is_array($tracklisting) || count($tracklisting) < 1) {
    $tracklisting = false;
}
if (ci_setting('music_player_autoplay') == 'on') {
    $autoplay = " autoplay";
}
if (ci_setting('music_player_display_current_track') == 'on') {
    $current_track = " ci-current-track";
}
if (!empty($tracklisting) || !empty($s_url)) {
    ?>
	<div class="hero-player">
		<div class="container">
			<div class="row">
				<div class="col-xs-12">
					<div class="ci-soundplayer <?php 
    echo !empty($s_url) ? 'ci-streaming ' : '';
    echo $autoplay . $current_track;
    ?>
">
						<div class="ci-soundplayer-controls">
							<a class="ci-soundplayer-prev" href="#"><i class="fa fa-step-backward"></i></a>
							<a class="ci-soundplayer-play" href="#"><i class="fa fa-play"></i></a>