Ejemplo n.º 1
0
/* -----------------------------------*/
function get_post_color($post_id = false)
{
    if (is_numeric($post_id)) {
        $color = get_post_meta($post_id, 'pure_post_color', true);
    }
    if (empty($color)) {
        $color = sprintf('#%06X', mt_rand(0, 0xffffff));
    }
    return sanitize_hex_color($color);
}
/* -----------------------------------*/
/* 		Add / Remove Actions
/* -----------------------------------*/
// Add actions
add_action('widgets_init', 'village_widgets_init');
add_action('wp_enqueue_scripts', 'village_scripts', 1000);
if (is_child_theme()) {
    add_action('wp_enqueue_scripts', 'village_scripts_child', 1001);
}
add_action('pre_get_posts', 'village_pre_get_posts', 1);
// Add Filters
add_filter('pure_print_items', 'acid_print_items', 10, 2);
// Remove Portfolio RW Meta Box if we're using Colorbox type portfolio
if (true === Village::is_enabled("colorbox", false)) {
    remove_action("admin_menu", "village_portfolio_meta");
}
// Clean your head:
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
Ejemplo n.º 2
0
		<span class="cat-links">
			<?php 
        printf(__('%1$s', 'themevillage'), $categories_list);
        ?>
		</span>
	</div>
<?php 
    }
}
// END Categories
?>


<?php 
// BEGIN Tags
if (Village::is_enabled('content_header_tags')) {
    /* translators: used between list items, there is a space after the comma */
    $tags_list = get_the_tag_list('', __(', ', 'themevillage'));
    if ($tags_list) {
        ?>
<div class="meta-cell">
	<span class="batch">&#xF0AD;</span>
	<span class="tags-links">
		<?php 
        echo $tags_list;
        ?>
	</span>
</div>
<?php 
    }
}
Ejemplo n.º 3
0
<?php

$thumbnail_above = Village::is_enabled("thumbnail_above_title", false);
if ($thumbnail_above === true) {
    get_template_part('parts/thumbnail', get_post_format());
}
?>

	<header class="entry-header">
		<h1 class="entry-title">
			<a href="<?php 
the_permalink();
?>
" title="<?php 
echo esc_attr(sprintf(__('Permalink to %s', 'puremellow'), the_title_attribute('echo=0')));
?>
" rel="bookmark"><?php 
the_title();
?>
</a></h1>		
		<?php 
if ('post' == get_post_type()) {
    ?>
			<div class="entry-meta">
				<?php 
    get_template_part('parts/header__meta');
    ?>
			</div><!-- .entry-meta -->
		<?php 
}
?>
Ejemplo n.º 4
0
">
</div>
<?php 
}
?>

	
	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main" data-color="<?php 
echo $post_color;
?>
">


			<?php 
if (Village::is_enabled('show_post_date')) {
    ?>
				<div class="entry-header--aside">
					<div class="entry-date">
						<div class="month"><?php 
    the_time("M");
    ?>
</div>
						<div class="date"><?php 
    the_time("d");
    ?>
</div>
						<div class="year"><?php 
    the_time("Y");
    ?>
</div>
Ejemplo n.º 5
0
	<?php 
}
?>

<div id="overlay" class="fixed-overlay"></div>
	<div id="ajax-popup">
		<div id="popup-arrow"></div>
		<div id="ajax-popup-content">
			<div class="entry-content"></div>
		</div>
	</div>

<?php 
$acid_options["footer_toggle"] = Village::is_enabled("footer", true);
$acid_options["auto_initial_scroll"] = Village::is_enabled("auto_initial_scroll", true);
$acid_options["blinking_arrow"] = Village::is_enabled("blinking_arrow", true);
?>

<script>
	ACID_OPTIONS_CONFIG = <?php 
echo json_encode($acid_options);
?>
;
</script>


<?php 
wp_footer();
?>
</body>
</html>