/var/www/html/wp-content/themes/total-school/framework/function/

OS : Linux

PHP Version : 7.4.33

Software : ' . '<' . esc_html($tag) . ' class="cmsmasters_post_title entry-title">' . '' . cmsmasters_title($cmsmasters_id, false) . '' . '' . ''; } if ($show) { echo $out; } else { return $out; } } /* Get Posts Heading Without Link Function */ function total_school_post_title_nolink($cmsmasters_id, $tag = 'h1', $show = true) { $out = ''; if (cmsmasters_title($cmsmasters_id, false) != $cmsmasters_id) { $out = '

' . '<' . esc_html($tag) . ' class="cmsmasters_post_title entry-title">' . cmsmasters_title($cmsmasters_id, false) . '' . '
'; } if ($show) { echo $out; } else { return $out; } } /* Get Posts Date Function */ function total_school_get_post_date($template_type = 'page', $layout_type = 'default', $show = true) { if ($template_type == 'page') { if ($layout_type == 'timeline') { $out = ''; } else { $out = ''; } if (cmsmasters_title(get_the_ID(), false) == get_the_ID()) { $out = '' . $out . ''; } } elseif ($template_type == 'post') { $cmsmasters_option = total_school_get_global_options(); $out = ''; if ($cmsmasters_option['total-school' . '_blog_post_date']) { $out = ''; } } if ($show) { echo $out; } else { return $out; } } /* Get Posts Author Function */ function total_school_get_post_author($template_type = 'page', $show = true) { if ($template_type == 'page') { $out = ''; } elseif ($template_type == 'post') { $cmsmasters_option = total_school_get_global_options(); $out = ''; if ($cmsmasters_option['total-school' . '_blog_post_author']) { $out .= ''; } } if ($show) { echo $out; } else { return $out; } } /* Get Posts Category Function */ function total_school_get_post_category($cmsmasters_id, $taxonomy, $template_type = 'page', $show = true) { $out = ''; if (get_the_terms($cmsmasters_id, $taxonomy)) { if ($template_type == 'page') { $out .= ''; } elseif ($template_type == 'post') { $cmsmasters_option = total_school_get_global_options(); if ($cmsmasters_option['total-school' . '_blog_post_cat']) { $out .= ''; } } } if ($show) { echo $out; } else { return $out; } } /* Get Posts Tags Function */ function total_school_get_post_tags($show = true) { if (get_the_tags()) { $cmsmasters_option = total_school_get_global_options(); $out = ''; if ($cmsmasters_option['total-school' . '_blog_post_tag']) { $out .= ''; } if ($show) { echo $out; } else { return $out; } } } /* Get Posts Content/Excerpt Function */ function total_school_post_exc_cont($show = true) { $out = cmsmasters_divpdel('
' . "\n" . wpautop(theme_excerpt(20, false)) . '
' . "\n"); if (theme_excerpt(20, false) != '') { if ($show) { echo $out; } else { return $out; } } } /* Get Posts Like Function */ function total_school_get_post_likes($template_type = 'page', $show = true) { $out = ''; if ($template_type == 'page') { $out = cmsmasters_like('cmsmasters_post_likes'); } elseif ($template_type == 'post') { $cmsmasters_option = total_school_get_global_options(); if ($cmsmasters_option['total-school' . '_blog_post_like']) { $out = cmsmasters_like('cmsmasters_post_likes'); } } if ($show) { echo $out; } else { return $out; } } /* Get Posts Comments Function */ function total_school_get_post_comments($template_type = 'page', $show = true) { $out = ''; if (comments_open()) { if ($template_type == 'page') { $out = total_school_get_comments('cmsmasters_post_comments'); } elseif ($template_type == 'post') { $cmsmasters_option = total_school_get_global_options(); if ($cmsmasters_option['total-school' . '_blog_post_comment']) { $out = total_school_get_comments('cmsmasters_post_comments'); } } } if ($show) { echo $out; } else { return $out; } } /* Get Posts More Button/Link Function */ function total_school_post_more($cmsmasters_id, $show = true) { $cmsmasters_post_read_more = get_post_meta($cmsmasters_id, 'cmsmasters_post_read_more', true); if ($cmsmasters_post_read_more == '') { $cmsmasters_post_read_more = esc_html__('Read More', 'total-school'); } $out = '' . esc_html($cmsmasters_post_read_more) . ''; if ($show) { echo $out; } else { return $out; } } /* Get Post Format Icon Placeholder Function */ function total_school_post_format_icon_placeholder($cmsmasters_id, $format = 'std', $show = true) { $out = '
' . '' . '
'; if ($show) { echo $out; } else { return $out; } }