AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 18.191.222.65   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/chroot/var/www/wp-content/themes/sento-boxed/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/chroot/var/www/wp-content/themes/sento-boxed/functions.php
<?php

// ----------------------------------------------------------------------------------
//	Register Front-End Styles And Scripts
// ----------------------------------------------------------------------------------

function sento_boxed_thinkup_child_frontscripts() {

	wp_enqueue_style( 'thinkup-style', get_template_directory_uri() . '/style.css', array( 'thinkup-bootstrap' ) );
	wp_enqueue_style( 'sento-boxed-thinkup-style', get_stylesheet_uri(), array( 'thinkup-style' ), wp_get_theme()->get('Version') );

}
add_action( 'wp_enqueue_scripts', 'sento_boxed_thinkup_child_frontscripts' );


// ----------------------------------------------------------------------------------
//	Assign default layout options
// ----------------------------------------------------------------------------------

function sento_boxed_thinkup_reduxvariables() { 

	$GLOBALS['thinkup_blog_style']        = 'option1';
	$GLOBALS['thinkup_blog_style1layout'] = 'option2';

}
add_action( 'thinkup_hook_header', 'sento_boxed_thinkup_reduxvariables', 11 );


// ----------------------------------------------------------------------------------
//	Update Options Array With Child Theme Color Values
// ----------------------------------------------------------------------------------

// Add child theme color values to options array
function sento_boxed_thinkup_updateoption_child_settings() {

	// Set theme name combinations
	$name_theme_upper = 'Sento';
	$name_theme_lower = strtolower( $name_theme_upper );

	// Set possible options names
	$name_options_free  = 'thinkup_redux_variables';
	$name_child_color   = $name_theme_lower . '_thinkup_child_color_boxed';

	// Get options values (theme options)
	$options_free = get_option( $name_options_free );

	// Get child color values
	$options_child_settings = get_option( $name_child_color );

	if( ! empty( $options_free ) ) {

		// Only set child color values if not already set 
		if ( $options_child_settings != 1 ) {

			$options_free['thinkup_styles_skinswitch'] = '1';
			$options_free['thinkup_styles_skin']       = 'boxed';
			$options_free['thinkup_blog_style']        = 'option1';
			$options_free['thinkup_blog_style1layout'] = 'option2';

			// Add child color to theme options array
			update_option( $name_options_free, $options_free );

		}
	}

	// Set the child color flag
	update_option( $options_child_settings, 1 );

}
add_action( 'init', 'sento_boxed_thinkup_updateoption_child_settings', 999 );

Anon7 - 2022
AnonSec Team