403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/blog/wp-content/themes/orsay-child/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/blog/wp-content/themes/orsay-child//functions.php
<?php
/* =====================================================
    Dein neues Theme - CHILD-THEME VON Twenty Fifteen
===================================================== */

/**
 * Parent und Child-Theme Styles laden
 * @author Andreas Hecht
 */
function pm_enqueue_styles() {
	
	// enqueue parent styles
	wp_enqueue_style('parent-theme', get_template_directory_uri() .'/style-pm.css');
	
	// enqueue child styles
	//wp_enqueue_style('child-theme', get_stylesheet_directory_uri() .'/style.css', array('parent-theme'));
	
}
add_action('wp_enqueue_scripts', 'pm_enqueue_styles');

// Ab hier Deine eigenen Funktionen und Snippets
?>
<?php
add_action('init', 'pm_scripts_init');

function pm_scripts_init() {
    // remove parent theme's header content action
    remove_action('wp_enqueue_scripts', 'orsay_scripts');

    // add child theme's header content action
    add_action('cyberchimps_header_content', 'pm_scripts');

}
?>
<?php
function pm_scripts() {

	// Add Google Fonts
	wp_enqueue_style( 'orsay-webfonts', orsay_fonts_url(), array(), null, null );

	// Add Bootstrap default CSS
	wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap-pm.min.css' );
	wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/css/font-awesome-pm.min.css' );

	// Add main theme stylesheet
	wp_enqueue_style( 'orsay-style', get_stylesheet_uri() );

	// Add JS Files
	wp_enqueue_script( 'bootstrap', get_template_directory_uri().'/js/bootstrap.min.js', array('jquery') );
	wp_enqueue_script( 'slick-slider', get_template_directory_uri() . '/js/slick.min.js', array('jquery') );
	wp_enqueue_script( 'orsay-js', get_template_directory_uri().'/js/orsay.js', array('jquery') );

	// Threaded comments
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
	wp_enqueue_script( 'comment-reply' );
	}

}
add_action( 'wp_enqueue_scripts', 'pm_scripts', 50);

			// Kein EMOJI JS fuer Besucher

remove_action('wp_head', 'print_emoji_detection_script', 7);

remove_action('wp_print_styles', 'print_emoji_styles');

/*
 * Add custom colors css to header
 */
if (!function_exists('orsay_custom_css_output'))  {
	function orsay_custom_css_output() {

		$orsay_options = get_theme_mods();
		$orsay_links_color = array_key_exists('orsay_links_color', $orsay_options) ? $orsay_options['orsay_links_color'] : '';
		$orsay_hover_color = array_key_exists('orsay_hover_color', $orsay_options) ? $orsay_options['orsay_hover_color'] : '';

		echo '<style type="text/css" id="orsay-custom-theme-css">';

		if ( $orsay_links_color != "") {
			echo 'a, .page-title { color: ' . esc_attr($orsay_links_color) . '; }' .
			'::selection { background-color: ' . esc_attr($orsay_links_color) . '; }' .
			'.section-title h2:after { background-color: ' . esc_attr($orsay_links_color) . '; }' .
			'button, input[type="button"], input[type="reset"], input[type="submit"] { color: ' . esc_attr($orsay_links_color) . '; }' .
			'.page-numbers .current, .widget_search button { background-color: ' . esc_attr($orsay_links_color) . '; border-color: ' . esc_attr($orsay_links_color) . '; }';
		}
		if ( $orsay_hover_color != "" ) {
			echo '#back-top a:hover { background-color: ' . esc_attr($orsay_hover_color) . '; }' .
			'.nav>li>a:focus, .nav>li>a:hover, .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover { background-color: ' . esc_attr($orsay_hover_color) . '; }' .
			'.read-more a:hover { background-color: ' . esc_attr($orsay_hover_color) . '; border-color: ' . esc_attr($orsay_hover_color) . '; }' .
			'button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .null-instagram-feed p a:hover { background-color: ' . esc_attr($orsay_hover_color) . '; border-color: ' . esc_attr($orsay_hover_color) . '; }' .
			'.comment-reply-link:hover, .comment-reply-login:hover, .page-numbers li a:hover { background-color: ' . esc_attr($orsay_hover_color) . '; border-color: ' . esc_attr($orsay_hover_color) . '; }' .
			'.post-share a:hover, .post-header span a:hover, .post-meta .meta-info a:hover { border-color: ' . esc_attr($orsay_hover_color) . '; }' .
			'a:hover, a:focus, a:active, a.active, .mz-social-widget a:hover { color: ' . esc_attr($orsay_hover_color) . '; }';
		}

		echo '</style>';

	}
}



Youez - 2016 - github.com/yon3zu
LinuXploit