function display($tpl = null) { $this->setToolBar(); $requiredSetup = array(); //get all files required for setup $setupRules = XiptSetupHelper::getOrderedRules(); //for each file check that setup is required or not & get message a/c to this. foreach ($setupRules as $setup) { //get object of class $setupObject = XiptFactory::getSetupRule($setup['name']); if (!$setupObject->isApplicable()) { continue; } $helpMsg[$setup['name']] = $setupObject->getHelpMsg($setup['name']); $data = $setupObject->getMessage(); $requiredSetup[$setup['name']]['done'] = $data['done']; $requiredSetup[$setup['name']]['message'] = $data['message']; $requiredSetup[$setup['name']]['type'] = $setup['type']; } // to check that setup screen is clean or not $mysess = JFactory::getSession(); $mysess->set('requireSetupCleanUp', false); foreach ($requiredSetup as $req) { if ($req["done"] == false) { $mysess->set('requireSetupCleanUp', true); break; } } $pane =& JPane::getInstance('sliders'); $this->assignRef('pane', $pane); $this->assign('requiredSetup', $requiredSetup); $this->assign('helpMsg', $helpMsg); $this->assign('setupRules', $setupRules); parent::display($tpl); }
function display($tpl = null) { $this->setToolbar(); $pane = JPane::getInstance('sliders'); $this->assignRef('pane', $pane); parent::display($tpl); }
function edit($id, $tpl = 'edit') { // For JomSocial 2.x.x to Getting js Constant. require_once JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'defines.community.php'; $params = $this->getModel()->loadParams($id); $lists = array(); for ($i = 1; $i <= 31; $i++) { $qscale[] = JHTML::_('select.option', $i, $i); } $lists['qscale'] = JHTML::_('select.genericlist', $qscale, 'qscale', 'class="inputbox" size="1"', 'value', 'text', $params->get('qscale', '11')); $videosSize = array(JHTML::_('select.option', '320x240', '320x240 (QVGA 4:3)'), JHTML::_('select.option', '400x240', '400x240 (WQVGA 5:3)'), JHTML::_('select.option', '400x300', '400x300 (Quarter SVGA 4:3)'), JHTML::_('select.option', '480x272', '480x272 (Sony PSP 30:17)'), JHTML::_('select.option', '480x320', '480x320 (iPhone 3:2)'), JHTML::_('select.option', '512x384', '512x384 (4:3)'), JHTML::_('select.option', '600x480', '600x480 (5:4)'), JHTML::_('select.option', '640x360', '640x360 (16:9)'), JHTML::_('select.option', '640x480', '640x480 (VCA 4:3)'), JHTML::_('select.option', '800x600', '800x600 (SVGA 4:3)')); $lists['videosSize'] = JHTML::_('select.genericlist', $videosSize, 'videosSize', 'class="inputbox" size="1"', 'value', 'text', $params->get('videosSize')); // FOR JomSocial 2.1 //Add image quality in view file for JS Configuration page error $imgQuality = array(JHTML::_('select.option', '60', 'Low'), JHTML::_('select.option', '80', 'Medium'), JHTML::_('select.option', '90', 'High'), JHTML::_('select.option', '95', 'Very High')); $lists['imgQuality'] = JHTML::_('select.genericlist', $imgQuality, 'output_image_quality', 'class="inputbox" size="1"', 'value', 'text', $params->get('output_image_quality')); $uploadLimit = ini_get('upload_max_filesize'); $uploadLimit = JString::str_ireplace('M', ' MB', $uploadLimit); // Group discussion order option $groupDiscussionOrder = array(JHTML::_('select.option', 'ASC', 'Older first'), JHTML::_('select.option', 'DESC', 'Newer first')); $lists['groupDicussOrder'] = JHTML::_('select.genericlist', $groupDiscussionOrder, 'group_discuss_order', 'class="inputbox" size="1"', 'value', 'text', $params->get('group_discuss_order')); $this->assign('lists', $lists); $this->assign('uploadLimit', $uploadLimit); $this->assign('config', $params); $this->assign('id', $id); $this->assign('jsConfigPath', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_community' . DS . 'views' . DS . 'configuration' . DS . 'tmpl'); $this->setToolBar(); // Set the titlebar text return parent::display($tpl); }
function display($tpl = null) { $settingsParams = $this->getModel()->getParams(); $this->assignRef('settingsParams', $settingsParams); $this->setToolbar(); parent::display($tpl); }
function resetall($id, $start, $total = 0, $limit, $tpl = 'resetall') { $this->assignRef('id', $id); $this->assignRef('start', $start); $this->assignRef('limit', $limit); $this->assignRef('total', $total); parent::display($tpl); }
function edit($id, $tpl = 'edit') { $fields = $this->getModel()->getMenu(); $this->assignRef('fields', $fields); $this->assign('menuId', $id); $this->setToolbar(); return parent::display($tpl); }
function edit($data, $tpl = 'edit') { //call htmlrender fn $aclObject = XiptAclFactory::getAclObject($data['aclname']); $aclObject->bind($data); $helpMsg = XiptAclHelper::getHelpMessage($data['aclname']); $this->assign('helpMsg', $helpMsg); $this->assignRef('coreParamsHtml', $aclObject->getCoreParamsHtml()); $this->assignRef('aclParamsHtml', $aclObject->getAclParamsHtml()); $this->assign('aclruleInfo', $data); $this->setToolbar($tpl); return parent::display($tpl); }
function edit($fieldId, $tpl = 'edit') { //XITODO : duplicate call, remove it $field = XiptLibJomsocial::getFieldObject($fieldId); $fields = XiptLibJomsocial::getFieldObject(); $categories = XiptHelperProfilefields::getProfileFieldCategories(); $this->assign('fields', $fields); $this->assign('field', $field); $this->assignRef('categories', $categories); $this->assign('fieldid', $fieldId); // Set the titlebar text JToolBarHelper::title(XiptText::_('EDIT_FIELD'), 'profilefields'); $pane =& JPane::getInstance('sliders'); $this->assignRef('pane', $pane); // Add the necessary buttons JToolBarHelper::back('Home', 'index.php?option=com_xipt&view=profilefields'); JToolBarHelper::divider(); JToolBarHelper::save('save', 'COM_XIPT_SAVE'); JToolBarHelper::cancel('cancel', 'COM_XIPT_CLOSE'); parent::display($tpl); }
function display($tpl = null) { // if user is already register then return to different URL $userId = JFactory::getUser()->id; if ($userId) { $redirectUrl = XiptRoute::_('index.php?option=com_community&view=profile', false); $msg = XiptText::_('YOU_ARE_ALREADY_REGISTERED_NEED_NOT_TO_REGISTER_AGAIN'); JFactory::getApplication()->redirect($redirectUrl, $msg); } // refine it, if empty will add default pType $allProfileTypes = array(); $seletedPTypeID = JRequest::getVar('ptypeid', ''); //TODO : trigger an API Event to add something to templates, or modify $profiletypes array // e.g. : I want to patch description. with some extra information $filter = array('published' => 1, 'visible' => 1); $allProfileTypes = XiptLibProfiletypes::getProfiletypeArray($filter); $this->assign('allProfileTypes', $allProfileTypes); $this->assign('selectedPT', $seletedPTypeID); $params = XiptFactory::getSettings('', 0); $this->assign('showAsRadio', $params->get('jspt_show_radio', true)); parent::display($tpl); }