Beispiel #1
0
 /**
  * Singleton Pattern
  * @return class object
  */
 public static function instance()
 {
     if (!is_object(self::$instance)) {
         $class = __CLASS__;
         self::$instance = new $class();
     }
     return self::$instance;
 }
$recthumb = new Recent_thumbs_Widget();
/**
 * enqueue scripts
 */
add_action('enqueue_scripts', 'cwpt_scripts');
function cwpt_scripts()
{
    /**
     * @todo add theme scripts here
     */
    //wp_enqueue_script( 'script_name' );
}
/**
 * ************custom options post type***********************************************
 */
$cwp_ui = cwp_ui::instance();
/**
 * ************Theme Content****************************************************
 */
$cwp_types = new theme_content();
$cwp_types->feedback();
theme_content::add()->article();
theme_content::add()->faq();
/**
 * *************customisations**************************************************
 */
//add more optoion to user profile
cwp_social::contact_info();
//post gallery rotator checkbox
cwp_gallery::gallery_rotator();
core_admin::remove_wp_adminbar_logo();