HEX
Server: Apache
System: Linux c119.dattaweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: c1190199 (57165)
PHP: 7.4.33
Disabled: mail, system, shell, exec, system_exec, shell_exec, mysql_pconnect, passthru, popen, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, escapeshellarg, escapeshellcmd, eval, dl, imap_mail, libvirt_connect, gnupg_init, unsetenv, apache_setenv, pcntl_exec, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, opcache_get_status, opcache_reset, opcache_get_configuration
Upload Files
File: /home/c1190199/public_html/_alex/wp-content/plugins/cooper-plugins/metaboxes.php
<?php
/**
 * Registering meta boxes
 *
 * All the definitions of meta boxes are listed below with comments.
 * Please read them CAREFULLY.
 *
 * You also should read the changelog to know what has been changed before updating.
 *
 * For more information, please visit:
 * @link http://www.deluxeblogtips.com/meta-box/docs/
 */

/********************* META BOX DEFINITIONS ***********************/

/**
 * Prefix of meta keys (optional)
 * Use underscore (_) at the beginning to make keys hidden
 * Alt.: You also can make prefix empty to disable it
 */
// Better has an underscore as last sign
$prefix = 'rnr_';

global $meta_boxes;

$meta_boxes = array();

global $smof_data;

/* ----------------------------------------------------- */
// Page Settings
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'pageseting',
	'title' => 'Page Settings',
	'pages' => array( 'page' ),
	'context' => 'normal',

	// List of meta fields
	'fields' => array(	
		
		array(
			'name'     => __( 'Section Title', 'rwmb' ),
			'id'   => $prefix . 'section-title-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'rwmb' ),
				'no' => __( 'Disable', 'rwmb' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),
		array(
			'name'		=> 'Section Title Text',
			'id'		=> $prefix . 'sec-title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_section-title-on-off', '!=', 'yes' )
		),		
		array(
			'name'		=> 'Section Subtitle Text',
			'id'		=> $prefix . 'sec-sub-title',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> '',
			'hidden' => array( 'rnr_section-title-on-off', '!=', 'yes' )			
		),			
		array(
			'name'     => __( 'Section Parallax Title', 'rwmb' ),
			'id'   => $prefix . 'section-parallax-title-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'rwmb' ),
				'no' => __( 'Disable', 'rwmb' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),		
		array(
			'name'		=> 'Section Parallax Title Text',
			'id'		=> $prefix . 'sec-parallax-title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_section-parallax-title-on-off', '!=', 'yes' )
		),	
		array(
			'name'		=> 'Section Image Title Text',
			'id'		=> $prefix . 'sec-menu-title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),			
		array(
			'name'		=> 'Open as a separate page',
			'id'		=> $prefix . 'open_page',
			'type'      => 'checkbox',
			'desc'		=> 'Check it while using "Home Page Menu" and want to open this page as a separate page.',
			// Value can be 0 or 1
			'std'  => 0,
		),			
			
	
	)
);

