403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/training/wp-content/themes/flatsome/inc/builder/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/training/wp-content/themes/flatsome/inc/builder/shortcodes/ux_menu_link.php
<?php
/**
 * Registers the Menu link element in UX Builder.
 *
 * @package flatsome
 */

$flatsome_ux_menu_link_options = require __DIR__ . '/commons/links.php';

$flatsome_ux_menu_link_options['options'] = flatsome_array_insert(
	$flatsome_ux_menu_link_options['options'],
	array(
		'post' => array(
			'type'       => 'select',
			'full_width' => true,
			'conditions' => '!term && !link',
			'config'     => array(
				'placeholder' => __( 'Select post..', 'flatsome' ),
				'postSelect'  => array(),
			),
		),
		'term' => array(
			'type'       => 'select',
			'full_width' => true,
			'conditions' => '!post && !link',
			'config'     => array(
				'placeholder' => __( 'Select category..', 'flatsome' ),
				'termSelect'  => array(
					'taxonomies' => array(
						'post_tag',
						'category',
						'product_cat',
						'product_tag',
					),
				),
			),
		),
	),
	0
);

$flatsome_ux_menu_link_options['options']['link']['conditions'] = '!post && !term';

add_ux_builder_shortcode( 'ux_menu_link', array(
	'name'      => __( 'Menu link', 'flatsome' ),
	'category'  => __( 'Content', 'flatsome' ),
	'info'      => '{{ label }}',
	'require'   => array( 'ux_menu' ),
	'template'  => flatsome_ux_builder_template( 'ux_menu_link.html' ),
	'wrap'      => false,
	'presets'   => array(
		array(
			'name'    => __( 'Default', 'flatsome' ),
			'content' => '[ux_menu_link text="Menu link"]',
		),
	),
	'options'   => array(
		'text'            => array(
			'type'       => 'textfield',
			'heading'    => __( 'Text', 'flatsome' ),
			'default'    => '',
			'auto_focus' => true,
		),
		'icon'             => array(
			'type'    => 'select',
			'heading' => __( 'Icon', 'flatsome' ),
			'options' => require __DIR__ . '/values/icons.php',
		),
		'label'             => array(
			'type'    => 'select',
			'heading' => __( 'Label', 'flatsome' ),
			'options' => require __DIR__ . '/values/menu-labels.php',
		),
		'link_options'     => $flatsome_ux_menu_link_options,
		'advanced_options' => require __DIR__ . '/commons/advanced.php',
	),
) );

Youez - 2016 - github.com/yon3zu
LinuXploit