%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/buggydubrovnik.com/wp-content/plugins/fusion-core/shortcodes/
Upload File :
Create Path :
Current File : /var/www/html/buggydubrovnik.com/wp-content/plugins/fusion-core/shortcodes/class-fusion-code.php

<?php
class FusionSC_FusionCode {

	public static $args;

	/**
	 * Initiate the shortcode
	 */
	public function __construct() {

		add_shortcode('fusion_code', array( $this, 'render' ) );

	}

	/**
	 * Render the shortcode
	 * @param  array $args	 Shortcode paramters
	 * @param  string $content Content between shortcode
	 * @return string		  HTML output
	 */
	function render( $args, $content = '') {
		
		if ( base64_encode( base64_decode( $content ) ) === $content ){
			$content = base64_decode( $content );
		} else {
			//not encoded
		}
		return do_shortcode( $content );
	}

}

new FusionSC_FusionCode();

Zerion Mini Shell 1.0