| Server IP : 68.178.247.200 / Your IP : 216.73.217.50 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/www/wp-content/themes/grace-church/templates/trx_blogger/ |
Upload File : |
<?php
// Disable direct call
if ( ! defined( 'ABSPATH' ) ) { exit; }
/* Theme setup section
-------------------------------------------------------------------- */
if ( !function_exists( 'grace_church_template_list_theme_setup' ) ) {
add_action( 'grace_church_action_before_init_theme', 'grace_church_template_list_theme_setup', 1 );
function grace_church_template_list_theme_setup() {
grace_church_add_template(array(
'layout' => 'list',
'mode' => 'blogger',
'need_columns' => true,
'title' => esc_html__('Blogger layout: List', 'grace-church')
));
}
}
// Template output
if ( !function_exists( 'grace_church_template_list_output' ) ) {
function grace_church_template_list_output($post_options, $post_data) {
$columns = max(1, min(12, $post_options['columns_count']));
echo '<li class="sc_blogger_item sc_list_item'
. ( $columns > 1 ? ' column-1_'.esc_attr($columns) : '')
. ( $post_data['post_type'] == 'tribe_events' ? ' event_item' : '')
.'">';
if ( $post_data['post_type'] == 'tribe_events' && function_exists('tribe_get_template_part') ){
require(grace_church_get_file_dir('tribe-events/venue-for-blogger-list.php'));
}
$title = '<div class="sc_list_item_content">'
. (!isset($post_options['links']) || $post_options['links'] ? '<a href="' . esc_url($post_data['post_link']) . '">' : '')
. ( $post_data['post_type'] != 'tribe_events' ? '<span class="sc_list_icon '.($post_data['post_icon'] ? $post_data['post_icon'] : 'icon-right').'"></span>' : '')
. '<span class="sc_list_title">'.($post_data['post_title']).'</span>'
. (!isset($post_options['links']) || $post_options['links'] ? '</a>' : '')
. '</div>';
echo ($title);
?>
<div class="button">
<?php echo do_shortcode('[trx_button type="square" style="border" size="large" icon="inherit" link="' . esc_url($post_data['post_link']) . '" popup="no"]' . esc_html__("Read more", 'grace-church') . '[/trx_button]'); ?>
</div>
<?php
echo '</li>';
}
}
?>