Exemplo n.º 1
0
function m3_custom_login_logo()
{
    echo '<style type="text/css">

        h1 a { background-image:url(' . get_option_mmtheme('custom_logo_value') . ') !important;   height: 110px !important; }

     </style>';
}
Exemplo n.º 2
0
	
	
	

<?php 
    get_template_part('content', 'single');
    ?>


<?php 
    if (get_option_mmtheme('ad_4_on_off') == 'true') {
        ?>
 
<div class="ad-4">
<?php 
        echo stripslashes(get_option_mmtheme('ad_4'));
        ?>
  		
</div>
<?php 
    }
    ?>
 
	
<?php 
    if (function_exists('about_this_author')) {
        echo about_this_author();
    }
    ?>

 
        ?>
 
<div class="single-related-big">  
<div class="cat-links-holder-single"><?php 
        _e("Related Posts", "mm");
        ?>
 </div> 
<div class="single-related-big-wrapper">
<?php 
        $categories = get_the_category($post->ID);
        if ($categories) {
            $category_ids = array();
            foreach ($categories as $individual_category) {
                $category_ids[] = $individual_category->term_id;
            }
            $args = array('category__in' => $category_ids, 'post__not_in' => array($post->ID), 'showposts' => get_option_mmtheme('relatedpost_number'), 'ignore_sticky_posts' => 1);
            $my_query = new WP_Query($args);
            if ($my_query->have_posts()) {
                while ($my_query->have_posts()) {
                    $my_query->the_post();
                    ?>
	<div class="related-left-big">
 	<div class="relatedpost">
            <a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    the_post_thumbnail('secondpostimg');
                    ?>
</a>
<h3><a href="<?php 
Exemplo n.º 4
0
						<div class="cb"> </div> 	 	 



</div><!-- #bottomfooter -->

</div>

</div><!-- footer3-wrapper -->

</div><!-- #footer -->

  

<?php 
wp_footer();
?>

<?php 
echo stripslashes(get_option_mmtheme('track_code'));
?>
   

<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=xa-508dd6f042d9364c"></script>

</body>

</html>

Exemplo n.º 5
0
function mmtheme_get_favicon()
{
    global $shortname;
    if (get_option_mmtheme('favicon_value') != '') {
        $output = '<link rel="shortcut icon" href="' . get_option_mmtheme('favicon_value') . '"/>';
    } else {
        $output = '';
    }
    echo $output;
}
function m3_indexing()
{
    global $post;
    global $wpdb;
    if (!empty($post)) {
        $post_id = $post->ID;
    }
    /* Robots */
    $index = 'index';
    $follow = 'follow';
    if (is_tag() && get_option_mmtheme('seo_index_tag') != 'index') {
        $index = 'noindex';
    } elseif (is_search() && get_option_mmtheme('seo_index_search') != 'index') {
        $index = 'noindex';
    } elseif (is_author() && get_option_mmtheme('seo_index_author') != 'index') {
        $index = 'noindex';
    } elseif (is_date() && get_option_mmtheme('seo_index_date') != 'index') {
        $index = 'noindex';
    } elseif (is_category() && get_option_mmtheme('seo_index_category') != 'index') {
        $index = 'noindex';
    }
    echo '<meta name="robots" content="' . $index . ', ' . $follow . '" />' . "\n";
}
Exemplo n.º 7
0
<?php

if (get_option_mmtheme('featured_slider') == 'true') {
    ?>
 

<div class="featured-news-area">

							<ul class="items-list bottom-block">
 <?php 
    if ($paged < 2 and get_option_mmtheme('featured_slider') == 'true') {
        $query = new WP_Query();
        $query->query('cat=' . get_option('slider_cats_area') . '&ignore_sticky_posts=1&posts_per_page=1');
        if ($query->have_posts()) {
            while ($query->have_posts()) {
                $query->the_post();
                ?>
  

								<li>

									<!-- item03 -->

									<article class="item03">  

        								<?php 
                get_template_part('small-starscore');
                ?>
 

										<!-- description -->