/home/definitelymaybe/sites/dostup.memo.ru/web/app/plugins/wp-seopress/inc/functions/options-social.php
}
}
function seopress_social_fb_img_home_option() {
$page_id = get_option('page_for_posts');
$_seopress_social_fb_img = get_post_meta($page_id, '_seopress_social_fb_img', true);
if ( ! empty($_seopress_social_fb_img)) {
return $_seopress_social_fb_img;
} elseif (has_post_thumbnail($page_id)) {
return get_the_post_thumbnail_url($page_id);
}
}
function seopress_thumbnail_in_content() {
//Get post content
$seopress_get_the_content = get_post_field('post_content', get_the_ID());
if ('' != $seopress_get_the_content) {
//DomDocument
$dom = new domDocument();
$internalErrors = libxml_use_internal_errors(true);
if (function_exists('mb_convert_encoding')) {
$dom->loadHTML(mb_convert_encoding($seopress_get_the_content, 'HTML-ENTITIES', 'UTF-8'));
} else {
$dom->loadHTML('<?xml encoding="utf-8" ?>' . $seopress_get_the_content);
}
$dom->preserveWhiteSpace = false;
if ('' != $dom->getElementsByTagName('img')) {
$images = $dom->getElementsByTagName('img');
}
if (isset($images) && ! empty($images)) {
if ($images->length >= 1) {
foreach ($images as $img) {
$url = $img->getAttribute('src');
//Exclude Base64 img
if (false === strpos($url, 'data:image/')) {
if (true === seopress_is_absolute($url)) {
//do nothing
Arguments
"Class 'domDocument' not found"
/home/definitelymaybe/sites/dostup.memo.ru/web/app/plugins/wp-seopress/inc/functions/options-social.php
}
} elseif ('' != seopress_social_twitter_img_post_option() && (is_singular() || (function_exists('is_shop') && is_shop()))) {//Single
if ('large' == seopress_social_twitter_img_size_option()) {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="' . seopress_social_twitter_img_post_option() . '" />';
} else {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="' . seopress_social_twitter_img_post_option() . '" />';
}
} elseif ('' != seopress_social_fb_img_post_option() && (is_singular() || (function_exists('is_shop') && is_shop())) && '1' == seopress_social_twitter_card_og_option()) {
if ('large' == seopress_social_twitter_img_size_option()) {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="' . seopress_social_fb_img_post_option() . '" />';
} else {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="' . seopress_social_fb_img_post_option() . '" />';
}
} elseif (has_post_thumbnail() && (is_singular() || (function_exists('is_shop') && is_shop()))) {
if ('large' == seopress_social_twitter_img_size_option()) {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="' . get_the_post_thumbnail_url($post, 'large') . '" />';
} else {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="' . get_the_post_thumbnail_url($post, 'large') . '" />';
}
} elseif ('' != seopress_thumbnail_in_content() && (is_singular() || (function_exists('is_shop') && is_shop()))) {
if ('large' == seopress_social_twitter_img_size_option()) {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="' . seopress_thumbnail_in_content() . '" />';
} else {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="' . seopress_thumbnail_in_content() . '" />';
}
} elseif ((is_tax() || is_category() || is_tag()) && '' != seopress_social_twitter_img_term_option()) {//Term archive
if ('large' == seopress_social_twitter_img_size_option()) {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="' . seopress_social_twitter_img_term_option() . '" />';
} else {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="' . seopress_social_twitter_img_term_option() . '" />';
}
} elseif ((is_tax() || is_category() || is_tag()) && '' != seopress_social_fb_img_term_option() && '1' == seopress_social_twitter_card_og_option()) {
if ('large' == seopress_social_twitter_img_size_option()) {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="' . seopress_social_fb_img_term_option() . '" />';
} else {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image" content="' . seopress_social_fb_img_term_option() . '" />';
}
} elseif (is_tax('product_cat') && seopress_social_fb_img_product_cat_option() !='') {//If product category thumbnail
if ('large' == seopress_social_twitter_img_size_option()) {
$seopress_social_twitter_card_thumb .= '<meta name="twitter:image:src" content="' . seopress_social_fb_img_product_cat_option() . '" />';
/home/definitelymaybe/sites/dostup.memo.ru/web/wp/wp-includes/class-wp-hook.php
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$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, (int) $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/definitelymaybe/sites/dostup.memo.ru/web/wp/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 ] = array_keys( $this->callbacks );
do {
$priority = current( $this->iterations[ $nesting_level ] );
/home/definitelymaybe/sites/dostup.memo.ru/web/wp/wp-includes/plugin.php
if ( ! isset( $wp_filter[ $tag ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
}
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[ $tag ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Retrieve the number of times an action is fired.
*
* @since 2.1.0
*
* @global int[] $wp_actions Stores the number of times each action was triggered.
*
* @param string $tag The name of the action hook.
* @return int The number of times action hook $tag is fired.
*/
function did_action( $tag ) {
global $wp_actions;
if ( ! isset( $wp_actions[ $tag ] ) ) {
return 0;
}
/home/definitelymaybe/sites/dostup.memo.ru/web/wp/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 );
}
/**
* Fire 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' );
}
/**
* Fire 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' );
}
/**
* Fire the wp_body_open action.
/home/definitelymaybe/sites/dostup.memo.ru/web/app/themes/ldk/index.php
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=2">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=2">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=2">
<link rel="manifest" href="/site.webmanifest?v=2">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=2" color="#ffe600">
<link rel="shortcut icon" href="/favicon.ico?v=2">
<meta name="msapplication-TileColor" content="#ffe600">
<meta name="theme-color" content="#ffe600">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
</html>
/home/definitelymaybe/sites/dostup.memo.ru/web/wp/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
"/home/definitelymaybe/sites/dostup.memo.ru/web/app/themes/ldk/index.php"
/home/definitelymaybe/sites/dostup.memo.ru/web/wp/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
"/home/definitelymaybe/sites/dostup.memo.ru/web/wp/wp-includes/template-loader.php"
/home/definitelymaybe/sites/dostup.memo.ru/web/index.php
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
Arguments
"/home/definitelymaybe/sites/dostup.memo.ru/web/wp/wp-blog-header.php"