/* ----------------------------------------------------- */
// Page Settings Intro
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'pagesetingintro',
	'title' => 'Page Intro Section Settings',
	'hide'   => array(
    // List of page templates (used for page only). Array. Optional.
    'template'    => array('portfolio-page.php'),
	),	
	'pages' => array( 'page' ),
	'context' => 'normal',

	// List of meta fields
	'fields' => array(	
		
		array(
			'name'     => __( 'Intro Section', 'pgintro' ),
			'id'   => $prefix . 'section-intro-on-off',
			'type'     => 'radio',
			'desc'		=> 'Select "Default or Home or Blog Page Template" At Page Attributes Template Option.',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'pgintro' ),
				'no' => __( 'Disable', 'pgintro' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'no',

		),							
		array(
			'name'     => __( 'Intro Section Style', 'pgintrost' ),
			'id'   => $prefix . 'sec-intro-style',
			'type'     => 'select_advanced',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'image' => __( 'Static Image', 'pgintrost' ),
				'image2' => __( 'Impulse Image', 'pgintrost' ),
				'slider' => __( 'Slider', 'pgintrost' ),
				'slideshow' => __( 'Slideshow', 'pgintrost' ),
				'carousel' => __( 'Carousel', 'pgintrost' ),
				'video' => __( 'Video', 'pgintrost' ),
				'revolution' => __( 'Revolution Slider', 'pgintrost' ),
				
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'image',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )

		),	
		array(
			'name'		=> 'Intro Section Image',
			'id'		=> $prefix . 'intro-section-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Select " Static Image" At Intro Section Style Options &amp; Upload Image.',
			'max_file_uploads' => '1',
			'hidden' => array( 'rnr_sec-intro-style', '!=', 'image' )
		),
		
		array(
			'name'		=> 'Intro Section Impulse Image',
			'id'		=> $prefix . 'intro-section-impulse-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Select "Impulse Image" At Intro Section Style Options &amp; Upload Image.',
			'max_file_uploads' => '1',
			'hidden' => array( 'rnr_sec-intro-style', '!=', 'image2' )
		),
		
		array(
			'name'		=> 'Intro Slideshow Images',
			'id'		=> $prefix . 'intro-section-slideshow-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Select "Impulse Image" At Intro Section Style Options &amp; Upload Image.',
			'max_file_uploads' => '1000',
			'hidden' => array( 'rnr_sec-intro-style', '!=', 'slideshow' )
		),
		
		array(
			'name'		=> 'Slider Category',
			'id'		=> $prefix . 'intro-car-post-cat',
			'desc'		=> 'Select "Carousel" At Intro Section Style Options &amp; Insert Slide Post Category Name Ex: Home (Optional)',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_sec-intro-style', '!=', 'carousel' )
		),

		array(
			'name'		=> 'Slider Category',
			'id'		=> $prefix . 'intro-slider-post-cat',
			'desc'		=> 'Select "Slider" At Intro Section Style Options &amp; Insert Slide Post Category Name Ex: Home (Optional)',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_sec-intro-style', '!=', 'slider' )
		),

		
		array(
			'name'		=> 'Youtube Video ID',
			'id'		=> $prefix . 'intro-section-video',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Select "Video" At Intro Section Style &amp; Insert Youtube Video ID Ex: Hg5iNVSp2z8',
			'hidden' => array( 'rnr_sec-intro-style', '!=', 'video' )
		),		
		array(
			'name'		=> 'Revolution Slider ID',
			'id'		=> $prefix . 'rev-alias',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Select "Revolution Slider" At Intro Section Style &amp; Insert Revolution Slider Shortcode ID.',
			'hidden' => array( 'rnr_sec-intro-style', '!=', 'revolution' )
		),		
		array(
			'name'		=> 'Intro Section Title',
			'id'		=> $prefix . 'intro-section-title',
			'desc'		=> 'Insert Intro Section Title Text Here.',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )
		),						
		array(
			'name'		=> 'Intro Section Subtitle',
			'id'		=> $prefix . 'intro-section-subtitle',
			'desc'		=> 'Insert Intro Section Subtitle Text Here.',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> '',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )
		),	
		array(
			'name'		=> 'Intro Section Content',
			'id'		=> $prefix . 'intro-section-content',
			'desc'		=> 'Insert Intro Section Content Text Here.',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> '',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )
		),
		array(
			'name'		=> 'Button Name',
			'id'		=> $prefix . 'intro-section-button',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Insert Button Name Here.',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )
		),
		array(
			'name'     => __( 'Button URL ScrollTo', 'cooper' ),
			'id'   => $prefix . 'intro-section-button-scrollto',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'cooper' ),
				'no' => __( 'Disable', 'cooper' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'no',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )

		),			
		array(
			'name'		=> 'Button Link URL',
			'id'		=> $prefix . 'intro-section-button-url',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Insert Button URL Here. EX: #about (Scrolling Page Slug Name)',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )
		),	
		array(
			'name'		=> 'Button Icon Name',
			'id'		=> $prefix . 'intro-section-button-icon',
			'desc'		=> 'Insert font awesome icon name ex: fa-flag-checkered',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_section-intro-on-off', '!=', 'yes' )
		),		
				
	
	)
);



