';
break;
case 'twentyfifteen' :
echo '
';
break;
case 'twentyfourteen' :
echo '';
break;
case 'twentysixteen' :
echo '';
break;
default :
echo '';
break;
case 'twentytwelve' :
echo '
';
break;
case 'twentythirteen' :
echo '';
break;
}
}
/**
* Theme popular class
* @return string
*/
function mptt_popular_theme_class() {
$template = get_option('template');
switch ($template) {
case 'twentyeleven' :
$class = ' twentyeleven';
break;
case 'twentytwelve' :
$class = ' twentytwelve';
break;
case 'twentythirteen' :
$class = ' twentythirteen';
break;
case 'twentyfourteen' :
$class = ' twentyfourteen';
break;
case 'twentyfifteen' :
$class = ' twentyfifteen';
break;
case 'twentysixteen' :
$class = ' twentysixteen';
break;
default :
$class = '';
break;
}
return $class;
}
/**
* Filter post class
*
* @param $classes
* @param string $class
* @param string $post_id
*
* @return mixed
*/
function mptt_post_class($classes, $class = '', $post_id = '') {
if (!$post_id || !in_array(get_post_type($post_id), Core::get_instance()->post_types)) {
return $classes;
}
if ('mp-column' == get_post_type($post_id)) {
$classes[] = 'mp-column-item';
} elseif ('mp-event' == get_post_type($post_id)) {
$classes[] = 'mp-event-item';
}
if (!is_search() && is_single() && Settings::get_instance()->is_plugin_template_mode()) {
if (false !== ($key = array_search('hentry', $classes))) {
unset($classes[$key]);
}
}
return $classes;
}
function mptt_theme_wrapper_after() {
$template = get_option('template');
switch ($template) {
case 'twentyeleven' :
echo '