Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.147.78.185
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/ombre-shortcodes.php
<?php
add_shortcode('ombrebox', 'ombrebox');
add_shortcode('ombretable', 'ombretable');
add_shortcode('ombretableitem', 'ombretableitem');
add_shortcode('ombresocial', 'ombresocial');
add_shortcode('ombreicon', 'ombreicon');
add_shortcode('fleximage', 'fleximage');
add_shortcode('imagequote', 'imagequote');
add_shortcode('accordioncontainer', 'accordioncontainer');
add_shortcode('accordion', 'accordion');
add_shortcode('tabgroup', 'jquery_tab_group');
add_shortcode('ourteam', 'ourteam');
add_shortcode('testimonials', 'testimonials');
add_shortcode('models', 'models');
add_shortcode('roundedlist', 'roundedlist');
add_shortcode('roundedlistitem', 'roundedlistitem');

add_filter("the_content", "ombre_content_filter");
add_filter("widget_text", "do_shortcode");
add_filter("widget_text", "ombre_content_filter", 9);

function ombre_content_filter($content) {
 
	// array of custom shortcodes requiring the fix 
	$block = join("|",array("ombrebox","ombretable","ombretableitem","ombresocial","ombreicon","fleximage","imagequote","accordioncontainer","accordion","tabgroup","tab","ourteam","testimonials","models","roundedlist","roundedlistitem","googlemap"));
 
	// opening tag
	$rep = preg_replace("/(<p>)?\[($block)(\s[^\]]+)?\](<\/p>|<br \/>)?/","[$2$3]",$content);
		
	// closing tag
	$rep = preg_replace("/(<p>)?\[\/($block)](<\/p>|<br \/>)?/","[/$2]",$rep);
 
	return $rep;
 
}

// Google Map
class ombre_google_shortcode {
	static $add_script;

	static function init() {
		add_shortcode('googlemap', array(__CLASS__, 'handle_shortcode'));
		add_action('init', array(__CLASS__, 'register_script'));
		add_action('wp_footer', array(__CLASS__, 'print_script'));
	}

	static function handle_shortcode($atts) {
		self::$add_script = true;
        extract(shortcode_atts(array(
            "latitute" => 'latitute',
            "longitude" => 'longitude',
            "zoom" => 'zoom',
            "grayscale" => 'grayscale',
            "markercolor" => 'markercolor',
            "widescreen" => 'widescreen'
	   ), $atts));
        ob_start();
        include('googlemap.php');
        $content = ob_get_clean();
        return $content;
	}

	static function register_script() {
        $ombreapikey = esc_attr(get_option( 'ombre_apikey' )); 
        wp_register_script('ombre_map', '//maps.google.com/maps/api/js?key=' . $ombreapikey,'',null,false);
        wp_register_script('ombre_dvmap',plugin_dir_url( __FILE__ ).'js/dvmap.js','','',true);
	}

	static function print_script() {
		if ( ! self::$add_script ) {
			return;
        }
		wp_print_scripts('ombre_map');
        wp_print_scripts('ombre_dvmap');
	}
}

ombre_google_shortcode::init();

// Ombre Box
function ombrebox($atts, $content = null) {
    return '<div class="ombre-box">' . do_shortcode(stripslashes($content)) . '</div>';
}

// Social Icons
function ombresocial($atts) {
    ob_start();
    include('socialicons.php');
    $content = ob_get_clean();
    return $content;
}

// Table
function ombretable($atts, $content = null) {
    return '<ul class="ombre-table">' . do_shortcode($content) . '</ul>';
}
function ombretableitem($atts, $content = null) {
	extract(shortcode_atts(array(
		"left" => 'left',
        "right" => 'right',
        "icon" => 'icon'
	), $atts));
    if (empty($icon)) {
		return '<li><div class="ombre-table-left">' . $left . '</div><div class="ombre-table-right">' . $right . '</div></li>';
    }
    else {
        return '<li><div class="ombre-table-left"><i class="ombre-icon fa fa-' . $icon . '"></i>' . $left . '</div><div class="ombre-table-right">' . $right . '</div></li>';
    }
}

// Ombre Icon
function ombreicon($atts, $content = null) {
	extract(shortcode_atts(array(
		"title" => 'title',
        "headerlevel" => 'headerlevel',
        "text" => 'text',
        "link" => 'link',
        "icon" => 'icon',
        "align" => 'align'
	), $atts));
    if (empty($link)) {
        if ($align == 'right') {
            return '<div class="iconright"><div class="iconcontainer"><a href="#" class="fa fa-' . $icon . '">' . $title . '</a></div><div class="icontext"><' . $headerlevel . '>' . $title . '</' . $headerlevel . '><p>' . $text . '</p></div></div>';
        }
        elseif ($align == 'left') {
            return '<div class="iconleft"><div class="iconcontainer"><a href="#" class="fa fa-' . $icon . '">' . $title . '</a></div><div class="icontext"><' . $headerlevel . '>' . $title . '</' . $headerlevel . '><p>' . $text . '</p></div></div>';
        }
        else {
            return '<div class="iconcontainer"><a href="#" class="fa fa-' . $icon . '">' . $title . '</a></div><div class="icontext"><' . $headerlevel . '>' . $title . '</' . $headerlevel . '><p>' . $text . '</p></div>';
        }
    }
    else
    {
        if ($align == 'right') {
            return '<div class="iconright"><div class="iconcontainer"><a href="' . esc_url($link) . '" class="fa fa-' . $icon . '">' . $title . '</a></div><div class="icontext"><' . $headerlevel . '>' . $title . '</' . $headerlevel . '><p>' . $text . '</p></div></div>';
        }
        elseif ($align == 'left') {
            return '<div class="iconleft"><div class="iconcontainer"><a href="' . esc_url($link) . '" class="fa fa-' . $icon . '">' . $title . '</a></div><div class="icontext"><' . $headerlevel . '>' . $title . '</' . $headerlevel . '><p>' . $text . '</p></div></div>';
        }
        else {
            return '<div class="iconcontainer"><a href="' . esc_url($link) . '" class="fa fa-' . $icon . '">' . $title . '</a></div><div class="icontext"><' . $headerlevel . '>' . $title . '</' . $headerlevel . '><p>' . $text . '</p></div>';
        }
    }
}

// Flex Image
function fleximage($atts, $content = null) {
	extract(shortcode_atts(array(
		"imgcaption" => 'imgcaption'
	), $atts));
    if (empty($imgcaption)) {
        return '<div class="flex-img">' . $content . '</div>';
    }
    else
    {
        return '<figure class="caption-image"><div>' . $content . '</div><figcaption><div>' . $imgcaption . '</div></figcaption></figure>';         
    }
}

// Image Quote
function imagequote($atts, $content = null) {
	extract(shortcode_atts(array(
		"blockquote" => 'blockquote',
        "cite" => 'cite'
	), $atts));
    if (empty($blockquote)) {
        return '<div class="flex-img">' . $content . '</div>';
    }
    elseif (empty($cite)) {
        return '<figure class="caption-image"><div>' . $content . '</div><figcaption><blockquote><p>' . $blockquote . '</p></blockquote></figcaption></figure>'; 
    }
    else
    {
        return '<figure class="caption-image"><div>' . $content . '</div><figcaption><blockquote><p>' . $blockquote . '</p><p class="cite"><span>―</span> ' . $cite . '</p></blockquote></figcaption></figure>';         
    }
}

// Rounded list
function roundedlist($atts, $content = null) {
    return '<ol class="rounded-list">' . do_shortcode(stripslashes($content)) . '</ol>';
}

// Rounded List Item
function roundedlistitem($atts, $content = null) {
    extract(shortcode_atts(array(
		"text" => 'text'
	), $atts));
    return '<li><span>' . $text . '</span></li>';
}

// Our Team Carousel
function ourteam($atts) {
    extract(shortcode_atts(array(
		"max" => 'max',
        "columns" => 'columns',
        "autoplay" => 'autoplay',
        "duration" => 'duration'
	), $atts));
    ob_start();
    include('team-carousel.php');
    $content = ob_get_clean();
    return $content;
}

// Models Carousel
function models($atts) {
    extract(shortcode_atts(array(
		"max" => 'max',
        "columns" => 'columns',
        "autoplay" => 'autoplay',
        "duration" => 'duration',
        "categoryid" => 'categoryid',
	), $atts));
    ob_start();
    include('models-carousel.php');
    $content = ob_get_clean();
    return $content;
}

// Testimonials
function testimonials($atts) {
    extract(shortcode_atts(array(
		"autoplay" => 'autoplay',
        "duration" => 'duration',
        "autoheight" => 'autoheight'
	), $atts));
    ob_start();
    include('testimonials.php');
    $content = ob_get_clean();
    return $content;
}

// Accordion Container
function accordioncontainer($atts, $content = null) {
    return '<div class="accordion-container">' . do_shortcode(stripslashes($content)) . '</div>';
}

// Accordion
function accordion($atts, $content = null) {
	extract(shortcode_atts(array(
		"title" => 'title',
        "icon" => 'icon'
	), $atts));
    if (empty($icon)) {
       return '<div class="accordion-header"><strong>' . $title . '</strong></div><div class="accordion-content">' . do_shortcode(stripslashes($content)) . '</div>';
    }
    else
    {
       return '<div class="accordion-header"><strong><i class="fa fa-' . $icon . '"></i> ' . $title . '</strong></div><div class="accordion-content">' . do_shortcode(stripslashes($content)) . '</div>';        
    }
}

// Tabs
function jquery_tab_group( $atts, $content ){
    extract(shortcode_atts(array(
        "type" => 'type'
	), $atts));
    
$GLOBALS['tab_count'] = 0;
$GLOBALS['tabs'] = array();

do_shortcode( $content );

if( is_array( $GLOBALS['tabs']) ){
$int = '1';
$random = rand();    
foreach( $GLOBALS['tabs'] as $tab ){
$tabs[] = '
    <li>'.$tab['title'].'</li>
';
$panes[] = '
<div>
'.do_shortcode($tab['content']).'

</div>
';
$int++;
}
$return = "\n".'

<div class="dvtabs"><div id="tabs-'.$random.'">'."\n".'
<ul class="resp-tabs-list">'.implode( "\n", $tabs ).'</ul>
<div class="resp-tabs-container">'."\n".' '.implode( "\n", $panes ).'

</div></div><div class="clear"></div></div>
<script type="text/javascript">jQuery(document).ready(function() { jQuery("#tabs-'.$random.'").easyResponsiveTabs({type: "'.$type.'", width: "auto", fit: true,activate: function () { if (jQuery(window).width() > 768) {jQuery("#tabs-'.$random.'").find(".resp-tab-content").addClass("animatedfast fadeIn");setTimeout(function () {jQuery("#tabs-'.$random.'").find(".resp-tab-content").removeClass("animatedfast fadeIn");}, 400);}}});});</script>
'."\n";
}

return $return;
}

add_shortcode( 'tab', 'jquery_tab' );

function jquery_tab( $atts, $content ){
extract(shortcode_atts(array(
'title' => 'Tab %d'
), $atts));

$x = $GLOBALS['tab_count'];
$GLOBALS['tabs'][$x] = array( 'title' => sprintf( $title, $GLOBALS['tab_count'] ), 'content' => $content );

$GLOBALS['tab_count']++;
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit