File: /var/www/vhosts/amphoragames.com/httpdocs/en/wp-content/themes/ibuki/framework/meta/footer-meta.php
<?php
add_action('add_meta_boxes', 'az_metabox_page_post');
function az_metabox_page_post(){
/*-----------------------------------------------------------------------------------*/
/* Footer Widget Setting Meta
/*-----------------------------------------------------------------------------------*/
$post_types = array( 'page', 'post', 'portfolio', 'team', 'product');
$meta_box = array(
'id' => 'az-metabox-footer-widget',
'title' => __('Footer Widget Settings', AZ_THEME_NAME),
'description' => __('Here you can configure how your footer widget will appear.', AZ_THEME_NAME),
'post_type' => $post_types,
'context' => 'normal',
'priority' => 'high',
'fields' => array(
array(
'name' => __('Footer Widget Settings', AZ_THEME_NAME),
'desc' => __('Enable or Disable Footer Widget Area.', AZ_THEME_NAME),
'id' => '_az_footer_widget_settings',
'type' => 'select',
'std' => 'disabled',
'options' => array(
"enabled" => "Enabled",
"disabled" => "Disabled"
)
)
)
);
$callback = create_function( '$post,$meta_box', 'az_create_meta_box( $post, $meta_box["args"] );' );
foreach( $post_types as $post_type) {
add_meta_box(
$meta_box['id'],
$meta_box['title'],
$callback,
$post_type,
$meta_box['context'],
$meta_box['priority'],
$meta_box
);
}
}
?>