Sindbad~EG File Manager

Current Path : /var/www/html/amopropiedades.com/wp-content/themes/houzez/framework/metaboxes/property/
Upload File :
Current File : /var/www/html/amopropiedades.com/wp-content/themes/houzez/framework/metaboxes/property/settings.php

<?php
/**
 * Add settings metabox tab
 *
 * @param $metabox_tabs
 *
 * @return array
 */
function houzez_settings_metabox_tab( $metabox_tabs ) {
	if ( is_array( $metabox_tabs ) ) {

		$metabox_tabs['property_settings'] = array(
			'label' => houzez_option('cls_settings', 'Property Setting'),
            'icon' => 'dashicons-admin-generic',
		);

	}
	return $metabox_tabs;
}
add_filter( 'houzez_property_metabox_tabs', 'houzez_settings_metabox_tab', 30 );


/**
 * Add settings metaboxes fields
 *
 * @param $metabox_fields
 *
 * @return array
 */
function houzez_settings_metabox_fields( $metabox_fields ) {
	$houzez_prefix = 'fave_';

	

	$fields = array(
		array(
	        'id' => "{$houzez_prefix}property_address",
	        'name' => houzez_option('cl_streat_address', 'Street Address'),
	        'desc' => houzez_option('cl_streat_address_plac', 'Enter only the street name and the building number'),
	        'type' => 'text',
	        'columns' => 6,
	        'tab' => 'property_settings',
	    ),
	    array(
	        'id' => "{$houzez_prefix}property_zip",
	        'name' => houzez_option('cl_zip', 'Postal Code / Zip'),
	        'desc' => "",
	        'type' => 'text',
	        'columns' => 6,
	        'tab' => 'property_settings',
	    ),
	    array(
	        'name' => houzez_option('cl_make_featured', 'Do you want to mark this property as featured?'),
	        'id' => "{$houzez_prefix}featured",
	        'type' => 'radio',
	        'std' => 0,
	        'options' => array(
	            1 => houzez_option('cl_yes', 'Yes '),
	            0 => houzez_option('cl_no', 'No')
	        ),
	        'columns' => 6,
	        'tab' => 'property_settings',
	    ),
	    
	    array(
	        'name' => houzez_option('cl_login_view', 'The user must be logged in to view this property'),
	        'id' => "{$houzez_prefix}loggedintoview",
	        'type' => 'radio',
	        'desc' => houzez_option('cl_login_view_plac', 'If "Yes" then only logged in user can view property details.'),
	        'std' => 0,
	        'options' => array(
	            1 => houzez_option('cl_yes', 'Yes '),
	            0 => houzez_option('cl_no', 'No')
	        ),
	        'columns' => 6,
	        'tab' => 'property_settings',
	    ),

	    array(
	        'id' => "{$houzez_prefix}property_disclaimer",
	        'name' => houzez_option('cl_disclaimer', 'Disclaimer'),
	        'desc' => "",
	        'type' => 'textarea',
	        'columns' => 12,
	        'tab' => 'property_settings',
	    ),
	);

	return array_merge( $metabox_fields, $fields );

}
add_filter( 'houzez_property_metabox_fields', 'houzez_settings_metabox_fields', 30 );

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists