'0', // show this when blank ); private static $allPages; /* * Display for options and meta */ public function display() { $this->echoOptionHeader(); // Remember the pages so as not to perform any more lookups if ( ! isset( self::$allPages ) ) { self::$allPages = get_pages(); } echo ""; $this->echoOptionFooter(); } /* * Display for theme customizer */ public function registerCustomizerControl( $wp_customize, $section, $priority = 1 ) { $wp_customize->add_control( new TitanFrameworkCustomizeControl( $wp_customize, $this->getID(), array( 'label' => $this->settings['name'], 'section' => $section->settings['id'], 'settings' => $this->getID(), 'type' => 'dropdown-pages', 'description' => $this->settings['desc'], 'priority' => $priority, ) ) ); } }