403Webshell
Server IP : 5.129.245.98  /  Your IP : 216.73.216.246
Web Server : Apache/2.4.66 (Debian)
System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/rehub-framework/gutenberg/blocks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/rehub-framework/gutenberg/blocks/class-taxarchive.php
<?php

namespace Rehub\Gutenberg\Blocks;

defined( 'ABSPATH' ) OR exit;

class TaxArchive extends Basic {
	protected $name = 'tax-archive';

	public function __construct() {
		parent::__construct();
	}

	static $fonts = array();

	protected $attributes = array(
		'taxonomy' => array(
			'type' => 'string',
			'default' => 'category',
		),
		'child_of' => array(
			'type' => 'object',
			'default' => null
		),
		'include' => array(
			'type' => 'array',
			'default' => null
		),
		'excludeToggle' => array(
			'type' => 'string',
			'default' => ''
		),
		'type' => array(
			'type' => 'string',
			'default' => 'storegrid',
		),
		'classcol' => array(
			'type' => 'string',
			'default' => 'col_wrap_three'
		),
		'limit' => array(
			'type' => 'string',
			'default' => '',
		),
		'imageheight' => array(
			'type' => 'string',
			'default' => '50',
		),
		'classitem' => array(
			'type' => 'string',
			'default' => '',
		),
		'anchor_before' => array(
			'type' => 'number',
			'default' => '',
		),
		'anchor_after' => array(
			'type' => 'string',
			'default' => '',
		),
		'wrapclass' => array(
			'type' => 'string',
			'default' => 'no_padding_wrap',
		),
		'rows' => array(
			'type' => 'string',
			'default' => '1',
		),
		'random' => array(
			'type' => 'string',
			'default' => '',
		),
		'show_images' => array(
			'type' => 'string',
			'default' => '1',
		),
		'hide_empty' => array(
			'type' => 'string',
			'default' => '1',
		),
		'showcount' => array(
			'type' => 'string',
			'default' => '',
		),
		'leftimage' => array(
			'type' => 'string',
			'default' => '',
		),
		'originalimg' => array(
			'type' => 'string',
			'default' => '',
		),
	);

	protected function render( $settings = array(), $inner_content = '' ) {

		if ( !empty( $settings['child_of'] ) ) {
			$settings['child_of'] = $settings['child_of']['value'];
		}

		if ( !empty( $settings['include'] ) ) {
			$this->normalize_terms( $settings );
		}

		$taxrender = wpsm_tax_archive_shortcode( $settings ) ? wpsm_tax_archive_shortcode( $settings ) : '';

		$output = str_replace( "{{ content }}", $taxrender, $inner_content );
		
		echo $output;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit