예제 #1
0
 function details()
 {
     $juser =& JFactory::getUser();
     $username = JRequest::getString('user', $juser->username);
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'general.php';
     $profile_id = generalHelpers::getUserId($username);
     if (is_null($profile_id)) {
         $profile_id = $juser->id;
     }
     $id = JRequest::getInt('id');
     $rows = new stdClass();
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'user.php';
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'wedding.php';
     $tmpl = userHelpers::getCurrentTemplate($profile_id);
     $css = weddingHelper::getTemplateFolder('css', $tmpl->code);
     $images = weddingHelper::getTemplateFolder('images', $tmpl->code);
     $rows->images = $images;
     $rows->css = $css;
     $rows->menu = userHelpers::getUserMenu($profile_id);
     $this->_view->addTemplatePath(JPATH_COMPONENT . DS . 'templates' . DS . $tmpl->code . DS);
     $rows->userdata = userHelpers::getUserData($profile_id);
     $rows->photos = $this->_model->getPhotos($id);
     $this->_view->setLayout('index');
     $this->_view->details($rows);
 }
예제 #2
0
 function getUserTemplate()
 {
     $juser =& JFactory::getUser();
     $profile_id = JRequest::getInt('user_id', $juser->id);
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'user.php';
     return userHelpers::getCurrentTemplate($profile_id);
 }
예제 #3
0
 function display()
 {
     $juser =& JFactory::getUser();
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'template.php';
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'user.php';
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'wedding.php';
     $user_template = userHelpers::getCurrentTemplate($juser->id);
     $templates = templateHelpers::getAllTemplates();
     $this->_view->setLayout('templates.default');
     $this->_view->display($juser, $templates, $user_template, $css);
 }