Beispiel #1
0
 public function __construct($cpt, $args = array())
 {
     if (!class_exists('MultiPostThumbnails')) {
         throw new Exception('This class requires the MultiPostThumbnails plugin');
     }
     parent::__construct($cpt, $args);
 }
Beispiel #2
0
 public function metabox($id, $page = null)
 {
     if (!$page) {
         global $post;
         $page = $post;
     }
     return MetaBox::value($id, $page->ID);
 }
Beispiel #3
0
 public function __construct($cpt, $args = array())
 {
     parent::__construct($cpt, $args);
 }