Ejemplo n.º 1
0
 public static function instance($options = array())
 {
     if (is_null(self::$instance) && ZELS_ACTIVE_METABOX) {
         self::$instance = new self($options);
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
<?php

if (!defined('ABSPATH')) {
    die;
}
// Cannot access pages directly.
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// METABOX OPTIONS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$options = array();
// -----------------------------------------
// Post Metabox Options                    -
// -----------------------------------------
$options[] = array('id' => '_portfolio_settings', 'title' => 'Add Portfolio Image', 'post_type' => 'portfolio', 'context' => 'normal', 'priority' => 'default', 'sections' => array(array('name' => 'section_4', 'fields' => array(array('id' => 'upload_gallery', 'type' => 'gallery', 'title' => 'Upload Field', 'desc' => 'Please add image caption or edit image name before upload')))));
Zels_Framework_Metabox::instance($options);