Example #1
0
function supernova_pagination($pages = '', $range = 2)
{
    global $supernova_options;
    echo '<div class="pagination_wrapper">';
    if (!supernova_options('disable-pagination')) {
        $showitems = $range * 2 + 1;
        global $paged;
        if (empty($paged)) {
            $paged = 1;
        }
        if ($pages == '') {
            global $wp_query;
            $pages = $wp_query->max_num_pages;
            if (!$pages) {
                $pages = 1;
            }
        }
        if (1 != $pages) {
            echo "<div class='pagination'>";
            if ($paged > 2 && $paged > $range + 1 && $showitems < $pages) {
                echo "<a href='" . get_pagenum_link(1) . "'>&laquo;</a>";
            }
            if ($paged > 1 && $showitems < $pages) {
                echo "<a href='" . get_pagenum_link($paged - 1) . "'>&lsaquo;</a>";
            }
            for ($i = 1; $i <= $pages; $i++) {
                if (1 != $pages && (!($i >= $paged + $range + 1 || $i <= $paged - $range - 1) || $pages <= $showitems)) {
                    echo $paged == $i ? "<span class='current'>" . $i . "</span>" : "<a href='" . get_pagenum_link($i) . "' class='inactive' >" . $i . "</a>";
                }
            }
            if ($paged < $pages && $showitems < $pages) {
                echo "<a title='next' href='" . get_pagenum_link($paged + 1) . "'>&rsaquo;</a>";
            }
            if ($paged < $pages - 1 && $paged + $range - 1 < $pages && $showitems < $pages) {
                echo "<a title='last' href='" . get_pagenum_link($pages) . "'>&raquo;</a>";
            }
            echo "</div>\n";
        }
    }
    if (is_home() || is_front_page()) {
        supernova_ajax_main_button();
    }
    echo '</div>';
}
Example #2
0
            <span class="supernova_thumb"><?php 
        supernova_thumbnail(get_the_ID());
        ?>
</span>
                <?php 
        the_content();
        ?>

             <span class="page_links"><?php 
        wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number'));
        ?>
</span>
       </div>                                   
        <?php 
        edit_post_link(__('Edit this entry', 'Supernova'), '', '.');
        ?>
                
    </article>             	
    <?php 
        get_template_part('includes/after', 'post');
        if (!supernova_options('post-comment')) {
            comments_template();
        }
        supernova_count_post_views(get_the_ID());
    }
}
?>


<div class="clearfix"></div>
Example #3
0
 function supernova_checked_check($id, $value_to_check, $default = false)
 {
     if (supernova_options($id) == $value_to_check) {
         return 'checked="checked"';
     }
 }
Example #4
0
                <?php 
    echo '<div id="top_nav">';
    wp_nav_menu(array('theme_location' => 'Header_Nav', 'menu' => 'Header Navigation', 'menu_id' => 'menu'));
    echo '</div>';
    ?>

                    <span class="media_left_close" title="close"></span>
            </div><!--header_nav -->
            
                <?php 
    supernova_category_navigation();
    ?>

            
            <?php 
    if (!supernova_options('disable-top-search')) {
        ?>

            <div class="top_search">
                <div class="top_search_icon"></div>
                <div class="top_search_box"><?php 
        get_search_form();
        ?>
</div>
            </div>
            <?php 
    }
    ?>

                <div class="clearfix"></div>
        </div><!--top_most -->
Example #5
0
<?php

/**
 * Template for displaying slider on home page
 *
 * @package Supernova
 * @since Supenova 1.5.1
 * @license GPL 2.0
 */
