/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Links'; if (VPost::search_button(false)) { $this->_search = VPost::search('foo'); } if ($this->_user['settings']) { $this->update(); $this->delete(); $this->get_links(); } }
/** * Retrieve the template list from lynxpress.org * * @access private */ private function get_templates() { try { $url = 'http://lynxpress.org/admin/index.php?ns=rpc&action=get_templates'; if (VPost::search_button(false) && VPost::search(false)) { $url .= '&search=' . VPost::search(); } else { $url .= '&limit=10'; } $curl = new Curl($url); $this->_templates = json_decode($curl->_content, true); if (isset($this->_templates['message'])) { throw new Exception($this->_templates['message']); } } catch (Exception $e) { $this->_action_msg = ActionMessages::custom_wrong($e->getMessage()); $this->_templates = array(); } }
/** * Display plugins action in library * * @static * @access public */ public static function lib_actions() { echo '<div id="lib_plg_act">' . '<h3>This is the list of plugins registered on lynxpress.org</h3>' . '<input id="search_input" class="input" type="text" name="search" value="' . VPost::search() . '" placeholder="Search" />' . '<input class="button" type="submit" name="search_button" value="Search Plugins" />' . '</div>'; }