/* ----------------------------------------------------- */
// Default Page Settings
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'defaultpageseting',
	'title' => 'Default Page Settings',
	'hide'   => array(
    // List of page templates (used for page only). Array. Optional.
    'template'    => array( 'blog.php','portfolio-page.php','home-page.php'),
	),	
	'pages' => array( 'page' ),
	'context' => 'normal',

	// List of meta fields
	'fields' => array(	
		
		array(
			'name'     => __( 'Default Page Layout', 'pgly' ),
			'id'   => $prefix . 'page-layout',
			'type'     => 'select_advanced',
			'desc'		=> '',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
			    'default' => __( 'Default', 'pfly' ), 
			    'full' => __( 'Full Width', 'pfly' ), 
			    'right' => __( 'Right Sidebar', 'pfly' ),
			),
            'std'   => 'full',			
            'radio'     => true,			

		),					
	
	)
);

/* ----------------------------------------------------- */
// Blog Page Settings
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'blogpageseting',
	'title' => 'Blog Page Settings',
	'show'   => array(
    // List of page templates (used for page only). Array. Optional.
    'template'    => array( 'blog.php'),
	),		
	'pages' => array( 'page' ),
	'context' => 'normal',

	// List of meta fields
	'fields' => array(				

		array(
			'name'     => __( 'Blog Page Layout', 'bgly' ),
			'id'   => $prefix . 'blog-page-layout',
			'type'     => 'select_advanced',
			'desc'		=> '',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
			    'default' => __( 'Default', 'pfly' ), 
			    'right' => __( 'Right Sidebar', 'pfly' ),
			),
            'std'   => 'right',
            'radio'     => true,			

		),			

			array(
				'name'       => __( 'Number Of Post Show', 'blps' ),
				'id'         => $prefix . 'blog-post-show',
				'type'       => 'slider',
				// Text labels displayed before and after value
				'prefix'     => __( '', 'blps' ),
				'suffix'     => __( ' Posts', 'blps' ),
				'js_options' => array(
					'min'  => 1,
					'max'  => 100,
					'step' => 1,
				),
			),	

			array(
			'name'		=> 'Exclude Category',
			'id'		=> $prefix . 'blog-post-cat',
			'desc'		=> 'Enter category name ex: web design, web development (Optional)',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),
				
	
	)
);



/* ----------------------------------------------------- */
// Portfolio Page Settings
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'portpageseting',
	'title' => 'Portfolio Page Settings',
	'show'   => array(
    // List of page templates (used for page only). Array. Optional.
    'template'    => array( 'portfolio-page.php'),
	),		
	'pages' => array( 'page' ),
	'context' => 'normal',

	// List of meta fields
	'fields' => array(				

		array(
			'name'     => __( 'Portfolio Page Layout', 'pfly' ),
			'id'   => $prefix . 'portfolio-page-layout',
			'desc'		=> 'Select "Portfolio Page Template" At Page Attributes Template Option.',
			'type'     => 'select_advanced',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'default' => __( 'Style 1', 'pfly' ),
				'default2' => __( 'Style 2', 'pfly' ),
				'inner' => __( 'Style 3', 'pfly' ),
				'full' => __( 'Style 4', 'pfly' ),
				
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'default',		

		),             	
		array(
			'name'     => __( 'Portfolio Filter', 'rwmb' ),
			'id'   => $prefix . 'portfolio-filter-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'rwmb' ),
				'no' => __( 'Disable', 'rwmb' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),		          	
			array(
				'name'       => __( 'Number Of Post Show', 'blps' ),
				'id'         => $prefix . 'portfolio-post-show',
				'type'       => 'slider',
				// Text labels displayed before and after value
				'prefix'     => __( '', 'blps' ),
				'suffix'     => __( ' Posts', 'blps' ),
				'js_options' => array(
					'min'  => 1,
					'max'  => 100,
					'step' => 1,
				),
			),	

			array(
			'name'		=> 'Exclude Category',
			'id'		=> $prefix . 'portfolio-post-cat',
			'desc'		=> 'Enter category name ex: web design, web development (Optional)',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_portfolio-filter-on-off', '!=', 'no' )
		),		
	
	)
);