global $supernova_options, $paged;
if ($paged == 0 && !supernova_options('disable-slider')) {
    ?>

<div id="supernova_slider_wrapper" class="<?php 
    echo $supernova_options['fade-slider'];
    ?>
">
    <div class="flexslider">
          <ul class="slides">
            <?php 
    for ($i = 1; $i <= 8; $i++) {
        $post_id = trim(intval($supernova_options['fat' . $i]));
        $slider_image = esc_url(trim($supernova_options['slider' . $i]));
        $option = $supernova_options['slider-post-excerpt'];
        $length = $supernova_options['slider-excerpt-length'];
        $heading_length = $supernova_options['slider-heading-length'];
        if (in_array($supernova_options['automate-slides'], array(1, 2, 3, 4))) {
            $post_ids = supernova_slider_postids();
            $post_id = isset($post_ids[$i - 1]) && $post_ids[$i - 1] ? $post_ids[$i - 1] : '';
            $slider_image = '';
            if ($post_id == '') {
 function supernova_category_navigation()
 {
     global $sup_header_catname;
     if (!supernova_options('disable-categories')) {
         echo '<div class="header_catnav">';
         echo '<div class="header_cat_title"><span class="cat_icon"></span><span class="first_cat">' . $sup_header_catname . '</span><div class="clearfix"></div></div>';
         echo '<div class="catnav">';
         if (has_nav_menu('Header_Cat')) {
             wp_nav_menu(array('theme_location' => 'Header_Cat', 'menu' => 'Header Categories'));
         } else {
             echo "<ul>";
             wp_list_categories(array('title_li' => NULL, 'number' => 6));
             //Only if user has not selected menu
             echo "</ul>";
         }
         echo '</div></div>';
     }
 }
Example #7
0
 * @since Supenova 1.0.1
 * @license GPL 2.0
 */
?>



<?php 
do_action('supernova_breadcrumb');
?>

<div class="clearfix"></div>
<?php 
do_action('above_single_posts');
?>

<?php 
if (!supernova_options('disable-resizer')) {
    ?>

<div class="font_resizer">
<a href="javascript:void(0);" id="minustext" title="<?php 
    _e('Decrease font-size', 'Supernova');
    ?>
">[A-]</a> | <a href="javascript:void(0);" id="plustext" title="<?php 
    _e('Increase font size', 'Supernova');
    ?>
">[A+]</a>
</div>
<?php 
}
function supernova_meta_content()
{
    global $supernova_options;
    $meta_sorting = isset($supernova_options['meta-sorting']) && $supernova_options['meta-sorting'] ? $supernova_options['meta-sorting'] : 'Author,Date,Comment';
    if (supernova_options('disable-meta')) {
        //If admin seleced not to show ay meat, had to do it because of old users
        $meta_sorting = '';
    }
    $meta_array = explode(',', $meta_sorting);
    $author = '<li>';
    $author .= '<em class="meta_by">' . __('By', 'Supernova') . '</em>';
    $author .= '<span class="meta_author entry-author vcard author fa-user">';
    $author .= '<a class="fn" title="' . __('View all posts by ', 'Supernova') . get_the_author_meta('display_name') . '" href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_the_author_meta('display_name') . '</a>';
    $author .= '</span>';
    $author .= '</li>';
    $date = '<li>';
    $date .= '<span class="meta_date"><time class="entry-date updated fa-clock-o" datetime="' . get_the_date() . '" >' . get_the_date() . '</time></span>';
    $date .= '</li>';
    $comment = '<li class="leave_comment fa-comments"><span>';
    $comment .= supernova_get_comments_popup_link(__('LEAVE A COMMENT', 'Supernova'), __('SHOW COMMENT(1)', 'Supernova'), __('SHOW COMMENTS (%)', 'Supernova'), 'comments-link', '');
    $comment .= '</span></li>';
    if (!empty($meta_array) && $meta_array[0] != '') {
        echo '<div class="postmetadata">';
        echo '<div class="meta">';
        echo '<span class="left_meta">';
        echo '<ul>';
        foreach ($meta_array as $meta) {
            if ($meta == 'Author') {
                echo $author;
            }
            if ($meta == 'Date') {
                echo $date;
            }
            if ($meta == 'Comment') {
                echo $comment;
            }
        }
        echo '</ul>';
        echo '</span>';
        echo '<span class="social_black">';
        do_action('supernova_meta_hook');
        //You can hook or replace your social icons here
        echo '</span>';
        echo '</div>';
        echo '</div>';
    } else {
        echo '<div class="dvd_line"></div>';
    }
}
Example #9
0
<?php

/**
 * The template for sidebar which will only show on the home page
 *
 * @package Supernova
 * @since Supenova 1.0.1
 * @license GPL 2.0
 */
global $supernova_options;
if (!supernova_options('nosidebar-home') && $supernova_options['sidebar-pos'] != 3) {
    ?>

<aside id="sidebar">
	<?php 
    if (!dynamic_sidebar('Sidebar Home')) {
        ?>

		
        <div class="widget widget_pages">
        <h3><?php 
        _e('Pages', 'Supernova');
        ?>
</h3>
		<?php 
        wp_list_pages(array('title_li' => false));
        ?>

        </div>
    	        
        <div class="widget widget_archive">
Example #10
0
/**
 * Template for displaying the contents after one of each single post
 *
 * @package Supernova
 * @since Supenova 1.0.1
 * @license GPL 2.0
 */
?>


<div class="clearfix"></div>
<?php 
do_action('supernova_below_single_posts');
get_template_part('includes/inc/tags');
if (!supernova_options('disable-author-box')) {
    ?>

<div id="authorarea">
    <?php 
    if (function_exists('get_avatar')) {
        echo get_avatar(get_the_author_meta('email'), '100');
    }
    ?>

    <div class="authorinfo">        
        <h3><?php 
    _e('About ', 'Supernova');
    the_author_posts_link();
    ?>
</h3>
Example #11
0
 public function supernova_front_script_enqueue()
 {
     global $supernova_options, $supernova_version;
     $no_responsive = 'no';
     $mobile_responsive = 'no';
     if (supernova_options('no-responsive')) {
         $no_responsive = 'no_responsive';
     }
     if (supernova_options('no-responsive-tablet')) {
         $mobile_responsive = 'no_responsive_tablet';
     }
     wp_register_script('supernova_js', SUPERNOVA_ROOT . '/js/main.min.js', array('jquery'), $supernova_version, true);
     wp_register_script('supenrova_flexslider', SUPERNOVA_ROOT . '/js/jquery.flexslider.js', array('jquery'), $supernova_version, true);
     wp_register_script('supernova_sticky', SUPERNOVA_ROOT . '/js/jquery.sticky.js', array('jquery'), $supernova_version, true);
     //Ajax Object
     wp_localize_script('supernova_js', 'supernova_ajax_object', array('ajaxurl' => admin_url('admin-ajax.php'), 'load_more_data' => __('Loading', 'Supernova') . '|' . __('Sorry no more posts available, please check back later', 'Supernova') . '|' . __('No more posts available', 'Supernova'), 'responsiveness' => $no_responsive . '|' . $mobile_responsive));
     if (is_singular() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
     //Comments
     wp_enqueue_script('supernova_js');
     //Supernova js
     if (!supernova_options('disable-slider') && is_home()) {
         wp_enqueue_script('supenrova_flexslider');
     }
     //Flexslider for home page
     if (is_page_template('page-templates/slider-temp.php') || is_page_template('page-templates/slider-nosidebar.php')) {
         wp_enqueue_script('supenrova_flexslider');
     }
     //for flexslider on templates
     if (!supernova_options('disable-nav-effect')) {
         wp_enqueue_script("jquery-effects-core");
     }
     //For Navigation effect
     if (!supernova_options('sticky-nav') && !supernova_options('disable-top-nav')) {
         wp_enqueue_script('supernova_sticky');
     }
     //Sticky nav
 }
Example #12
0
            <span class="supernova_thumb"><?php 
        supernova_thumbnail(get_the_ID());
        ?>
</span>
            <?php 
        the_content();
        ?>

            <?php 
        wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number'));
        ?>

        </div><!--entry -->
        <?php 
        edit_post_link('Edit this entry.', '<p>', '</p>');
        ?>

</div><!--post -->
 <?php 
        if (!supernova_options('page-comment')) {
            comments_template();
        }
        ?>
 
    <?php 
    }
}
?>


<div class="clearfix"></div>
Example #13
0
 function supernova_admin_page_setup($pagename, $width = false, $i = false, $is_submenu = false)
 {
     global $supernova_defaults;
     echo !$is_submenu && $pagename != 'Support' ? '<table class="supernova_table">' : '<table class="sup_inner_tab sup_inner_tab_' . $pagename . '">';
     foreach ($supernova_defaults as $value) {
         $tab_name = isset($value['tab']) && $value['tab'] ? $value['tab'] : '';
         $lable_name = isset($value['label']) && $value['label'] ? $value['label'] : '';
         $name = isset($value['name']) && $value['name'] ? $value['name'] : '';
         $name2 = isset($value['name2']) && $value['name'] ? $value['name2'] : '';
         $desc = isset($value['desc']) && $value['desc'] ? $value['desc'] : '';
         $image_url = isset($value['image']) && $value['image'] ? $value['image'] : '';
         $type = isset($value['type']) && $value['type'] ? $value['type'] : '';
         $default = isset($value['default']) && $value['default'] ? $value['default'] : '';
         $message = isset($value['message']) && $value['message'] ? $value['message'] : '';
         $min_value = isset($value['min']) && $value['min'] ? $value['min'] : '';
         $max_value = isset($value['max']) && $value['max'] ? $value['max'] : '';
         $classes = isset($value['classes']) && $value['classes'] ? $value['classes'] : '';
         $class = isset($value['class']) && $value['class'] ? $value['class'] : '';
         $radio_classes = isset($value['radio-classes']) && $value['radio-classes'] ? $value['radio-classes'] : '';
         $radio_images = isset($value['radio-images']) && $value['radio-images'] ? $value['radio-images'] : '';
         $bg_color = isset($value['bg-color']) && $value['bg-color'] ? $value['bg-color'] : '';
         $placeholder = isset($value['placeholder']) && $value['placeholder'] ? $value['placeholder'] : '';
         $radio_labels = isset($value['labels']) && $value['labels'] ? $value['labels'] : '';
         $select_options = isset($value['options']) && $value['options'] ? $value['options'] : '';
         switch ($tab_name) {
             case $pagename:
                 switch ($type) {
                     case 'message':
                         echo supernova_aop_helper_message($message, $class);
                         break;
                     case 'image-uploader':
                         echo supernova_aop_image_uploader($width, $name, $lable_name, $desc);
                         break;
                     case 'checkbox':
                         echo supernova_aop_checkbox_switch($width, $name, $lable_name, $desc, $image_url);
                         break;
                     case 'radio':
                         echo supernova_aop_radio($width, $name, $lable_name, $desc, false, $radio_labels, $classes);
                         break;
                     case 'radio-image':
                         echo supernova_aop_image_radio($width, $name, $lable_name, $desc, false, $radio_images, $radio_classes);
                         break;
                     case 'color-scheme':
                         echo supernova_aop_color_scheme($width, $name, $lable_name, $desc, false, $bg_color);
                         break;
                     case 'textarea':
                         echo supernova_aop_textarea($width, $name, $lable_name, $desc, false);
                         break;
                     case 'select':
                         echo supernova_aop_select($width, $name, $lable_name, $desc, false, $select_options, $placeholder);
                         break;
                     case 'color':
                         echo supernova_aop_color_picker($width, $name, $lable_name, $desc, false);
                         break;
                     case 'slider':
                         echo supernova_aop_slider_field($width, $name, $name2, $lable_name, $desc, false, $placeholder);
                         break;
                     case 'links':
                         echo supernova_aop_link_field($width, $name, $lable_name, $desc, $image_url, $placeholder);
                         break;
                     case 'text':
                         echo supernova_aop_input_text($width, $name, $lable_name, $desc, $image_url, $placeholder);
                         break;
                     case 'select-sortable':
                         echo supernova_aop_select_sortable($width, $name, $lable_name, $desc, $image_url, $default);
                         break;
                     case 'range-slider':
                         echo supernova_aop_range_slider($width, $name, $lable_name, $desc, false, $i, $default, $min_value, $max_value, $default);
                         supernova_range_slider_settings('slider_range' . $i, 'slider-result' . $i, $name, supernova_options('' . $name . ''), $default, $min_value, $max_value);
                         $i++;
                         break;
                     case 'support':
                         supernova_aop_support();
                         break;
                 }
         }
     }
     echo '</table>';
 }
Example #14
0
 function supernova_aop_textarea($width, $name, $label_name, $desc, $image_url = false)
 {
     $html = '';
     $html .= '<tr class = "aop_textarea">';
     $html .= '<td width="' . $width . '">';
     $html .= '<label for="' . $name . '">';
     $html .= $image_url ? '<img src="' . SUPERNOVA_ROOT_ADMIN . 'images/' . $image_url . ' ">' : $label_name;
     $html .= '</label>';
     $html .= '</td>';
     $html .= '<td>';
     $html .= '<textarea class="supernova_ad" rows="7" id="' . $name . '" name="supernova_settings[' . $name . ']">';
     $html .= supernova_options('' . $name . '');
     $html .= '</textarea>';
     $html .= $desc ? '<div class="help_wrapper"><span class="Shelp"></span><span class="field_help help">' . $desc . '</span></div>' : '';
     $html .= '</td>';
     $html .= '</tr>';
     return $html;
 }
Example #15
0
<?php

/**
 * The template for displaying footer
 * Contains the closing tag of the div ID 'wrapper' started in header
 * 
 * @package Supernova
 * @since Supenova 1.0.1
 * @license GPL 2.0
 */
global $supernova_theme_uri;
$responsive = !supernova_options('no-responsive') ? 'responsive' : '';
?>

<div class="clearfix"></div>
</div><!--wrapper ENDS -->
            
<footer id="footer_wrapper">
    <div id="footer">
    	<?php 
if (is_active_sidebar('Footer Widgets')) {
    ?>

            <div id="footer_widgets">
                <?php 
    dynamic_sidebar('Footer Widgets');
    ?>

                <div class="clearfix"></div>
            </div>
        <?php 
Example #16
0
function supernova_user_css()
{
    global $supernova_options;
    $background_color = get_background_color();
    $background_image = get_background_image();
    $styles = '';
    /******************************/
    /*GENERAL*/
    /******************************/
    if (supernova_options('no-responsive') || supernova_options('no-responsive-tablet')) {
        $styles .= "body{min-width:" . $supernova_options['layout-width'] . "px;}";
    }
    /******************************/
    /*BACKGROUND*/
    /******************************/
    if ($background_color == 'ffffff' || !$background_color && !$background_image) {
        $styles .= ".main_content{border:none;}";
    }
    //box shadow fix for main content
    if (isset($supernova_options['sup_css'])) {
        $styles .= $supernova_options['sup_css'];
    }
    /******************************/
    /*MEDIA QUERY*/
    /******************************/
    $styles .= '@media only screen and (min-width: 920px) {body{min-width:' . $supernova_options['layout-width'] . 'px;} }';
    /******************************/
    /*LAYOUT*/
    /******************************/
    if ($supernova_options['layout-width']) {
        $styles .= "#wrapper, #footer, #top_most, .wrapper{width:" . esc_html(intval($supernova_options['layout-width'])) . "px;}";
    }
    if ($supernova_options['sidebar-width']) {
        $styles .= "#sidebar{width:" . intval($supernova_options['sidebar-width'] - 2) . "%!Important;}";
    }
    if ($supernova_options['content-width']) {
        $styles .= "#content{width:" . intval($supernova_options['content-width'] - 3) . "%;}";
    }
    //Sidebar
    if ($supernova_options['sidebar-pos'] == 1) {
        $styles .= "#sidebar{float:right !important; margin-right:5% !important;}";
        $styles .= "#content{float:right !important; margin-right:0% !important;}";
    } elseif ($supernova_options['sidebar-pos'] == 3) {
        $styles .= "#content{float:none; width:100%; margin-right:0%;}";
    }
    /******************************/
    /*LOGO POSITION*/
    /******************************/
    $styles .= supernova_header_logopos();
    /******************************/
    /*NAVIGATION*/
    /******************************/
    if (supernova_options('disable-search') == 1) {
        $styles .= "#nav {max-width:100% !important;}";
    }
    if (supernova_options('disable-categories') == 1) {
        $styles .= ".header_nav{max-width:90%;padding-bottom: 5px;} \r\r\n            .top_search_box {left: -187px;}";
    }
    /******************************/
    /*FONT FAMILY*/
    /******************************/
    if ($supernova_options['font-style'] != '' && $supernova_options['font-style'] != 'Georgia, serif') {
        $styles .= "#content .entry p, #sidebar a, #sidebar p, #sidebar, #sidebar lable,#sidebar .supernova_tabber_contents h4, #footer .supernova_tabber_contents h4, body{font-family:" . $supernova_options['font-style'] . "!Important;}";
    }
    /******************************/
    /*FONT SIZES*/
    /******************************/
    if ($supernova_options['post-para-size'] !== '14') {
        $styles .= "#content .entry p{font-size:" . intval($supernova_options['post-para-size']) / 10 . "em !important ;}";
    }
    if ($supernova_options['post-heading-size'] !== '25') {
        $styles .= ".post_title{font-size:" . intval($supernova_options['post-heading-size']) / 10 . "em !important ;}";
    }
    if ($supernova_options['site-heading-size'] !== '30') {
        $styles .= "#header_title h1{font-size:" . intval($supernova_options['site-heading-size']) / 10 . "em !important ;}";
    }
    if ($supernova_options['site-desc-size'] !== '14') {
        $styles .= "#header_title p{font-size:" . intval($supernova_options['site-desc-size']) / 10 . "em !important ;}";
    }
    if ($supernova_options['sidebar-heading-size'] !== '23') {
        $styles .= "#sidebar .widget h3{font-size:" . intval($supernova_options['sidebar-heading-size']) / 10 . "em;}";
    }
    /******************************/
    /*FONT COLORS*/
    /******************************/
    if ($supernova_options['post-para-color'] != '000000') {
        $styles .= "#content .entry p{color: #" . esc_html($supernova_options['post-para-color']) . "!Important;}";
    }
    if ($supernova_options['post-heading-color'] != '525252') {
        $styles .= ".post_title a, .single_heading{color: #" . esc_html($supernova_options['post-heading-color']) . "!Important;}";
    }
    /******************************/
    /*FOOTER*/
    /******************************/
    $styles .= "#footer_wrapper{background:#" . esc_html(supernova_options('footer-color')) . ";}";
    if (trim(supernova_options('footer-bg')) !== '') {
        $styles .= "#footer_wrapper{background:url('" . esc_url(supernova_options('footer-bg')) . "');}";
    }
    $styles .= "#footer #footer_left_part span, #footer #footer_left_part a, #footer .widget, #footer a, #footer p, #footer pre, #footer span, #footer i, #footer a.rsswidget{color:#" . esc_html(supernova_options('footertext-color')) . " !important;}";
    $styles .= "#footer .widget h3{color:#" . esc_html(supernova_options('footerheading-color')) . ";}";
    $styles .= "#sidebar .widget h3{color:#" . esc_html(supernova_options('sidebar-heading-color')) . ";}";
    if (supernova_options('nosidebar-home')) {
        $styles .= ".home #wrapper #content{width:100%!important; margin-right:0;}\r\r\n            .home #supernova_slider img {height: 350px;}\r\r\n            .home #supernova_slider_wrapper {margin-bottom:50px;}";
    }
    if (supernova_options('icon-color') == '2') {
        $styles .= "#footer .facebook_b{background-position:0 0}#footer .twitter_b{background-position:-32px 0}#footer .google_b{background-position:-64px 0} #footer .stumble_b{background-position:-96px 0}#footer .rss_b{background-position:-128px 0}#footer .youtube_b{background-position:-160px 0}#footer .linkedin_b{background-position:-192px -96px}";
    }
    /******************************/
    /*COLORS*/
    /******************************/
    /*NOTE : ~ NOT IN USE*/
    $color = false;
    if ($color) {
        $styles .= '#header_navigation .category ul li a, 
            .header_catnav .catnav ul a,
            #top_nav li a:hover, 
            #nav li a:hover, 
            #nav li.current_page_item a, 
            #top_nav li.current_page_item a, 
            .page_links a, 
            .next_prev_post a, 
            .entry a, 
            .main_content .meta_author a, 
            #footer .current_page_item a, 
            #footer a:hover, 
            .leave_comment a:hover, 
            .single_content .meta_author, 
            .pagination a:hover, 
            .pagination .current, 
            .replyback a, 
            .supernova_related_posts a, 
            #supernova_breadcrumbs a{color:' . $color . '}';
        $styles .= '.post_title a:hover, .entry .moretag:hover, .footer_nav li a:hover,#footer .footer_nav li a:hover, .rsswidget:hover {color:' . $color . '!Important;}';
        $styles .= '#content .tags a, .widget_pages a:hover, .widget_meta a:hover, .widget_archive a:hover, .widget_recent_comments a:hover, .widget_nav_menu a:hover, .widget_recent_entries a:hover, .widget_tag_cloud a:hover, #wp-calendar tbody td:hover, #wp-calendar #today, .supernova a:hover, .widget_categories li a:hover, .supernova_related_posts a:hover, .flex-control-paging li a.flex-active {background: ' . $color . '}';
        $styles .= '.article_wrapper{border-left:1px solid ' . $color . '}';
        $styles .= '#nav .current_page_item .hasChildren, #top_nav .current_page_item .hasChildren{border-top:8px solid ' . $color . ';}';
        //SELECTION
        $styles .= '::selection,::-moz-selection, p.red::selection, p.red::-moz-selection {background: ' . $color . ';}';
        $styles .= '::selection{background: ' . $color . '; /* Safari */}';
        $styles .= '::-moz-selection{background: ' . $color . '; /* Firefox */}';
        $styles .= 'p.red::selection{background: ' . $color . ';}';
        $styles .= 'p.red::-moz-selection{background: ' . $color . ';}';
    }
    /******************************/
    /*Extras*/
    /******************************/
    if (supernova_options('nav-capt') == 1) {
        $styles .= "#nav li a {text-transform: none;font-size: 2em;}";
        $styles .= "#top_nav li a  {text-transform: none; font-size: 1.2em;}";
        $styles .= ".header_catnav .catnav ul a{text-transform: none; font-size: 1.7em;}";
    }
    if (supernova_options('sidebar-capt') == 1) {
        $styles .= ".widget h3 {text-transform: none;}";
        $styles .= ".sidebar-posts h4 {text-transform: none;}";
        $styles .= ".widget .supernova_tabber .supernova_tabber_top li span {text-transform: none; font-size: 1.1em;}";
    }
    if (supernova_options('heading-capt') == 1) {
        $styles .= ".post_title a, .single_heading, .featured_content h3 {text-transform: none;}";
    }
    if (supernova_options('vborder-nav') == 1) {
        $styles .= "#nav_wrapper {background:none; padding-bottom: 0;}";
    }
    if (supernova_options('vborder-sidebar') == 1) {
        $styles .= ".widget h3 {background:none;padding-bottom:0.5em ; line-height: inherit; margin-bottom:0}";
    }
    if (supernova_options('list-thumbnail-width') && supernova_options('list-thumbnail-width') != 20) {
        $styles .= ".post img.attachment-thumbnail, .type-post img.attachment-thumbnail{width:" . esc_html(intval($supernova_options['list-thumbnail-width'] - 1.43)) . "%;}";
    }
    if (supernova_options('list-thumbnail-height') && supernova_options('list-thumbnail-height') != 120) {
        $styles .= ".post img.attachment-thumbnail, .type-post img.attachment-thumbnail{height:" . esc_html(intval($supernova_options['list-thumbnail-height'])) . "px;}";
    }
    return $styles;
}