Пример #1
0
 function getHelp($incTable = true)
 {
     $name = $this->getName();
     try {
         $view = new am4View("shortcode_" . $name);
         $view->assign("shortcode", $this);
         $help = $view->fetch();
         return $help;
     } catch (Exception $e) {
     }
 }
Пример #2
0
 function doIndex($options = null, $errors = array(), $vars = array())
 {
     parent::doIndex(array(), array(), array('hidden' => true));
     $script = am4View::init("bulk_action", $this, am4View::TYPE_JS)->render();
 }
Пример #3
0
 function after_login_widget($instance)
 {
     global $current_user;
     // Get current user's subscription and show usefull links;
     $amember_api = am4PluginsManager::getAPI();
     $view = new am4View("widget_after_login");
     $view->assign("instance", $instance);
     if ($amember_api->isLoggedIn()) {
         $view->assign("user", $amember_api->getUser());
         $view->assign("links", $amember_api->getUserLinks());
     }
     $view->assign('isLoggedIn', $amember_api->isLoggedIn());
     $view->render();
 }