' . "\n";
// Check if logo available, then display it.
if ($logo_id) :
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
// If not, then display the Site Title
else :
echo '
' . esc_attr(get_bloginfo('description')) . '
'; // closing wrapper echo '' . "\n"; } endif; if (!function_exists('avish_social_icons')) : /** * Header social */ function avish_social_icons($position = 'header') { // Get the customizer data $tw = avish_mod(PREFIX . 'twitter'); $fb = avish_mod(PREFIX . 'facebook'); $gplus = avish_mod(PREFIX . 'gplus'); $instagram = avish_mod(PREFIX . 'instagram'); $pinterest = avish_mod(PREFIX . 'pinterest'); $linkedin = avish_mod(PREFIX . 'linkedin'); $tumblr = avish_mod(PREFIX . 'tumblr'); $rss = avish_mod(PREFIX . 'rss'); // Display the data if ($tw || $fb || $gplus || $instagram || $pinterest || $tumblr || $rss) { echo ''; } } endif; if (!function_exists('avish_posted_on')) : /** * Prints HTML with meta information for the current post-date/time and author. * * @since 1.0.0 */ function avish_posted_on() { // Get the date style (from Single Posts) $date_style = avish_mod(PREFIX . 'post-date-style'); ?> 'ids', 'hide_empty' => 1, // We only need to know if there is more than one category. 'number' => 2, )); // Count the number of categories that are attached to the posts. $all_the_cool_cats = count($all_the_cool_cats); set_transient('avish_categories', $all_the_cool_cats); } if ($all_the_cool_cats > 1) { // This blog has more than 1 category so avish_categorized_blog should return true. return true; } else { // This blog has only 1 category so avish_categorized_blog should return false. return false; } } /** * Flush out the transients used in avish_categorized_blog. * * @since 1.0.0 */ function avish_category_transient_flusher() { if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return; } // Like, beat it. Dig? delete_transient('avish_categories'); } add_action('edit_category', 'avish_category_transient_flusher'); add_action('save_post', 'avish_category_transient_flusher'); if (!function_exists('avish_entry_share')) : /** * Social share. * * @since 1.0.0 */ function avish_entry_share() { // Get the data set in customizer $share = avish_mod(PREFIX . 'post-share'); if (!$share) { return; } ?>> > ', ''); ?>