ID; $title = $page->post_title; $pages[$id] = $title; } return $pages; } protected $widget = array( 'description' => 'Displays the most recently modified pages under a certain parent page', 'do_wrapper' => true, 'view' => false, 'fields' => array( array( 'name' => 'Title', 'desc' => '', 'id' => 'title', 'type' => 'text', 'std' => 'Widget Title' ), array( 'name' => 'Parent Page', 'desc' => '', 'id' => 'parentpagetitle', 'type' => 'select', 'options' => array('test'=>'test')//$this->get_page_option_array() ) ) ); /** * Widget HTML * * If you want to have an all inclusive single widget file, you can do so by * dumping your css styles with base_encoded images along with all of your * html string, right into this method. * * @param array $widget * @param array $params * @param array $sidebar */ function html($widget, $params, $sidebar) { echo '

Recently Edited Docs