OS : Linux
PHP Version : 7.4.33
Software : ' .
'<' . esc_html($tag) . ' class="cmsmasters_post_title entry-title">' .
'' . cmsmasters_title($cmsmasters_id, false) . '' .
'' . esc_html($tag) . '>' .
'';
}
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 = '';
}
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 = '' .
'' .
'' . esc_html(get_the_date('d')) . '' .
'' . esc_html(get_the_date('M')) . '' .
'' .
'' .
esc_html(get_the_modified_date()) .
'' .
'';
} else {
$out = '' .
esc_html__('On', 'total-school') . ' ' .
'' .
'' . esc_html(get_the_date('F d')) . '' . ', ' .
'' . esc_html(get_the_date('Y')) . '' .
'' .
'' .
esc_html(get_the_modified_date()) .
'' .
'';
}
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 = '' .
esc_html__('Date:', 'total-school') . ' ' .
'' .
'' . esc_html(get_the_date('F d')) . '' . ', ' .
'' . esc_html(get_the_date('Y')) . '' .
'' .
'' .
esc_html(get_the_modified_date()) .
'' .
'';
}
}
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 = '' .
'' . esc_html__('Auteur :', 'total-school') . '' .
'' .
'' . esc_html(get_the_author_meta('display_name')) . '' .
'' .
'';
} elseif ($template_type == 'post') {
$cmsmasters_option = total_school_get_global_options();
$out = '';
if ($cmsmasters_option['total-school' . '_blog_post_author']) {
$out .= '' .
'' . esc_html__('Auteur :', 'total-school') . '' .
'' .
'' . esc_html(get_the_author_meta('display_name')) . '' .
'' .
'';
}
}
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 .= '' .
'' . esc_html__('Catégorie :', 'total-school') . '' .
total_school_get_the_category_list($cmsmasters_id, $taxonomy, ', ') .
'';
} elseif ($template_type == 'post') {
$cmsmasters_option = total_school_get_global_options();
if ($cmsmasters_option['total-school' . '_blog_post_cat']) {
$out .= '' .
'' . esc_html__('Catégorie :', 'total-school') . '' .
total_school_get_the_category_list($cmsmasters_id, $taxonomy, ', ') .
'';
}
}
}
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 .= '' .
get_the_tag_list('', '', '') .
'';
}
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;
}
}