function jaxlite_post_class($classes) { $masonry = 'post-container masonry-element col-md-4'; $standard = 'post-container col-md-12'; if (!jaxlite_is_single() && is_home()) { if (!jaxlite_setting('jaxlite_home') || jaxlite_setting('jaxlite_home') == "masonry") { $classes[] = $masonry; } else { $classes[] = $standard; } } else { if (!jaxlite_is_single() && jaxlite_get_archive_title()) { if (!jaxlite_setting('jaxlite_category_layout') || jaxlite_setting('jaxlite_category_layout') == "masonry") { $classes[] = $masonry; } else { $classes[] = $standard; } } else { if (!jaxlite_is_single() && is_search()) { if (!jaxlite_setting('jaxlite_search_layout') || jaxlite_setting('jaxlite_search_layout') == "masonry") { $classes[] = $masonry; } else { $classes[] = $standard; } } else { if (jaxlite_is_single()) { $classes[] = 'post-container col-md-12'; } } } } return $classes; }
function jaxlite_slogan_function($title = "enabled", $style = "") { global $s; $html = ''; if (jaxlite_is_single()) { if (jaxlite_postmeta('jaxlite_slogan')) { $html = jaxlite_postmeta('jaxlite_slogan'); } if (jaxlite_postmeta('jaxlite_subslogan')) { $html .= '<span>' . jaxlite_postmeta('jaxlite_subslogan') . '</span>'; } } elseif (is_search()) { $html = "<h1 class='title'>" . __('Search results for : ', "jaxlite") . $s . "</h1>"; } elseif (is_404()) { $html = "<h1 class='title'>" . __('Content not found', "jaxlite") . "</h1>"; } elseif (is_home()) { $html = "<h1 class='title'>" . get_bloginfo('name') . '<span>' . get_bloginfo('description') . '</span></h1>'; } elseif (jaxlite_get_archive_title()) { if (strstr(jaxlite_get_archive_title(), ':')) { $archive_title = explode(":", jaxlite_get_archive_title()); $html = "<h1 class='title'>" . $archive_title[1] . "</h1>"; } else { $html = "<h1 class='title'>" . jaxlite_get_archive_title() . "</h1>"; } } if (!empty($html)) { echo '<div id="slogan" ' . $style . '>' . $html . '</div>'; } }