/* ----------------------------------------------------- */
// Blog Post Settings
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'blog_options',
	'title' => 'Post Options',
	'pages' => array( 'post'),
	'context' => 'normal',

	// List of meta fields
	'fields' => array(
		array(
			'name'		=> 'Icon Name',
			'id'		=> $prefix . 'blog_icon',
			'desc'		=> 'Insert font awesome icon name ex: fa-laptop',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),	
		array(
			'name'		=> 'Gallery Images',
			'id'		=> $prefix . 'blog-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Select "Gallery" At Post Format Options &amp; Upload Images.',
		),			
		array(
			'name'		=> 'Vimeo/Youtube Video Link',
			'id'		=> $prefix . 'bl-video',
			'clone'		=> false,
			'type'		=> 'textarea',
			'desc'		=> 'Select "Video" At Post Format Options &amp; Insert Vimeo/Youtube Embed Video Link URL.',
		),		
		array(
			'name'		=> 'Souncloud Audio Link',
			'id'		=> $prefix . 'bl-audio',
			'desc'		=> 'Select "Audio" At Post Format Options &amp; Insert Souncloud Audio Embed Link URL.',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> ''
		),

		
	)
);
$meta_boxes[] = array(
	'id' => 'blog_details',
	'title' => 'Post Details Page',
	'pages' => array( 'post' ),
	'context' => 'normal',	

	'fields' => array(
	
		array(
			'name'		=> 'Blog Image Section Title',
			'id'		=> $prefix . 'blog-section-title',
			'desc'		=> 'Insert Blog Image Section Title Text Here. Ex: My Journal',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),	
		array(
			'name'		=> 'Blog Section Image',
			'id'		=> $prefix . 'blog-section-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Upload Blog Section Image Here.',
		),
		
		array(
			'name'     => __( 'Section Title', 'rwmb' ),
			'id'   => $prefix . 'blog-sec-title-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'rwmb' ),
				'no' => __( 'Disable', 'rwmb' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),		
		array(
			'name'		=> 'Section Title Text',
			'id'		=> $prefix . 'blog-sec-title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_blog-sec-title-on-off', '!=', 'yes' )
		),		
		array(
			'name'		=> 'Section Subtitle Text',
			'id'		=> $prefix . 'blog-sec-sub-title',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> '',
			'hidden' => array( 'rnr_blog-sec-title-on-off', '!=', 'yes' )
		),	
		array(
			'name'     => __( 'Section Parallax Title', 'rwmb' ),
			'id'   => $prefix . 'blog-sec-parallax-title-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'rwmb' ),
				'no' => __( 'Disable', 'rwmb' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),			
		array(
			'name'		=> 'Section Parallax Title Text',
			'id'		=> $prefix . 'blog-sec-parallax-title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_blog-sec-parallax-title-on-off', '!=', 'yes' )
		),		
		array(
			'name'		=> 'Content Title Name',
			'id'		=> $prefix . 'blog_details_title',
			'desc'		=> 'Ex: Integer Sagittis',
			'type'		=> 'textarea',
			'std'		=> ''
		),
	
	)
);


