/home/i/infotu5k/en.tutmee.ru/public_html/wp-content/themes/tutmee-business/src/Carbon/SettingsPage.php
global $wp_query;
if ( $wp_query->queried_object->ID == carbon_get_theme_option( 'plug_page' ) && file_exists( $file = get_stylesheet_directory() . '/plug.php' ) ) {
$template = $file;
}
return $template;
} );
}
protected static function bugFixPortfolio() {
add_filter( 'display_post_states', function ( $post_state, $post ) {
if ( carbon_get_theme_option( 'portfolio_page' ) == $post->ID ) {
$post_state[] = __( 'Портфолио', THEME_LANG );
}
return $post_state;
}, 10, 2 );
add_filter( 'template_include', function ( $template ) {
global $wp_query;
if ( $wp_query->queried_object->ID == carbon_get_theme_option( 'portfolio_page' ) && file_exists( $file = get_stylesheet_directory() . '/taxonomy-portfolio-cat.php' ) ) {
$template = $file;
}
return $template;
} );
add_action( 'admin_head', function () {
if ( $_GET[ 'post' ] == carbon_get_theme_option( 'portfolio_page' ) ) {
echo "<style>#postdivrich{display: none}</style>";
Notice::warning( __( 'Вы редактируете страницу, на которой отображаются элементы портфолио.', THEME_LANG ) );
}
} );
}
}
/home/i/infotu5k/en.tutmee.ru/public_html/wp-content/themes/tutmee-business/src/Carbon/SettingsPage.php
global $wp_query;
if ( $wp_query->queried_object->ID == carbon_get_theme_option( 'plug_page' ) && file_exists( $file = get_stylesheet_directory() . '/plug.php' ) ) {
$template = $file;
}
return $template;
} );
}
protected static function bugFixPortfolio() {
add_filter( 'display_post_states', function ( $post_state, $post ) {
if ( carbon_get_theme_option( 'portfolio_page' ) == $post->ID ) {
$post_state[] = __( 'Портфолио', THEME_LANG );
}
return $post_state;
}, 10, 2 );
add_filter( 'template_include', function ( $template ) {
global $wp_query;
if ( $wp_query->queried_object->ID == carbon_get_theme_option( 'portfolio_page' ) && file_exists( $file = get_stylesheet_directory() . '/taxonomy-portfolio-cat.php' ) ) {
$template = $file;
}
return $template;
} );
add_action( 'admin_head', function () {
if ( $_GET[ 'post' ] == carbon_get_theme_option( 'portfolio_page' ) ) {
echo "<style>#postdivrich{display: none}</style>";
Notice::warning( __( 'Вы редактируете страницу, на которой отображаются элементы портфолио.', THEME_LANG ) );
}
} );
}
}
/home/i/infotu5k/en.tutmee.ru/public_html/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.
/home/i/infotu5k/en.tutmee.ru/public_html/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.
/home/i/infotu5k/en.tutmee.ru/public_html/wp-includes/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() 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_filters Stores the number of times each filter 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 filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
/home/i/infotu5k/en.tutmee.ru/public_html/wp-includes/template-loader.php
if ( 'is_attachment' === $tag ) {
remove_filter( 'the_content', 'prepend_attachment' );
}
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;
}
/home/i/infotu5k/en.tutmee.ru/public_html/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';
}
/home/i/infotu5k/en.tutmee.ru/public_html/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';