<!--Footer--> <footer> <div class="container"> <div class="site-sns"> <?php for ($i = 0; $i < 10; $i++) { $social_icon = esc_attr(torch_options_array('social_icon_' . $i)); $social_link = esc_url(torch_options_array('social_link_' . $i)); if ($social_link != "") { echo '<a href="' . $social_link . '" target="_blank"><i class="' . $social_icon . '"></i></a>'; } } ?> </div> <div class="site-info"> <?php printf(__('Powered by <a href="%s" target="_blank">WordPress</a>. Designed by <a href="%s" target="_blank">MageeWP Themes</a>.', 'torch'), esc_url('http://wordpress.org/'), esc_url('http://www.mageewp.com/')); ?> </div> </div> </footer> </div> <?php wp_footer(); ?> </body> </html>
echo $class; ?> "> <!--Header--> <header> <div class="container"> <div class="logo-box text-left"> <?php if (torch_options_array('logo') != "") { ?> <a href="<?php echo esc_url(home_url('/')); ?> "> <img src="<?php echo esc_url(torch_options_array('logo')); ?> " class="site-logo" alt="<?php bloginfo('name'); ?> " /> </a> <?php } ?> <div class="name-box"> <a href="<?php echo esc_url(home_url('/')); ?> "><h1 class="site-name"><?php bloginfo('name');
function torch_custom_scripts() { global $is_IE; wp_enqueue_style('torch-bootstrap', get_template_directory_uri() . '/css/bootstrap.css', FALSE, '4.0.3', FALSE); wp_enqueue_style('torch-font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', FALSE, '4.0.3', FALSE); wp_enqueue_style('torch-carousel', get_template_directory_uri() . '/css/owl.carousel.css', FALSE, '1.3.2', FALSE); wp_enqueue_style('torch-main', get_stylesheet_uri(), array(), '1.1.8'); wp_enqueue_style('torch-scheme', get_template_directory_uri() . '/css/scheme.less', FALSE, '1.1.8', FALSE); wp_enqueue_style('montserrat', esc_url('//fonts.googleapis.com/css?family=Montserrat:400,700|Open+Sans:300,400,700'), FALSE, '', FALSE); $header_image = get_header_image(); $header_background = ""; $torch_custom_css = ""; if (isset($header_image) && !empty($header_image)) { $torch_custom_css .= ".blog-list-page header{background:url(" . $header_image . ") no-repeat;}\n"; } if ('blank' != get_header_textcolor() && '' != get_header_textcolor()) { $header_background .= ' color:#' . get_header_textcolor() . ';'; $torch_custom_css .= '.header-wrapper header .name-box .site-name,.header-wrapper header .name-box .site-tagline {' . $header_background . '}'; } $global_color = torch_options_array("global_color"); if (!$global_color) { $global_color = "#19cbcf"; } // $torch_custom_css .= ' //a:active, //a:hover { // color:'.$global_color.'; //} // //mark, //ins { // background: '.$global_color.'; //} // //::selection { // background:'.$global_color.'; //} // //::-moz-selection { // background: '.$global_color.'; //} // //.search-form input[type="submit"] { // background-color:'.$global_color.'; //} // //.site-nav > ul > li:hover > a { // color:'.$global_color.'; // border-bottom-color:'.$global_color.'; //} // //.site-nav li > ul > li:hover > a { // color:'.$global_color.'; //} // //.homepage-slider .carousel-caption button { // background-color:'.$global_color.'; //} // //.homepage-slider .carousel-caption button:hover { // background-color: darken(@color-main, 5%); //} // //.homepage-slider .carousel-indicators li.active { // border-color:'.$global_color.'; // color:'.$global_color.'; //} // //.service-box:hover i { // color:'.$global_color.'; //} // //.service-box:hover a { // color:'.$global_color.'; //} // //.slogan-box { // border-top-color:'.$global_color.'; //} // //.slogan-box .btn-normal { // background-color:'.$global_color.'; //} // //.slogan-box .btn-normal:hover { // background-color: darken(@color-main, 5%); //} // //.portfolio-box:hover .portfolio-box-title { // background-color:'.$global_color.'; //} // //.testimonial-content { // border-top-color:'.$global_color.'; //} // //.testimonial-content i { // color:'.$global_color.'; //} // //.contact-form input[type="submit"] { // background-color:'.$global_color.'; //} // //.contact-form input[type="submit"]:hover { // background-color: darken(@color-main, 5%); //} // //.contact-form input:focus, //.contact-form textarea:focus { // border-color:'.$global_color.'; // color:'.$global_color.'; //} // //footer { // background-color:'.$global_color.'; //} // //.entry-meta a:hover { // color:'.$global_color.'; //} // //.entry-title-dec { // border-bottom-color:'.$global_color.'; //} // //a .entry-title:hover { // color:'.$global_color.'; //} // //.entry-more:hover { // color:'.$global_color.'; //} // //.list-pagition a:hover { // background-color:'.$global_color.'; //} // //.entry-summary a, //.entry-content a { // color:'.$global_color.'; //} // //.comment-form input:focus, //.comment-form textarea:focus { // border-color:'.$global_color.'; // color:'.$global_color.'; //} // //.form-submit input { // background-color:'.$global_color.'; //} // //.form-submit input:hover { // background-color: darken(@color-main, 5%); //} // //.widget-box a:hover { // color:'.$global_color.'; //} // //.widget-slider .carousel-indicators li { // border-color:'.$global_color.'; //} // //.widget-slider .carousel-indicators li.active { // background-color:'.$global_color.'; //} // //.widget-post .widget-post-box a:hover { // color:'.$global_color.'; //} // //.widget-box > ul > li, //.widget-post > ul > li { // border-right-color:'.$global_color.'; //}'; $custom_css = torch_options_array("custom_css"); $torch_custom_css .= $custom_css; wp_add_inline_style('torch-main', $torch_custom_css); wp_enqueue_script('torch-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.0.3', FALSE); //wp_enqueue_script( 'torch-less', get_template_directory_uri().'/js/less.min.js', array( 'jquery' ), '1.4.2', false ); wp_enqueue_script('torch-respond', get_template_directory_uri() . '/js/respond.min.js', array('jquery'), '1.4.2', FALSE); wp_enqueue_script('torch-carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array('jquery'), '1.3.2', FALSE); wp_enqueue_script('torch-modernizr', get_template_directory_uri() . '/js/modernizr.custom.js', array('jquery'), '2.8.2', FALSE); wp_enqueue_script('torch-main', get_template_directory_uri() . '/js/torch.js', array('jquery'), '1.1.8', TRUE); if (isset($global_color) && $global_color != "") { wp_localize_script('torch-less', 'torch_js_var', array("global_color" => $global_color)); } if ($is_IE) { wp_enqueue_script('torch-html5', get_template_directory_uri() . '/js/html5.js', array('jquery'), '', FALSE); } wp_localize_script('torch-main', 'torch_params', array('ajaxurl' => admin_url('admin-ajax.php'), 'themeurl' => TORCH_THEME_BASE_URL)); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } }
<?php /** * The front page template * */ get_header(); $enable_home_page = torch_options_array("enable_home_page"); if ('posts' == get_option('show_on_front')) { get_template_part("home"); } else { if ($enable_home_page == "1") { get_template_part('featured-content'); } else { get_template_part("home"); } } get_footer();
function torch_favicon() { $url = torch_options_array('favicon'); $icon_link = ""; if ($url) { $type = "image/x-icon"; if (strpos($url, '.png')) { $type = "image/png"; } if (strpos($url, '.gif')) { $type = "image/gif"; } $icon_link = '<link rel="icon" href="' . esc_url($url) . '" type="' . $type . '">'; } echo $icon_link; }
get_header(); ?> <div class="breadcrumb-box"> <?php torch_get_breadcrumb(); ?> </div> <div class="blog-detail right-aside"> <div class="container"> <div class="row"> <div class="col-md-9"> <section class="blog-main text-center" role="main"> <article class="post-entry text-left"> <div class="entry-main"> <?php $page_404_content = torch_options_array('page_404_content'); echo $page_404_content; ?> </div> </article> </section> </div> <div class="col-md-3"> <aside class="blog-side left text-left"> <div class="widget-area"> <?php get_sidebar('404'); ?> </div> </aside>