\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 www.csarite.com
KUJUNTI.ID MINISH3LL
Path : /var/www/html/csarite.com/public_html/wp-content/plugins/motionpage/wp/App/Frontend/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/csarite.com/public_html/wp-content/plugins/motionpage/wp/App/Frontend/Utils.php


<?php

/**
 * Motion.page
 *
 * @package   motionpage
 * @author    HypeWolf OÜ <hello@hypewolf.com>
 * @copyright 2024 HypeWolf OÜ
 * @license   EULA + GPLv2
 * @link      https://motion.page
 */

declare(strict_types=1);

namespace motionpage\App\Frontend;

//use motionpage\Common\Abstracts\Base;

/**
 * Class Utils
 *
 * @package motionpage\App\Frontend
 * @since 2.1.7
 */
class Utils {
	/**
	 * Return correct POST ID | Loaded in 'wp' actions
	 * @since   1.5.0
	 */
	public function getPostID(): int {
		$POST_ID = \get_the_ID() ?: 0;

		if (function_exists('is_shop') && \is_shop()) {
			$POST_ID = (int) motionpage()->getOption('woocommerce_shop_page_id', 0);
		}

		return $POST_ID;
	}

	public function isBuilders(): bool {
		$is_oxygen = defined('SHOW_CT_BUILDER') || defined('OXYGEN_IFRAME');
		$is_bricks =
			isset($_GET['bricksbuilder']) ||
			(function_exists('bricks_is_builder_iframe') && \bricks_is_builder_iframe());
		$is_divi = isset($_GET['et_fb']);
		$is_beaver = isset($_GET['fl_builder']);
		$is_brizzy = isset($_GET['brizy-edit-iframe']);
		return $is_oxygen || $is_beaver || $is_divi || $is_bricks || $is_brizzy;
	}
}

© KUJUNTI.ID