/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
$cachedMoObjects = isset( self::$globals_cache[ $new_locale ]['l10n'] )
? self::$globals_cache[ $new_locale ]['l10n']
: [];
/**
* The JustInTimeMO objects will replaced themselves on the fly
* by the legacy default MO object if a string is translated.
* This is because the function "_load_textdomain_just_in_time"
* does not support the default domain and MO files outside the
* "wp-content/languages" folder.
*/
$GLOBALS['l10n'] = $this->jit_mo_factory->get( $new_locale, $this->getUnloadedDomains(), $cachedMoObjects );
}
private function resetTranslationAvailabilityInformation() {
global $wp_textdomain_registry;
if ( $wp_textdomain_registry ) {
$wp_textdomain_registry->reset();
} elseif ( function_exists( '_get_path_to_translation' ) ) {
_get_path_to_translation( null, true );
}
}
/**
* @param string $locale
*
* @return string
*/
public function filterLocale( $locale ) {
$currentLocale = $this->getCurrentLocale();
if ( $currentLocale ) {
return $currentLocale;
}
return $locale;
}
Arguments
"Call to undefined method WP_Textdomain_Registry::reset()"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
* @param string $new_locale
*/
private function changeWpLocale( $new_locale ) {
if ( isset( self::$globals_cache[ $new_locale ]['wp_locale'] ) ) {
$GLOBALS['wp_locale'] = self::$globals_cache[ $new_locale ]['wp_locale'];
} else {
/**
* WPLocaleProxy is a wrapper of \WP_Locale with a kind of lazy initialization
* to avoid loading the default domain for strings that
* we don't use in this transitory language.
*/
$GLOBALS['wp_locale'] = new WPLocaleProxy();
}
}
/**
* @param string $new_locale
*/
private function changeMoObjects( $new_locale ) {
$this->resetTranslationAvailabilityInformation();
$cachedMoObjects = isset( self::$globals_cache[ $new_locale ]['l10n'] )
? self::$globals_cache[ $new_locale ]['l10n']
: [];
/**
* The JustInTimeMO objects will replaced themselves on the fly
* by the legacy default MO object if a string is translated.
* This is because the function "_load_textdomain_just_in_time"
* does not support the default domain and MO files outside the
* "wp-content/languages" folder.
*/
$GLOBALS['l10n'] = $this->jit_mo_factory->get( $new_locale, $this->getUnloadedDomains(), $cachedMoObjects );
}
private function resetTranslationAvailabilityInformation() {
global $wp_textdomain_registry;
if ( $wp_textdomain_registry ) {
$wp_textdomain_registry->reset();
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
$this->setCurrentLocale( $this->language_resolution->getCurrentLocale() );
}
}
/**
* This method will act as the WP Core function `switch_to_locale`,
* but in a more efficient way. It will avoid to instantly load
* the domains loaded in the previous locale. Instead, it will let
* the domains be loaded via the "just in time" function.
*
* @param string $new_locale
*/
public function switchToLocale( $new_locale ) {
if ( $new_locale === $this->getCurrentLocale() ) {
return;
}
$this->updateCurrentGlobalsCache();
$this->changeWpLocale( $new_locale );
$this->changeMoObjects( $new_locale );
$this->setCurrentLocale( $new_locale );
}
/**
* @param string|null $locale
*/
public static function resetCache( $locale = null ) {
self::$current_locale = $locale;
self::$globals_cache = [];
}
/**
* We need to take a new copy of the current locale globals
* because some domains could have been added with the "just in time"
* mechanism.
*/
private function updateCurrentGlobalsCache() {
$cache = [
'wp_locale' => isset( $GLOBALS['wp_locale'] ) ? $GLOBALS['wp_locale'] : null,
'l10n' => isset( $GLOBALS['l10n'] ) ? (array) $GLOBALS['l10n'] : [],
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/wpml-string-translation
/classes
/MO
/Hooks
/LanguageSwitch.php
}
public function add_hooks() {
add_action( 'wpml_language_has_switched', [ $this, 'languageHasSwitched' ] );
}
/** @param string $locale */
private function setCurrentLocale( $locale ) {
self::$current_locale = $locale;
}
/** @return string */
public function getCurrentLocale() {
return self::$current_locale;
}
public function languageHasSwitched() {
$this->initCurrentLocale();
$new_locale = $this->language_resolution->getCurrentLocale();
$this->switchToLocale( $new_locale );
}
public function initCurrentLocale() {
if ( ! $this->getCurrentLocale() ) {
add_filter( 'locale', [ $this, 'filterLocale' ], PHP_INT_MAX );
$this->setCurrentLocale( $this->language_resolution->getCurrentLocale() );
}
}
/**
* This method will act as the WP Core function `switch_to_locale`,
* but in a more efficient way. It will avoid to instantly load
* the domains loaded in the previous locale. Instead, it will let
* the domains be loaded via the "just in time" function.
*
* @param string $new_locale
*/
public function switchToLocale( $new_locale ) {
if ( $new_locale === $this->getCurrentLocale() ) {
return;
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/class-wp-hook.php
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
null
array:3 [
0 => "en"
1 => false
2 => "en"
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
Arguments
array:3 [
0 => "en"
1 => false
2 => "en"
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/sitepress.class.php
$this->set_this_lang( $this->original_language );
if ( ! empty( $this->original_language_cookie ) ) {
$wpml_request_handler->set_language_cookie( $this->original_language_cookie );
$this->original_language_cookie = false;
}
} else {
if ( $code === 'all' || in_array( $code, $wpml_language_resolution->get_active_language_codes(), true ) ) {
$this->set_this_lang( $code );
}
if ( $cookie_lang ) {
$this->original_language_cookie = $wpml_request_handler->get_cookie_lang();
$wpml_request_handler->set_language_cookie( $code );
}
}
if ( $code ) {
$GLOBALS['icl_language_switched'] = true;
} else {
unset( $GLOBALS['icl_language_switched'] );
}
do_action( 'wpml_language_has_switched', $code, $cookie_lang, $this->original_language );
}
function set_default_language( $code ) {
$previous_default = $this->get_setting( 'default_language' );
$this->set_setting( 'default_language', $code );
$this->set_setting( 'admin_default_language', $code );
$this->save_settings();
do_action( 'icl_after_set_default_language', $code, $previous_default );
// change WP locale
$locale = $this->get_locale( $code );
if ( $locale ) {
update_option( 'WPLANG', $locale );
}
$user_language = new WPML_User_Language( $this );
$user_language->sync_default_admin_user_languages();
return $code !== 'en' && ! file_exists( WP_LANG_DIR . '/' . $locale . '.mo' ) ? 1 : true;
Arguments
"wpml_language_has_switched"
"en"
false
"en"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/sitepress.class.php
$this->switch_lang( $current_language );
} else {
$translated_url = $display_as_translated_ls_link->get_url( $translations, $lang['code'] );
if ( $translated_url ) {
$lang['translated_url'] = $translated_url;
} else {
if ( $icl_lso_link_empty ) {
if ( ! empty( $link_empty_to ) ) {
$lang['translated_url'] = str_replace( '{%lang}', $lang['code'], $link_empty_to );
} else {
$lang['translated_url'] = $this->language_url( $lang['code'], true );
}
} else {
$skip_lang = true;
}
}
$lang['missing'] = 1;
}
}
$this->switch_lang( $this_lang_tmp );
} elseif ( is_category() || is_tax() || is_tag() ) {
global $icl_adjust_id_url_filter_off;
$icl_adjust_id_url_filter_off = true;
list( $lang, $skip_lang ) = $languages_helper->add_tax_url_to_ls_lang(
$lang,
$translations,
$icl_lso_link_empty,
$skip_lang,
$link_empty_to,
$display_as_translated_ls_link
);
$icl_adjust_id_url_filter_off = false;
} elseif ( is_author() ) {
global $authordata;
if ( empty( $authordata ) ) {
$authordata = get_userdata( get_query_var( 'author' ) );
}
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/plugins
/sitepress-multilingual-cms
/classes
/class-wpml-browser-redirect.php
public function init_hooks() {
add_action( 'init', array( $this, 'init' ) );
}
public function init() {
if ( ! isset( $_GET['redirect_to'] ) &&
! is_admin() && ! is_customize_preview() &&
( ! isset( $_SERVER['REQUEST_URI'] ) || ! preg_match( '#wp-login\.php$#', preg_replace( '@\?(.*)$@', '', $_SERVER['REQUEST_URI'] ) ) )
) {
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
}
}
public function enqueue_scripts() {
wp_register_script( 'wpml-browser-redirect', ICL_PLUGIN_URL . '/dist/js/browser-redirect/app.js', array(), ICL_SITEPRESS_VERSION );
$args['skip_missing'] = intval( $this->sitepress->get_setting( 'automatic_redirect' ) == 1 );
// Build multi language urls array
$languages = $this->sitepress->get_ls_languages( $args );
$language_urls = [];
foreach ( $languages as $language ) {
if ( isset( $language['default_locale'] ) && $language['default_locale'] ) {
$default_locale = strtolower( $language['default_locale'] );
$language_urls[ $default_locale ] = $language['url'];
$language_parts = explode( '_', $default_locale );
if ( count( $language_parts ) > 1 ) {
foreach ( $language_parts as $language_part ) {
if ( ! isset( $language_urls[ $language_part ] ) ) {
$language_urls[ $language_part ] = $language['url'];
}
}
}
}
$language_urls[ $language['language_code'] ] = $language['url'];
}
// Cookie parameters
$http_host = $_SERVER['HTTP_HOST'] == 'localhost' ? '' : $_SERVER['HTTP_HOST'];
$cookie = array(
'name' => '_icl_visitor_lang_js',
Arguments
array:1 [
"skip_missing" => 1
]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/script-loader.php
* @since 2.8.0
*/
do_action( 'wp_print_footer_scripts' );
}
/**
* Wrapper for do_action( 'wp_enqueue_scripts' ).
*
* Allows plugins to queue scripts for the front end using wp_enqueue_script().
* Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.
*
* @since 2.8.0
*/
function wp_enqueue_scripts() {
/**
* Fires when scripts and styles are enqueued.
*
* @since 2.8.0
*/
do_action( 'wp_enqueue_scripts' );
}
/**
* Prints the styles queue in the HTML head on admin pages.
*
* @since 2.8.0
*
* @global bool $concatenate_scripts
*
* @return array
*/
function print_admin_styles() {
global $concatenate_scripts;
$wp_styles = wp_styles();
script_concat_settings();
$wp_styles->do_concat = $concatenate_scripts;
$wp_styles->do_items( false );
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/general-template.php
* @param string $before The HTML to output before the date.
* @param string $after The HTML to output after the date.
*/
echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
}
/**
* Fires the wp_head action.
*
* See {@see 'wp_head'}.
*
* @since 1.2.0
*/
function wp_head() {
/**
* Prints scripts or data in the head tag on the front end.
*
* @since 1.5.0
*/
do_action( 'wp_head' );
}
/**
* Fires the wp_footer action.
*
* See {@see 'wp_footer'}.
*
* @since 1.5.1
*/
function wp_footer() {
/**
* Prints scripts or data before the closing body tag on the front end.
*
* @since 1.5.1
*/
do_action( 'wp_footer' );
}
/**
* Fires the wp_body_open action.
Arguments
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/themes
/publisher
/views
/general
/header
/_common.php
<html class="ie ie8" <?php echo $lang_attributes; ?>> <![endif]-->
<!--[if IE 9]>
<html class="ie ie9" <?php echo $lang_attributes; ?>> <![endif]-->
<!--[if gt IE 9]><!-->
<html <?php echo $lang_attributes; ?>> <!--<![endif]-->
<head>
<?php
// GTM After <head> code
if ( publisher_get_option( 'gtm_head' ) ) {
echo publisher_get_option( 'gtm_head' );
}
?>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"/>
<?php wp_head(); ?>
</head>
<body <?php publisher_attr( 'body' ); ?>>
<?php
// GTM After <body> code
if ( publisher_get_option( 'gtm_body' ) ) {
echo publisher_get_option( 'gtm_body' );
}
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/themes
/publisher
/includes
/libs
/bs-theme-core
/theme-helpers
/core.php
// Fallback to general file
if ( $style != 'general' ) {
$templates[] = 'views/general/' . $file . '.php';
} else {
$templates[] = 'views/' . $style . '/' . $file . '.php';
}
}
$cached_path[ $file_id ] = locate_template( $templates, false, false );
}
if ( $echo == false ) {
ob_start();
}
// do_action( 'publisher-theme-core/view/before/' . $file );
if ( ! empty( $cached_path[ $file_id ] ) ) {
include $cached_path[ $file_id ];
}
// do_action( 'publisher-theme-core/view/after/' . $file );
if ( $echo == false ) {
return ob_get_clean();
}
} // publisher_get_view
}
//
//
// Blocks properties
//
//
if ( ! function_exists( 'publisher_get_prop' ) ) {
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/themes/publisher/views/general/header/_common.php"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/themes
/publisher
/header.php
<?php
/**
* header.php
*
* The template for displaying the header.
*
* @author BetterStudio
* @package Publisher
* @version 5.0.0
*/
// Prints all codes before <body> tag.
// Location: "views/general/header/_common.php"
publisher_get_view( 'header', '_common', 'general' );
publisher_get_view( 'header', 'off-canvas', 'general' );
/**
* Fires before ".main-wrap" start
*
* @since 1.9.0
*/
do_action( 'publisher/main-wrap/before' );
// Activates duplicate posts removal temporarily for not counting posts inside mega menu
publisher_set_global( 'disable-duplicate-posts', true );
publisher_set_blocks_title_tag( 'p', true );
//
// Header locked inside page layout
//
{
$_check = array(
'boxed' => '',
'full-width' => '',
'stretched' => '',
);
if ( isset( $_check[ publisher_get_header_layout() ] ) ) {
Arguments
"header"
"_common"
"general"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/template.php
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
/**
* Fires before a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
if ( $load_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
/**
* Fires after a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/themes/publisher/header.php"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/template.php
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
$located = $wp_stylesheet_path . '/' . $template_name;
break;
} elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
$located = $wp_template_path . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' !== $located ) {
load_template( $located, $load_once, $args );
}
return $located;
}
/**
* Requires the template file with WordPress environment.
*
* The globals are set up for the template file to ensure that the WordPress
* environment is available from within the function. The query variables are
* also available.
*
* @since 1.5.0
* @since 5.5.0 The `$args` parameter was added.
*
* @global array $posts
* @global WP_Post $post Global post object.
* @global bool $wp_did_header
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/themes/publisher/header.php"
true
[]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/general-template.php
* Fires before the header template file is loaded.
*
* @since 2.1.0
* @since 2.8.0 The `$name` parameter was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string|null $name Name of the specific header file to use. Null for the default header.
* @param array $args Additional arguments passed to the header template.
*/
do_action( 'get_header', $name, $args );
$templates = array();
$name = (string) $name;
if ( '' !== $name ) {
$templates[] = "header-{$name}.php";
}
$templates[] = 'header.php';
if ( ! locate_template( $templates, true, true, $args ) ) {
return false;
}
}
/**
* Loads footer template.
*
* Includes the footer template for a theme or if a name is specified then a
* specialized footer will be included.
*
* For the parameter, if the file is called "footer-special.php" then specify
* "special".
*
* @since 1.5.0
* @since 5.5.0 A return value was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string $name The name of the specialized footer.
* @param array $args Optional. Additional arguments passed to the footer template.
* Default empty array.
Arguments
array:1 [
0 => "header.php"
]
true
true
[]
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-content
/themes
/publisher-child
/front-page.php
/**
* front-page.php
*
* Used to none-static homepage.
*
* Content is output based on which layout has been selected in theme option panel.
* To view and/or edit the markup of layouts, go to "views/home/layout" there is
* some files tht handles multiple layouts.
*
* Layout files:
* - 1-col.php : 1 column layout
* - 2-col.php : 2 column layout
* - 3-col.php : 3 column layout
*
* @author BetterStudio
* @package Publisher
* @version 1.8.4
*/
get_header();
?>
<div class="resent_post_home content-wrap">
<div class="container">
<div class="container-inner">
<h1 class="hide-front-h1"><?= get_field('h1'); ?></h1>
<h3>Recent Posts</h3>
</div>
<div class="resent_post_block__wrap">
<?php $recent_post_block = get_field('recent_post_block'); ?>
<?php if ($recent_post_block): ?>
<?php foreach ($recent_post_block as $post): ?>
<?php setup_postdata($post); ?>
<? $termins_post = get_the_terms($post->ID, 'category');
$comments_count = wp_count_comments($post->ID) ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('listing-item listing-item-grid listing-item-grid-1'); ?>>
<div class="post_img">
<img src="<? echo get_the_post_thumbnail_url(get_the_ID(), 'home_thumbnail'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>">
<div class="term-badges floated">
<span class="term-badge term-40">
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-includes
/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-content/themes/publisher-child/front-page.php"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-includes/template-loader.php"
/home2
/hcdagdmy
/public_html
/timeforlifenow
/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/home2/hcdagdmy/public_html/timeforlifenow/wp-blog-header.php"