403Webshell
Server IP : 89.248.107.232  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : seg ( 10005)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/seg-sa.es/peyco.es/wp-content/themes/StoreFront/gavern/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/seg-sa.es/peyco.es/wp-content/themes/StoreFront/gavern/helpers/helpers.branding.php
<?php

// disable direct access to the file	
defined('GAVERN_WP') or die('Access denied');	

/**
 *
 * Branding functions
 *
 * Functions used in page branding
 *
 **/
 
 
/**
 *
 * Function used to create custom page favicon
 *
 **/ 
 
function gavern_favicon() {
	global $gk_tpl;
	
	if(get_option($gk_tpl->name . '_branding_favicon', '') != '') {
		echo '<link rel="shortcut icon" href="' . get_option($gk_tpl->name . '_branding_favicon', '') . '" type="image/x-icon" />' . "\n";
	}
} 

add_action('wp_head', 'gavern_favicon');

/**
 *
 * Function used to create custom login page elements
 *
 **/ 

if(!function_exists('gavern_loginpage_url')) {
	function gavern_loginpage_url() {
	 	return home_url();
	}
}

add_filter('login_headerurl', 'gavern_loginpage_url');

if(!function_exists('gavern_loginpage_title')) {
	function gavern_loginpage_title() {
		return esc_attr(get_bloginfo('name'));
	}
} 

add_filter('login_headertitle', 'gavern_loginpage_title');
 
/**
 *
 * Function used to create custom login page logo
 *
 **/ 

if(!function_exists('gavern_branding_custom_login_logo')) {

	function gavern_branding_custom_login_logo() {
	    // access to the template object
	    global $gk_tpl;
	    // get logo path
	    $logo_path = get_option($gk_tpl->name . "_branding_login_page_image");
	    // if logo path isn't blank
	    if($logo_path !== '') {
		    echo '<style type="text/css">
		        h1 a { 
		        	background-image: url(' . $logo_path . ')!important;
		        	background-size: auto!important;
		        	height: ' . get_option($gk_tpl->name . "_branding_login_page_image_height") . 'px!important;
		        	margin: 0 auto 10px auto!important;
		        	width: ' . get_option($gk_tpl->name . "_branding_login_page_image_width") . 'px!important; 
		        }
		    </style>';
	    }
	}

}

add_action('login_head', 'gavern_branding_custom_login_logo');

/**
 *
 * Function used to create custom dashboard logo
 *
 **/

if(!function_exists('gavern_branding_custom_admin_logo')) {

	function gavern_branding_custom_admin_logo() {
	   	// access to the template object
	   	global $gk_tpl;
	   	// get logo path
	   	$logo_path = get_option($gk_tpl->name . "_branding_admin_page_image");
	   	// if logo path isn't blank
	   	if($logo_path !== '') {
		   echo '<style type="text/css">
	       		.wp-menu-image a[href="admin.php?page=gavern-menu"] img {  
	         		height: ' . get_option($gk_tpl->name . "_branding_admin_page_image_height") . 'px!important;
	         		width: ' . get_option($gk_tpl->name . "_branding_admin_page_image_width") . 'px!important; 
	         	}
	       </style>';
       	}
	}

}

add_action('admin_head', 'gavern_branding_custom_admin_logo');

// EOF

Youez - 2016 - github.com/yon3zu
LinuXploit