public static function instance($options = array()) { if (is_null(self::$instance) && CS_ACTIVE_CUSTOMIZE) { self::$instance = new self($options); } return self::$instance; }
<?php if (!defined('ABSPATH')) { die; } // Cannot access pages directly. // =============================================================================================== // ----------------------------------------------------------------------------------------------- // CUSTOMIZE SETTINGS // ----------------------------------------------------------------------------------------------- // =============================================================================================== $options = array(); // ----------------------------------------- // Customize Core Fields - // ----------------------------------------- $options[] = array('name' => 'lazycat', 'title' => 'Lazycat密钥验证', 'settings' => array(array('name' => 'lazycat_key', 'control' => array('label' => '密钥', 'type' => 'text')))); CSFramework_Customize::instance($options);