$56 GRAYBYTE WORDPRESS FILE MANAGER $96

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/sitepad/editor/site-data/plugins/pagelayer/main/

HOME
Current File : /var/softaculous/sitepad/editor/site-data/plugins/pagelayer/main//parse-shortcodes.php
<?php

//////////////////////////////////////////////////////////////
//===========================================================
// PAGELAYER
// Inspired by the DESIRE to be the BEST OF ALL
// ----------------------------------------------------------
// Started by: Pulkit Gupta
// Date:	   23rd Jan 2017
// Time:	   23:00 hrs
// Site:	   http://pagelayer.com/wordpress (PAGELAYER)
// ----------------------------------------------------------
// Please Read the Terms of use at http://pagelayer.com/tos
// ----------------------------------------------------------
//===========================================================
// (c)Pagelayer Team
//===========================================================
//////////////////////////////////////////////////////////////

// Are we being accessed directly ?
if(!defined('PAGELAYER_VERSION')) {
	exit('Hacking Attempt !');
}

function pagelayer_do_shortcode_to_block( $content, $ignore_html = false ) {
	global $shortcode_tags;
	
	if ( false === strpos( $content, '[' ) ) {
		return $content;
	}
	
	// Find all registered tag names in $content.
	preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
	$tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );

	if( empty( $tagnames ) ){
		return $content;
	}

	$content = do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames );
	
	$pattern = get_shortcode_regex( $tagnames );
	$content = preg_replace_callback( "/$pattern/", 'pagelayer_do_shortcode_tag', $content );
	
	return $content;
}

function pagelayer_do_shortcode_tag($m){
	
	// Allow [[foo]] syntax for escaping a tag.
	if ( '[' === $m[1] && ']' === $m[6] ) {
		return substr( $m[0], 1, -1 );
	}

	$tag  = $m[2];
	$attr = shortcode_parse_atts( $m[3] );
	$content = isset( $m[5] ) ? $m[5] : null;

	$output = $m[1] . pagelayer_shortcode_to_block( $attr, $content, $tag ) . $m[6];
	
	return $output;
}

function pagelayer_shortcode_to_block($attr, $content, $tag){
	
	if($tag == 'pl_post_props'){
		return '';
	}
	
	if($tag == 'pl_inner_col'){
		$tag = 'pl_col';
	}
	
	if($tag == 'pl_inner_row'){
		$tag = 'pl_row';
	}
	
	$block_name = 'pagelayer/'.str_replace('_', '-', $tag);
	
	$func = 'pagelayer_fix_block_'.$tag;
	
	// Is there a function of the tag ?
	if(function_exists($func)){
		call_user_func_array($func, array(&$block_name, &$attr, &$content));
	}
	
	$content = pagelayer_do_shortcode_to_block($content);
	
	return get_comment_delimited_block_content( $block_name, $attr, $content );
}

function pagelayer_fix_block_pl_accordion_item(&$block_name, &$attr, &$content){
	
	if(pagelayer_has_blocks($content) || false !== strpos( $content, '[pl_' )){
		return;
	}
	
	pagelayer_content_to_block($content);
}

function pagelayer_content_to_block(&$content){

	$content = '<!-- '.PAGELAYER_BLOCK_PREFIX.':pagelayer/pl-row {"stretch":"auto"} -->
<!-- '.PAGELAYER_BLOCK_PREFIX.':pagelayer/pl-col {"overlay_hover_delay":"400"} -->
<!-- '.PAGELAYER_BLOCK_PREFIX.':pagelayer/pl-text -->'.$content.'<!-- /'.PAGELAYER_BLOCK_PREFIX.':pagelayer/pl-text -->
<!-- /'.PAGELAYER_BLOCK_PREFIX.':pagelayer/pl-col -->
<!-- /'.PAGELAYER_BLOCK_PREFIX.':pagelayer/pl-row -->';
}


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Feb 2026 2.55 AM
root / root
0755
ajax.php
60.458 KB
18 Feb 2026 11.32 PM
root / root
0644
blocks.php
14.881 KB
18 Feb 2026 11.32 PM
root / root
0644
class.php
5.7 KB
18 Feb 2026 11.32 PM
root / root
0644
customizer-controls.php
24.505 KB
18 Feb 2026 11.32 PM
root / root
0644
customizer.php
15.761 KB
18 Feb 2026 11.32 PM
root / root
0644
font-options.php
21.721 KB
18 Feb 2026 11.32 PM
root / root
0644
functions.php
99.901 KB
18 Feb 2026 11.32 PM
root / root
0644
getting_started.php
9.769 KB
18 Feb 2026 11.32 PM
root / root
0644
import.php
58.693 KB
18 Feb 2026 11.32 PM
root / root
0644
live-body.php
8.865 KB
18 Feb 2026 11.32 PM
root / root
0644
live.php
13.521 KB
18 Feb 2026 11.32 PM
root / root
0644
nav_walker.php
8.856 KB
18 Feb 2026 11.32 PM
root / root
0644
parse-shortcodes.php
3.096 KB
18 Feb 2026 11.32 PM
root / root
0644
post_metas.php
15.288 KB
18 Feb 2026 11.32 PM
root / root
0644
replace-media.php
6.958 KB
18 Feb 2026 11.32 PM
root / root
0644
settings.php
29.99 KB
18 Feb 2026 11.32 PM
root / root
0644
shortcode_functions.php
52.245 KB
18 Feb 2026 11.32 PM
root / root
0644
shortcodes.php
390.276 KB
18 Feb 2026 11.32 PM
root / root
0644
template.php
39.566 KB
18 Feb 2026 11.32 PM
root / root
0644
website.php
24.539 KB
18 Feb 2026 11.32 PM
root / root
0644
woocommerce.php
22.484 KB
18 Feb 2026 11.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF