static function home()
 {
     $rett = '<li id="home-label">';
     $rett .= '<a href="' . esc_url(home_url('/')) . '" title="' . esc_attr(mythemes_mod('home-link-description', __('go to home', 'treeson'))) . '">';
     $rett .= '<i class="icon-home"></i> <span>' . esc_html(mythemes_mod('home-label', __('Home', 'treeson'))) . '</span>';
     $rett .= '</a>';
     $rett .= '</li>';
     return $rett;
 }
 function get($setting, $template)
 {
     $rett = '';
     switch ($template) {
         case 'front-page':
         case 'post':
         case 'page':
         case 'special-page':
             $rett = esc_attr(mythemes_mod($template . '-' . $setting, $this->deff[$setting][$template]));
             break;
         default:
             $rett = esc_attr(mythemes_mod($setting, $this->deff[$setting]['default']));
             break;
     }
     return $rett;
 }
Example #3
0
<?php

global $post, $wp_customize;
if (isset($wp_customize)) {
    $top_meta = true;
    $classes = !(bool) mythemes_mod('top-meta', true) ? 'hidden' : '';
} else {
    $top_meta = (bool) mythemes_mod('top-meta', true);
    $classes = '';
}
if ($top_meta) {
    ?>
        <div class="mythemes-top-meta meta <?php 
    echo esc_attr($classes);
    ?>
">

            <!-- GET FIRST 2 CATEGORIES -->
            <?php 
    the_category();
    ?>

            <!-- AUTHOR -->
            <?php 
    $name = get_the_author_meta('display_name', $post->post_author);
    ?>
            <a class="author" href="<?php 
    echo esc_url(get_author_posts_url($post->post_author));
    ?>
" title="<?php 
    echo sprintf(__('Writed by %s', 'treeson'), esc_attr($name));
Example #4
0
<?php

get_header();
?>

    <?php 
global $wp_query, $wp_customize;
if (isset($wp_customize)) {
    $breadcrumbs = true;
    $classes = !(bool) mythemes_mod('breadcrumbs', true) ? 'hidden' : '';
} else {
    $breadcrumbs = (bool) mythemes_mod('breadcrumbs', true);
    $classes = '';
}
if ($breadcrumbs) {
    ?>
            <div class="mythemes-page-header <?php 
    echo esc_attr($classes);
    ?>
">

                <div class="container">
                    <div class="row">

                        <div class="col-sm-8 col-md-9 col-lg-9">
                            <nav class="mythemes-nav-inline">
                                <ul class="mythemes-menu">
                                    <?php 
    echo mythemes_breadcrumbs::home();
    ?>
Example #5
0
<?php

global $wp_customize;
$default_class = '';
/* WP CUSTOMIZE */
if (isset($wp_customize)) {
    $default = true;
    $default_class = !(bool) mythemes_mod('default-content', true) ? 'hidden' : '';
} else {
    $default = (bool) mythemes_mod('default-content', true);
}
/* SIDEBAR */
if (dynamic_sidebar('main')) {
    /* IF NOT EMPTY */
} else {
    if ($default) {
        /* SEARCH */
        echo '<div class="widget widget_search mythemes-default-content ' . esc_attr($default_class) . '">';
        get_template_part('searchform');
        echo '</div>';
        /* TAGS */
        $tags = get_tags();
        if (!empty($tags)) {
            echo '<div id="tag_cloud" class="widget widget_tag_cloud mythemes-default-content ' . esc_attr($default_class) . '">';
            echo '<h4 class="widget-title"><i></i>' . __('Tags', 'treeson') . '</h4>';
            echo '<div class="tagcloud">';
            foreach ($tags as $t => $tag) {
                $tag_url = get_tag_link($tag->term_id);
                if (is_wp_error($tag_url)) {
                    continue;
                }
Example #6
0
<?php

global $wp_customize;
if (isset($wp_customize)) {
    $bottom_meta = true;
    $classes = !(bool) mythemes_mod('bottom-meta', true) ? 'hidden' : '';
} else {
    $bottom_meta = (bool) mythemes_mod('bottom-meta', true);
    $classes = '';
}
if ($bottom_meta) {
    if (has_tag()) {
        ?>
	        <div class="post-meta-terms <?php 
        echo esc_attr($classes);
        ?>
">
	            <div class="post-meta-tags">
	                <span class="btn"><i class="icon-tags"></i></span>
	                <?php 
        the_tags('', '', '');
        ?>
	                <div class="clear clearfix"></div>
	            </div>
	        </div>
<?php 
    }
}
 static function setup()
 {
     $args = array('default-image' => get_template_directory_uri() . '/media/img/bkg.jpg', 'random-default' => false, 'width' => 2600, 'height' => absint(mythemes_mod('header-height', 350)), 'flex-height' => true, 'flex-width' => true, 'default-text-color' => 'ffffff', 'header-text' => true, 'uploads' => true);
     add_theme_support('custom-header', $args);
 }
Example #8
0
            $show_header = true;
            $mythemes_header_class = 'on-blog-page';
        } else {
            if ($is_blog_page && !$on_blog_page) {
                $show_header = false;
                $mythemes_header_class = 'on-blog-page';
            } else {
                if (is_singular('post')) {
                    $show_header = mythemes_mod('header-single-posts', true);
                    $mythemes_header_class = 'on-single-posts';
                } else {
                    if (is_singular('page') && !$is_front_page) {
                        $show_header = mythemes_mod('header-single-pages', true);
                        $mythemes_header_class = 'on-single-pages';
                    } else {
                        $show_header = mythemes_mod('header-templates', true);
                        $mythemes_header_class = 'on-templates';
                    }
                }
            }
        }
    }
}
/* CUSTOMIZER */
if (isset($wp_customize)) {
    if (!$show_header) {
        $mythemes_header_class .= ' hidden';
        $show_header = true;
    }
}
if ($show_header) {
Example #9
0
} else {
    /* HEADER LOGO */
    $header_logo_ = esc_url(mythemes_mod('logo'));
    $header_logo = !empty($header_logo_);
    $header_logo_class = '';
    /* HEADER TITLE */
    $header_title = (bool) mythemes_mod('header-title', true);
    $header_title_class = '';
    /* HEADER DESCRIPTION */
    $header_desc = (bool) mythemes_mod('header-description', true);
    $header_desc_class = '';
    /* HEADER FIRST BUTTON */
    $first_btn = (bool) mythemes_mod('first-btn', true);
    $first_btn_class = '';
    /* HEADER SECOND BUTTON */
    $second_btn = (bool) mythemes_mod('second-btn', true);
    $second_btn_class = '';
}
?>

<div class="mythemes-header overflow-wrapper parallax-container <?php 
echo esc_attr($mythemes_header_class);
?>
" style="height: <?php 
echo absint($header_height);
?>
px;">
    <div class="valign-cell-wrapper" style="background: rgba( <?php 
echo mythemes_tools::hex2rgb(esc_attr($header_mask_color));
?>
, <?php 
Example #10
0
}
?>

            <div class="mythemes-black-side">
                <div class="container mythemes-copyright">
                    <div class="row">
                        <div class="col-sm-6 col-md-6 col-lg-6">
                           <p>Text me @ 828.275.7744</p>
                        </div>
                        <?php 
if (isset($wp_customize)) {
    $facebook = esc_url(mythemes_mod('facebook', 'https://www.facebook.com/will.thibodeau.33'));
    $fb_class = empty($facebook) ? 'hidden' : '';
    $facebook = empty($facebook) ? esc_url(home_url()) : $facebook;
} else {
    $facebook = esc_url(mythemes_mod('facebook', 'https://www.facebook.com/will.thibodeau.33'));
    $fb_class = '';
}
?>
                        <div class="col-sm-6 col-md-6 col-lg-6">
                            <div class="mythemes-social">
                                <?php 
if (!empty($facebook)) {
    echo '<a href="' . esc_url($facebook) . '" class="icon-facebook ' . esc_attr($fb_class) . '" target="_blank"></a>';
}
?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
Example #11
0
    a,

    /* WIDGETS */
    div.widget ul li a:hover,
    div.widget_calendar table td a:hover,
    div.widget_categories ul li a:hover,
    div.widget_recent_comments_with_avatar ul li h5 a:hover{
        color: <?php 
echo $link_3;
?>
;
    }

    /* POST TITLE HEADLINE */
    .hentry h2 a:hover,
    article h2 a:hover{
        color: <?php 
echo $color_3;
?>
;
    }

</style>

<style type="text/css" id="mythemes-custom-css">

    <?php 
echo mythemes_validate_css(mythemes_mod('custom-css'));
?>

</style>
Example #12
0
    if (esc_attr($commenter['comment_author_url'])) {
        $web = esc_attr($commenter['comment_author_url']);
    } else {
        $web = __('Website', 'treeson');
    }
    /* FIELDS */
    $fields = array('author' => '<div class="field">' . '<p class="comment-form-author input">' . '<input class="required span7" value="' . $name . '" onfocus="if (this.value == \'' . __('Nickname ( required )', 'treeson') . '\') {this.value = \'\';}" onblur="if (this.value == \'\' ) { this.value = \'' . __('Nickname ( required )', 'treeson') . '\';}" id="author" name="author" type="text" size="30"  />' . '</p>', 'email' => '<p class="comment-form-email input">' . '<input class="required span7" value="' . $email . '" onfocus="if (this.value == \'' . __('E-mail ( required )', 'treeson') . '\') {this.value = \'\';}" onblur="if (this.value == \'\' ) { this.value = \'' . __('E-mail ( required )', 'treeson') . '\';}" id="email" name="email" type="text" size="30" />' . '</p>', 'url' => '<p class="comment-form-url input">' . '<input class="span7" value="' . $web . '" onfocus="if (this.value == \'' . __('Website', 'treeson') . '\') {this.value = \'\';}" onblur="if (this.value == \'\' ) { this.value = \'' . __('Website', 'treeson') . '\';}" id="url" name="url" type="text" size="30" />' . '</p></div>');
    $rett = '<div class="textarea row-fluid"><p class="comment-form-comment textarea user-not-logged-in">';
    $rett .= '<textarea id="comment" name="comment" cols="45" rows="10" class="span12" aria-required="true"></textarea>';
    $rett .= '</p></div>';
    global $wp_customize;
    if (isset($wp_customize)) {
        $html = true;
        $classes = !(bool) mythemes_mod('html-suggestions', true) ? 'hidden' : '';
    } else {
        $html = (bool) mythemes_mod('html-suggestions', true);
        $classes = '';
    }
    if ($html) {
        $rett .= '<div class="mythemes-html-suggestions ' . esc_attr($classes) . '">';
        $rett .= '<p class="comment-notes">' . __('You may use these HTML tags and attributes', 'treeson') . ':</p>';
        $rett .= '<pre>';
        $rett .= htmlspecialchars('<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>');
        $rett .= '</pre>';
        $rett .= '</div>';
    }
    $args = array('title_reply' => __("Leave a reply", 'treeson'), 'comment_notes_after' => '', 'comment_notes_before' => '<button type="submit" class="btn submit-comment">' . __('Comment', 'treeson') . '</button><p class="comment-notes">' . __('Your email address will not be published.', 'treeson') . '</p>', 'logged_in_as' => '<button type="submit" class="btn submit-comment">' . __('Comment', 'treeson') . '</button><p class="logged-in-as">' . __('Logged in as', 'treeson') . ' <a href="' . esc_url(home_url('/wp-admin/profile.php')) . '">' . get_the_author_meta('nickname', get_current_user_id()) . '</a>. <a href="' . esc_url(wp_logout_url(esc_url(get_permalink($post->ID)))) . '" title="' . __('Log out of this account', 'treeson') . '">' . __('Log out?', 'treeson') . ' </a></p>', 'fields' => apply_filters('comment_form_default_fields', $fields), 'comment_field' => $rett, 'label_submit' => __('Comment', 'treeson'));
    comment_form($args);
    echo '<div class="clearfix"></div>';
    echo '</div>';
}
Example #13
0
">

		      	<div class="container">
		        	<div class="row">

		          		<div class="col-sm-8 col-md-9 col-lg-9">
		            		<nav class="mythemes-nav-inline">
		              			<ul class="mythemes-menu">
		                			<?php 
    echo mythemes_breadcrumbs::home();
    ?>
		                			<li></li>
		              			</ul>
		            		</nav>
		            		<h1 id="blog-title"><?php 
    echo esc_html(mythemes_mod('blog-title', __('Blog', 'treeson')));
    ?>
</h1>
		          		</div>

		          		<div class="col-sm-4 col-md-3 col-lg-3 mythemes-posts-found">
		                    <div class="found-details">
		                        <?php 
    echo mythemes_breadcrumbs::count($wp_query);
    ?>
		                    </div>
		                </div>

		        	</div>
		      	</div>
Example #14
0
                            </div>
                        </div>
                    </div>

                </div>
        <?php 
        }
        ?>
            <div class="content">
                <div class="container">
                    <div class="row">

                    <?php 
        global $mythemes_layout;
        $settings = 'page';
        if (mythemes_mod('special-page', 2) == $post->ID) {
            $settings = 'special-page';
        }
        /* GET LAYOUT DETAILS */
        $mythemes_layout = new mythemes_layout($settings);
        /* LEFT SIDEBAR */
        $mythemes_layout->sidebar('left');
        ?>
                        <!-- CONTENT -->
                        <section class="<?php 
        echo $mythemes_layout->classes();
        ?>
">

                        <?php 
        /* LEFT WRAPPER */