/* ----------------------------------------------------- */
/* Portfolio Post Type Metaboxes
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'portfolio_options',
	'title' => 'Portfolio Options',
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(
		
		array(
			'name'     => __( 'Image Size', 'prfimg' ),
			'id'   => $prefix . 'port-img-size',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Default', 'prfimg' ),
				'full' => __( 'Full', 'prfimg' ),
				
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),
		array(
			'name'		=> 'Icon Name',
			'id'		=> $prefix . 'port_icon',
			'desc'		=> 'Insert font awesome icon name ex: fa-laptop',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),			
		array(
			'name'     => __( 'Post Formats', 'prtfrm' ),
			'id'   => $prefix . 'portfolio-post-formats',
			'type'     => 'select_advanced',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'image' => __( 'Image', 'prtfrm' ),
				'slider' => __( 'Slider', 'prtfrm' ),
				'gallery' => __( 'Gallery', 'prtfrm' ),
				'video' => __( 'Video', 'prtfrm' ),
				
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'image',

		),				
	)
);

$meta_boxes[] = array(
	'id' => 'portfolio_options_slider',
	'title' => 'Portfolio Slider/Gallery Options',
	'hide'   => array(
	'input_value'   => array(
    '#rnr_portfolio-post-formats'  => 'video',
    ),
	),	
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(
		
		array(
			'name'		=> 'Slider/Gallery Images',
			'id'		=> $prefix . 'portfolio-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Select "Slider or Gallery" At Portfolio Post Formats Options &amp; Upload Image.',
		),					
	)
);

$meta_boxes[] = array(
	'id' => 'portfolio_options_video',
	'title' => 'Portfolio Video Options',
	'show'   => array(
	'input_value'   => array(
    '#rnr_portfolio-post-formats' => 'video',
    ),
	),	
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(
		
		array(
			'name'     => __( 'Video Player', 'prvdfr' ),
			'id'   => $prefix . 'portfolio-video-player',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'YouTube', 'prvdfr' ),
				'no' => __( 'Vimeo', 'prvdfr' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),		
		array(
			'name'		=> 'YouTube/Vimeo Video Link',
			'id'		=> $prefix . 'portfolio-video',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Select "YouTube or Vimeo" At Portfolio Video Player Options &amp; Insert YouTube/Vimeo Video ID. Ex: Hg5iNVSp2z8',
		),					
	)
);

$meta_boxes[] = array(
	'id' => 'portfolio_details',
	'title' => 'Portfolio Details',
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(
		array(
			'name'     => __( 'Section Title', 'rwmb' ),
			'id'   => $prefix . 'port-sec-title-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'rwmb' ),
				'no' => __( 'Disable', 'rwmb' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),			
		array(
			'name'		=> 'Section Title Text',
			'id'		=> $prefix . 'port-sec-title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_port-sec-title-on-off', '!=', 'yes' )
		),		
		array(
			'name'		=> 'Section Subtitle Text',
			'id'		=> $prefix . 'port-sec-sub-title',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> '',
			'hidden' => array( 'rnr_port-sec-title-on-off', '!=', 'yes' )
		),
		array(
			'name'     => __( 'Section Parallax Title', 'rwmb' ),
			'id'   => $prefix . 'port-sec-parallax-title-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'rwmb' ),
				'no' => __( 'Disable', 'rwmb' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),	
		array(
			'name'		=> 'Section Parallax Title Text',
			'id'		=> $prefix . 'port-sec-parallax-title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> '',
			'hidden' => array( 'rnr_port-sec-parallax-title-on-off', '!=', 'yes' )
		),		
		array(
			'name'		=> 'Content Title Name',
			'id'		=> $prefix . 'prf_details_title',
			'desc'		=> 'Ex: Project Details',
			'type'		=> 'textarea',
			'std'		=> ''
		),
		array(
			'name'		=> 'Link Name',
			'id'		=> $prefix . 'prf_link_title',
			'desc'		=> 'Ex: Launch Project',
			'type'		=> 'text',
			'std'		=> ''
		),
		array(
			'name'		=> 'Link URL',
			'id'		=> $prefix . 'prf_link_url',
			'desc'		=> 'Write project link url ex: https://themeforest.net/user/webRedox/portfolio',
			'type'		=> 'text',
			'std'		=> ''
		),
		array(
			'name'     => __( 'Project Button Target', 'anema' ),
			'id'   => $prefix . 'prf_details_link-target-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Same Window', 'anema' ),
				'no' => __( 'New Window', 'anema' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),		
		array(
			'name'     => __( 'Details Info Show', 'prfinf' ),
			'id'   => $prefix . 'prf_details_info-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Yes', 'prfinf' ),
				'no' => __( 'No', 'prfinf' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',
		),	
		array(
			'name'     => __( 'Project Date', 'anema' ),
			'id'   => $prefix . 'prf-project-date-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'anema' ),
				'no' => __( 'Disable', 'anema' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',
			'hidden' => array( 'rnr_prf_details_info-on-off', '!=', 'yes' )
		),
		array(
			'name'     => __( 'Project Category', 'anema' ),
			'id'   => $prefix . 'prf-project-cat-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'anema' ),
				'no' => __( 'Disable', 'anema' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',
			'hidden' => array( 'rnr_prf_details_info-on-off', '!=', 'yes' )
		),	
		
		array(
			'name'     => __( 'Details Custom Info', 'anema' ),
			'id'   => $prefix . 'prf_details_custom-on-off',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Yes', 'anema' ),
				'no' => __( 'No', 'anema' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'no',
			'hidden' => array( 'rnr_prf_details_info-on-off', '!=', 'yes' )
		),			
		array(
			'name'		=> 'Details Info',
			'id'		=> $prefix . 'prf_info_details',
			'desc'		=> '',
			'type'		=> 'textarea',
			'clone' => true,
			'desc'		=> 'Insert details info ex: &lt;span&gt;Address&lt;/span&gt; :  webredox.net',
			'hidden' => array( 'rnr_prf_details_custom-on-off', '!=', 'yes' )
		),		
	)
);

$meta_boxes[] = array(
	'id' => 'portfolio_section',
	'title' => 'Portfolio Section',
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(
			
		array(
			'name'     => __( 'Section Style', 'prtscst' ),
			'id'   => $prefix . 'portfolio-section-style',
			'type'     => 'select_advanced',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'default' => __( 'Default', 'prtscst' ),
				'slider' => __( 'Slider', 'prtscst' ),
				'video' => __( 'Video', 'prtscst' ),
				
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'default',

		),
		array(
			'name'		=> 'Portfolio Image Section Title',
			'id'		=> $prefix . 'portfolio-section-title',
			'desc'		=> 'Insert Portfolio Image Section Title Text Here. Ex: Project Title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),	
		array(
			'name'		=> 'Portfolio Section Image',
			'id'		=> $prefix . 'portfolio-section-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Upload Portfolio Section Image here.',
		),		
		
	)
);



$meta_boxes[] = array(
	'id' => 'portfolio_section_video',
	'title' => 'Portfolio Video Section',
	// Show this meta box for posts matched below conditions
	'show'   => array(
	'input_value'   => array(
    '#rnr_portfolio-section-style'   => 'video',
    ), ),
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(				
		
		array(
			'name'		=> 'Youtube Video ID',
			'id'		=> $prefix . 'portfolio-section-video',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Insert Portfolio Intro Section Youtube Video ID Here. Ex: RRPU_mfhYGA',
		),			
		
	)
);

$meta_boxes[] = array(
	'id' => 'portfolio_section_slider',
	'title' => 'Portfolio Slider Section',
	// Show this meta box for posts matched below conditions
	'show'   => array(
	'input_value'   => array(
    '#rnr_portfolio-section-style'   => 'slider',
    ), ),
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(				
		
		array(
			'name'		=> 'Portfolio Intro Section Slider Images',
			'id'		=> $prefix . 'port-section-intro-slider',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Upload Slider Images Here.',
		),			
		
	)
);

$meta_boxes[] = array(
	'id' => 'portfolio_section_video_slider',
	'title' => 'Portfolio Overall Section',
	// Show this meta box for posts matched below conditions
	'hide'   => array(
	'input_value'   => array(
    '#rnr_portfolio-section-style'   => 'default',
    ), ),
	'pages' => array( 'portfolio' ),
	'context' => 'normal',	

	'fields' => array(				
		array(
			'name'		=> 'Portfolio Intro Section Title',
			'id'		=> $prefix . 'port-section-intro-title',
			'desc'		=> 'Insert Portfolio Intro Section Title Text Here. Ex: Project Title',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),						
		array(
			'name'		=> 'Portfolio Intro Section Subtitle',
			'id'		=> $prefix . 'port-section-intro-subtitle',
			'desc'		=> 'Insert Portfolio Intro Section Subtitle Text Here.',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> ''
		),	
		array(
			'name'		=> 'Portfolio Intro Section Content',
			'id'		=> $prefix . 'port-section-intro-content',
			'desc'		=> 'Insert Portfolio Intro Section Content Text Here.',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> ''
		),
		array(
			'name'		=> 'Portfolio Intro Button Name',
			'id'		=> $prefix . 'port-section-intro-button',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Insert Portfolio Intro Button Name Here.',
		),
		array(
			'name'     => __( 'Button URL ScrollTo', 'cooper' ),
			'id'   => $prefix . 'port-section-intro-button-scrollto',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'cooper' ),
				'no' => __( 'Disable', 'cooper' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'no',

		),			
		array(
			'name'		=> 'Button Link URL',
			'id'		=> $prefix . 'port-section-intro-button-url',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Insert Button URL Here. EX: #sec-scroll (Scrolling Page Slug Name)',
		),			
		array(
			'name'		=> 'Portfolio Intro Section Image',
			'id'		=> $prefix . 'port-section-intro-image',
			'clone'		=> false,
			'type'		=> 'image_advanced',
			'desc'		=> 'Upload Portfolio Intro Section Image Here.',
		),			
		
	)
);


/* ----------------------------------------------------- */
/* Resume Post Type Metaboxes
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'resume_options',
	'title' => 'Resume Options',
	'pages' => array( 'resume' ),
	'context' => 'normal',	
	'fields' => array(

		array(
			'name'		=> 'Icon 1',
			'id'		=> $prefix . 'resume_icon',
			'desc'		=> 'Insert <strong><a href="https://fontawesome.com/v4/icons/" target="_blank">Fontawesome</a></strong> Icon Class Name Here. <br> Ex: fa-briefcase',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),
		array(
			'name'		=> 'Time Duration',
			'id'		=> $prefix . 'resume_time',
			'desc'		=> 'Insert Time Duration Ex: 2012-2016',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),	
		array(
			'name'		=> 'Icon 2',
			'id'		=> $prefix . 'resume_icon2',
			'desc'		=> 'Insert <strong><a href="https://fontawesome.com/v4/cheatsheet/" target="_blank">Fontawesome</a></strong> Icon Class Code Here. <br> Ex: \f0c3 <br> \f0f4',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),		
		
	)
);

/* ----------------------------------------------------- */
/* Services Post Type Metaboxes
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'services_options',
	'title' => 'Services Options',
	'pages' => array( 'services' ),
	'context' => 'normal',	
	'fields' => array(
		array(
			'name'     => __( '1st Services Selected', 'cooper' ),
			'id'   => $prefix . 'services_selected',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(				
				'no' => __( 'Disable', 'cooper' ),
				'yes' => __( 'Enable', 'cooper' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'no',
			'desc'		=> 'Select "Enable" option for show the 1st timeline (Required).',
		),	
		array(
			'name'		=> 'Icon',
			'id'		=> $prefix . 'services_icon',
			'desc'		=> 'Insert font awesome icon name ex: fa-desktop',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),		
		array(
			'name'		=> 'List Item',
			'id'		=> $prefix . 'services_subtitle',
			'desc'		=> 'Insert Services List Item Ex: Flayers / Marketing',
			'clone'		=> true,
			'type'		=> 'text',
			'std'		=> ''
		),		
		array(
			'name'		=> 'Price',
			'id'		=> $prefix . 'services_price',
			'desc'		=> 'Insert Price Amount Ex: 450$-600$',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),
		
	)
);

/* ----------------------------------------------------- */
/* Testimonial Post Type Metaboxes
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'testimonial_options',
	'title' => 'Testimonial Options',
	'pages' => array( 'testimonials' ),
	'context' => 'normal',	
	'fields' => array(
		array(
			'name'		=> 'Testimonial Rating',
			'id'		=> $prefix . 'testi_rating',
			'desc'		=> 'Insert Testimonial Star Rating Here. Ex: &lt;i class="fa fa-star"&gt;&lt;/i&gt;',
			'clone'		=> true,
			'type'		=> 'text',
			'std'		=> ''
		),	
		array(
			'name'		=> 'Link Name',
			'id'		=> $prefix . 'testimonial_linkname',
			'desc'		=> 'Insert Link Name Ex: Via Twitter',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),		
		array(
			'name'		=> 'Link URL',
			'id'		=> $prefix . 'testimonial_linkurl',
			'desc'		=> 'Insert Link URL Ex: https://twitter.com/webRedox',
			'clone'		=> false,
			'type'		=> 'text',
			'std'		=> ''
		),
		
	)
);


/* ----------------------------------------------------- */
/* Slider Post Type Metaboxes
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'slider_options',
	'title' => 'Slider Options',
	'pages' => array( 'slider' ),
	'context' => 'normal',	
	'fields' => array(
	
		array(
			'name'		=> 'Slide Title',
			'id'		=> $prefix . 'intro-slider-title',
			'desc'		=> 'Insert Slide Title Text.',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> ''
		),		
		array(
			'name'		=> 'Slide Subtitle',
			'id'		=> $prefix . 'intro-slider-subtitle',
			'desc'		=> 'Insert Slide Subtitle Text.',
			'clone'		=> false,
			'type'		=> 'textarea',
			'std'		=> ''
		),
		array(
			'name'		=> 'Button Name',
			'id'		=> $prefix . 'slider-intro-button',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Insert Button Name Here.',
		),
		array(
			'name'     => __( 'Button URL ScrollTo', 'cooper' ),
			'id'   => $prefix . 'slider-intro-button-scrollto',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Enable', 'cooper' ),
				'no' => __( 'Disable', 'cooper' ),
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'no',

		),			
		array(
			'name'		=> 'Button Link URL',
			'id'		=> $prefix . 'slider-intro-button-url',
			'clone'		=> false,
			'type'		=> 'text',
			'desc'		=> 'Insert Button URL Here. EX: #about (Scrolling Page Slug Name)',
		),					
		array(
			'name'     => __( 'Slide Title Style', 'sldtlst' ),
			'id'   => $prefix . 'intro-slider-title-style',
			'type'     => 'select_advanced',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'left' => __( 'Left', 'sldtlst' ),
				'right' => __( 'Right', 'sldtlst' ),
				
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'left',

		),	
		
		
	)
);


/* ----------------------------------------------------- */
/* Portfolio Post Type Metaboxes
/* ----------------------------------------------------- */

