403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.216.179
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : upstairsbar.co.uk ( 982)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/vinfinity.co.uk/wp-content/themes/dine/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vinfinity.co.uk/wp-content/themes/dine/inc/misc.php
<?php

if (!function_exists( 'dine_image_full_quality' ) ) :
/**
 * Set highest quality for images
 *
 * Remove this filter in your child theme if you do not wanna set highest quality for images
 *
 * @since 1.0
 */
function dine_image_full_quality( $quality ) {
    return 100;
}
endif;
add_filter( 'jpeg_quality', 'dine_image_full_quality' );
add_filter( 'wp_editor_set_quality', 'dine_image_full_quality' );

if ( ! function_exists( 'dine_page_in_search_result' ) ) :
/**
 * Include/Exclude pages from search results
 *
 * @since 1.0
 */
function dine_page_in_search_result( $args, $post_type ) {
    
    $page_search_result = get_theme_mod( 'page_search_result' );
    if ( 'false' === $page_search_result && 'page' === $post_type ) {
        $args[ 'exclude_from_search' ] = true;
    }
    
    return $args;
    
}
endif;
add_filter( 'register_post_type_args', 'dine_page_in_search_result', 10, 2 );

/**
 * WPBakery Page Builder Compatibility
 *
 * @since 1.0
 */
add_action( 'vc_before_init', 'dine_vcSetAsTheme' );
function dine_vcSetAsTheme() {
    vc_set_as_theme();
}

// https://jetpack.com/2013/05/03/skip-a-image-with-photon/
if ( ! function_exists( 'dine_instagram_photon_exception' ) ) :
function dine_instagram_photon_exception( $val, $src, $tag ) {
    if ( false !== strpos( $src, 'cdninstagram.com' ) ) {
            return true;
    }
    return $val;
}
endif;
add_filter( 'jetpack_photon_skip_image', 'dine_instagram_photon_exception', 10, 3 );

/**
 * Side Navigation
 *
 * @since 1.0
 */
add_action( 'wp_footer', 'dine_sidenav' );
function dine_sidenav() {
    
    if ( ! is_page() ) return;
    $nav = get_post_meta( get_the_ID(), '_dine_sidenav', true );
    if ( ! $nav ) return;
    
    wp_nav_menu( array(
        
        'menu' => $nav,
        'menu_id' => 'sidenav',
        'container_id' => 'sidenav-wrapper',
        'fallback_cb' => false,
        'depth' => 1,
        'link_before' => '<span>',
        'link_after' => '</span>',
    
    ) );
    
}

if ( ! function_exists( 'dine_excerpt_more' ) ) :
/**
 * Replaces "[...]" (appended to automatically generated excerpts) with ... and
 * a 'Continue reading' link.
 *
 * @since Dine 1.0
 *
 * @return string 'Continue reading' link prepended with an ellipsis.
 */
function dine_excerpt_more( $link ) {
	if ( is_admin() ) {
		return $link;
	}
    
	return ' &hellip; ';
}
endif;
add_filter( 'excerpt_more', 'dine_excerpt_more' );

if ( ! function_exists( 'dine_excerpt_length' ) ) :
/**
 * excerpt length theme mod
 */
function dine_excerpt_length( $length ) {
    $l = get_theme_mod( 'excerpt_length' );
    if ( is_numeric( $l ) ) {
        return $l;
    } else {
        return $length;
    }
}
endif;
add_filter( 'excerpt_length', 'dine_excerpt_length' );

Youez - 2016 - github.com/yon3zu
LinuXploit