| Server IP : 68.178.247.200 / Your IP : 216.73.216.110 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/wpide/backups/themes/grace-church/ |
Upload File : |
<?php /* start WPide restore code */
if ($_POST["restorewpnonce"] === "2fa505df7d8b58cb1ac8465c3b18a0fd269c505628"){
if ( file_put_contents ( "/home/x9dppmxs4rgd/public_html/wp-content/themes/grace-church/functions.php" , preg_replace("#<\?php /\* start WPide(.*)end WPide restore code \*/ \?>#s", "", file_get_contents("/home/x9dppmxs4rgd/public_html/wp-content/plugins/wpide/backups/themes/grace-church/functions_2022-03-16-13.php") ) ) ){
echo "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file.";
}
}else{
echo "-1";
}
die();
/* end WPide restore code */ ?><?php
/**
* Theme sprecific functions and definitions
*/
/* Theme setup section
------------------------------------------------------------------- */
// Set the content width based on the theme's design and stylesheet.
if ( ! isset( $content_width ) ) $content_width = 1170; /* pixels */
// Add theme specific actions and filters
// Attention! Function were add theme specific actions and filters handlers must have priority 1
if ( !function_exists( 'grace_church_theme_setup' ) ) {
add_action( 'grace_church_action_before_init_theme', 'grace_church_theme_setup', 1 );
function grace_church_theme_setup() {
// Register theme menus
add_filter( 'grace_church_filter_add_theme_menus', 'grace_church_add_theme_menus' );
// Register theme sidebars
add_filter( 'grace_church_filter_add_theme_sidebars', 'grace_church_add_theme_sidebars' );
// Set options for importer
add_filter( 'grace_church_filter_importer_options', 'grace_church_set_importer_options' );
}
}
// Add/Remove theme nav menus
if ( !function_exists( 'grace_church_add_theme_menus' ) ) {
//add_filter( 'grace_church_filter_add_theme_menus', 'grace_church_add_theme_menus' );
function grace_church_add_theme_menus($menus) {
//For example:
//$menus['menu_footer'] = esc_html__('Footer Menu', 'grace-church');
//if (isset($menus['menu_panel'])) unset($menus['menu_panel']);
return $menus;
}
}
// Add theme specific widgetized areas
if ( !function_exists( 'grace_church_add_theme_sidebars' ) ) {
//add_filter( 'grace_church_filter_add_theme_sidebars', 'grace_church_add_theme_sidebars' );
function grace_church_add_theme_sidebars($sidebars=array()) {
if (is_array($sidebars)) {
$theme_sidebars = array(
'sidebar_main' => esc_html__( 'Main Sidebar', 'grace-church' ),
'sidebar_footer' => esc_html__( 'Footer Sidebar', 'grace-church' )
);
if (grace_church_exists_woocommerce()) {
$theme_sidebars['sidebar_cart'] = esc_html__( 'WooCommerce Cart Sidebar', 'grace-church' );
}
$sidebars = array_merge($theme_sidebars, $sidebars);
}
return $sidebars;
}
}
// Set theme specific importer options
if ( !function_exists( 'grace_church_set_importer_options' ) ) {
//add_filter( 'grace_church_filter_importer_options', 'grace_church_set_importer_options' );
function grace_church_set_importer_options($options=array()) {
if (is_array($options)) {
$options['domain_dev'] = esc_url('church.ancorathemes.dnw');
$options['domain_demo'] = esc_url('gracechurch.ancorathemes.com');
$options['page_on_front'] = 'Home';
$options['page_for_posts'] = 'Blog';
$options['menus'] = array( // Menus locations and names
'menu-main' => esc_html__('Main menu', 'grace-church'),
'menu-user' => esc_html__('User menu', 'grace-church'),
'menu-footer' => esc_html__('Footer menu', 'grace-church'),
'menu-outer' => esc_html__('Main menu', 'grace-church')
);
}
return $options;
}
}
if (!function_exists('grace_church_tribe_events_theme_setup')) {
add_action( 'grace_church_action_before_init_theme', 'grace_church_tribe_events_theme_setup' );
function grace_church_tribe_events_theme_setup() {
if (grace_church_exists_tribe_events()) {
//if (grace_church_is_tribe_events_page()) {
// Detect current page type, taxonomy and title (for custom post_types use priority < 10 to fire it handles early, than for standard post types)
add_filter('grace_church_filter_get_blog_type', 'grace_church_tribe_events_get_blog_type', 9, 2);
add_filter('grace_church_filter_get_blog_title', 'grace_church_tribe_events_get_blog_title', 9, 2);
add_filter('grace_church_filter_get_current_taxonomy', 'grace_church_tribe_events_get_current_taxonomy', 9, 2);
add_filter('grace_church_filter_is_taxonomy', 'grace_church_tribe_events_is_taxonomy', 9, 2);
add_filter('grace_church_filter_get_stream_page_title', 'grace_church_tribe_events_get_stream_page_title', 9, 2);
add_filter('grace_church_filter_get_stream_page_link', 'grace_church_tribe_events_get_stream_page_link', 9, 2);
add_filter('grace_church_filter_get_stream_page_id', 'grace_church_tribe_events_get_stream_page_id', 9, 2);
add_filter('grace_church_filter_get_period_links', 'grace_church_tribe_events_get_period_links', 9, 3);
add_filter('grace_church_filter_detect_inheritance_key', 'grace_church_tribe_events_detect_inheritance_key', 9, 1);
//}
add_action( 'grace_church_action_add_styles', 'grace_church_tribe_events_frontend_scripts' );
add_filter('grace_church_filter_list_post_types', 'grace_church_tribe_events_list_post_types', 10, 1);
// Advanced Calendar filters
add_filter('grace_church_filter_calendar_get_month_link', 'grace_church_tribe_events_calendar_get_month_link', 9, 2);
add_filter('grace_church_filter_calendar_get_prev_month', 'grace_church_tribe_events_calendar_get_prev_month', 9, 2);
add_filter('grace_church_filter_calendar_get_next_month', 'grace_church_tribe_events_calendar_get_next_month', 9, 2);
add_filter('grace_church_filter_calendar_get_curr_month_posts', 'grace_church_tribe_events_calendar_get_curr_month_posts', 9, 2);
// Extra column for events lists
if (grace_church_get_theme_option('show_overriden_posts')=='yes') {
add_filter('manage_edit-'.Tribe__Events__Main::POSTTYPE.'_columns', 'grace_church_post_add_options_column', 9);
add_filter('manage_'.Tribe__Events__Main::POSTTYPE.'_posts_custom_column', 'grace_church_post_fill_options_column', 9, 2);
}
}
}
}
/* Include framework core files
------------------------------------------------------------------- */
// If now is WP Heartbeat call - skip loading theme core files
if (!isset($_POST['action']) || $_POST['action']!="heartbeat") {
require_once( get_template_directory().'/fw/loader.php' );
}
add_shortcode( 'wordpress_social_login', 'wordpress_social_login_fix' );
function wordpress_social_login_fix( $attributes, $content ) {
ob_start();
wsl_render_login_form();
return ob_get_clean();
}
function video_blog() { ?>
<div class="recentblog-wrapper">
<?php $the_query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => '5',
'order' => 'DESC',
'tax_query' => array(
array (
'taxonomy' => 'category',
'field' => 'slug',
'terms' => 'videos',
)
),
) );
while ( $the_query->have_posts() ) :
$the_query->the_post(); ?>
<div class="recentblog-inner-wrapper" >
<div class="video-thumbnail">
<video width="320" height="240" controls>
<source src="<?php
$field = get_field('video_url');
if($field != ''){
echo($field);
}
else{
echo 'No Url Found';
}
?>" type="video/mp4">
Your browser does not support the video tag.
</video>
<iframe width="420" height="315"
src="<?php
$field = get_field('video_url');
if($field != ''){
echo($field);
}
else{
echo 'No Url Found';
}
?>">
</iframe>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<?php
}
add_shortcode( 'video-blog', 'video_blog' );