$meta_boxes[] = array(
	'id' => 'shop_options',
	'title' => 'Product Image Options',
	'pages' => array( 'product' ),
	'context' => 'normal',	

	'fields' => array(
		
		array(
			'name'     => __( 'Image Size', 'prfimg' ),
			'id'   => $prefix . 'port-pro-img-size',
			'type'     => 'radio',
			// Array of 'value' => 'Label' pairs for select box
			'options'  => array(
				'yes' => __( 'Default', 'prfimg' ),
				'full' => __( 'Dubble', 'prfimg' ),
				
			),
			// Select multiple values, optional. Default is false.
			'std'         => 'yes',

		),
						
	)
);

/********************* META BOX REGISTERING ***********************/

/**
 * Register meta boxes
 *
 * @return void
 */
function cooper_register_meta_boxes()
{
	global $meta_boxes;

	// Make sure there's no errors when the plugin is deactivated or during upgrade
	if ( class_exists( 'RW_Meta_Box' ) )
	{
		foreach ( $meta_boxes as $meta_box )
		{
			new RW_Meta_Box( $meta_box );
		}
	}
}

// Hook to 'admin_init' to make sure the meta box class is loaded before
// (in case using the meta box class in another plugin)
// This is also helpful for some conditionals like checking page template, categories, etc.
add_action( 'admin_init', 'cooper_register_meta_boxes' );