Render the settings sub-tabs.

@access private
172797
private function options_sub_tabs() {
		$current_tab = isset( $_GET['subtab'] ) ? esc_attr( $_GET['subtab'] ) : 'github_updater';
		echo '<nav class="nav-tab-wrapper" aria-label="Tertiary menu">';
		foreach ( $this->settings_sub_tabs() as $key => $name ) {
			$active = ( $current_tab === $key ) ? 'nav-tab-active' : '';
			echo '<a class="nav-tab ' . $active . '" href="?page=github-updater&tab=github_updater_settings&subtab=' . $key . '">' . $name . '</a>';
		}
		echo '</nav>';
	}
23661
function () {
        var self = this, layout = self._layout, tabsHtml = '', prefix = self.classPrefix;

        self.preRender();
        layout.preRender(self);

        self.items().each(function (ctrl, i) {
          var id = self._id + '-t' + i;

          ctrl.aria('role', 'tabpanel');
          ctrl.aria('labelledby', id);

          tabsHtml += (
            '<div id="' + id + '" class="' + prefix + 'tab" ' +
            'unselectable="on" role="tab" aria-controls="' + ctrl._id + '" aria-selected="false" tabIndex="-1">' +
            self.encode(ctrl.settings.title) +
            '</div>'
          );
        });

        return (
          '<div id="' + self._id + '" class="' + self.classes + '" hidefocus="1" tabindex="-1">' +
          '<div id="' + self._id + '-head" class="' + prefix + 'tabs" role="tablist">' +
          tabsHtml +
          '</div>' +
          '<div id="' + self._id + '-body" class="' + self.bodyClasses + '">' +
          layout.renderHtml(self) +
          '</div>' +
          '</div>'
        );
      }
442900
private function renderControlMenu()
    {
        $menu = '';
        for ($section = 0; $section < count($this->extmenu); $section++)
        {
            if (UserRights($this->extmenu[$section]['access']))
            {
                $menu .= '<div class="header">' . $this->extmenu[$section]['caption'] .
                    '</div><div class="content">';
                foreach ($this->extmenu[$section]['items'] as $item)
                {
                    if (
                        UserRights(
                            isset($item['access']) ? $item['access'] : $this->extmenu[$section]['access']
                        ) &&
                        (!(isset($item['disabled']) && $item['disabled']))
                    )
                    {
                        if ($item['link'] == arg('mod'))
                        {
                            $this->title = $item['caption'];
                        }
                        $menu .= '<div ' . ($item['link'] == arg('mod') ? 'class="selected"' : '') .
                            "><a href=\"" . Eresus_CMS::getLegacyKernel()->root . "admin.php?mod=" . $item['link'] .
                            "\" title=\"" .	$item['hint'] . "\">" . $item['caption'] . "</a></div>\n";
                    }
                }
                $menu .= "</div>\n";
            }
        }

        for ($section = 0; $section < count($this->menu); $section++)
        {
            if (UserRights($this->menu[$section]['access']))
            {
                $menu .= '<div class="header">' . $this->menu[$section]['caption'] .
                    '</div><div class="content">';
                foreach ($this->menu[$section]['items'] as $item)
                {
                    if (
                        UserRights(
                            isset($item['access']) ? $item['access'] : $this->menu[$section]['access']
                        ) &&
                        (!(isset($item['disabled']) && $item['disabled']))
                    )
                    {
                        if ($item['link'] == arg('mod'))
                        {
                            $this->title = $item['caption'];
                        }
                        $menu .= '<div '.($item['link'] == arg('mod') ?'class="selected"':'') .
                            "><a href=\"" . Eresus_CMS::getLegacyKernel()->root . "admin.php?mod=" . $item['link'] .
                            "\" title=\"" .	$item['hint'] . "\">" . $item['caption'] . "</a></div>\n";
                    }
                }
                $menu .= "</div>\n";
            }
        }

        return $menu;
    }
788420
public function editSettings()
    {
        $this->setTitleEditSettings();
        $this->setBreadcrumbEditSettings();

        $this->setData('settings', $this->getModuleSettings('xss'));

        $this->submitSettings();
        $this->setDataEditSettings();
        $this->outputEditSettings();
    }
519038
public function render()
	{
		if ($this->filterFormFactory) {
			$this['form']['filter']->setDefaults($this->filter);
		}

		$this->template->form = $this['form'];
		$this->template->data = $this->getData();
		$this->template->columns = $this->columns;
		$this->template->editRowKey = $this->editRowKey;
		$this->template->rowPrimaryKey = $this->rowPrimaryKey;
		$this->template->paginator = $this->paginator;
		$this->template->sendOnlyRowParentSnippet = $this->sendOnlyRowParentSnippet;
		$this->template->cellsTemplates = $this->getCellsTemplates();
		$this->template->showFilterCancel = $this->filterDataSource != $this->filterDefaults; // @ intentionaly
		$this->template->setFile(__DIR__ . '/Datagrid.latte');

		$this->onRender($this);
		$this->template->render();
	}
1314952
protected function renderSubViews()
    {
        foreach ($this->subViews as $name => $views) {
            if (isset($this->viewData["subview_{$name}"]) === false) {
                $this->viewData["subview_{$name}"] = "";
            }

            foreach ($views as $view) {
                if (is_string($view)) {
                    $this->loader->setTemplate($view);
                    $this->viewData["subview_{$name}"] .= $this->loader->render(
                        $this->viewData,
                        Loader::TPL_RETURN,
                        Loader::TPL_CACHE_VARS
                    );
                    continue;
                }
                $this->viewData["subview_{$name}"] .= $view->render(
                    $this->viewData,
                    Loader::TPL_RETURN
                );
            }
        }
    }
9937
public function render()
	{
		// make sure we have a correct url
		$this->paginationUrl();

		// and a current page number
		$this->calculateNumbers();

		$urls = array();

		// generate the URL's for the pagination block
		if ($this->config['totalPages'] > 1)
		{
			// calculate start- and end page numbers
			$start = $this->config['current'] - floor($this->config['numberOfLinks'] * $this->config['linkOffset']);
			$end = $this->config['current'] + floor($this->config['numberOfLinks'] * ( 1 - $this->config['linkOffset']));

			// adjust for the first few pages
			if ($start < 1)
			{
				$end -= $start - 1;
				$start = 1;
			}

			// make sure we don't overshoot the current page due to rounding issues
			if ($end < $this->config['current'])
			{
				$start++;
				$end++;
			}

			// make sure we don't overshoot the total
			if ($end > $this->config['totalPages'])
			{
				$start = max(1, $start - $end + $this->config['totalPages']);
				$end = $this->config['totalPages'];
			}

			// now generate the URL's for the pagination block
			for($i = $start; $i <= $end; $i++)
			{
				$urls[$i] = $this->generateUrl($i);
			}
		}

		// send the generated url's to the view
		$this->view->set('urls', $urls);

		// store the current and total pages
		$this->view->set('active', $this->config['current']);
		$this->view->set('total', $this->config['totalPages']);

		// do we need to add a first link?
		if ($this->config['showFirst'])
		{
			$this->view->set('first', $this->generateUrl(1));
		}

		if (isset($start) and $start > 1)
		{
			$this->view->set('previous', $this->generateUrl($start-1));
		}

		if (isset($end) and $end !== $this->config['totalPages'])
		{
			$this->view->set('next', $this->generateUrl($end+1));
		}

		// do we need to add a last link?
		if ($this->config['showLast'])
		{
			$this->view->set('last', $this->generateUrl($this->config['totalPages']));
		}

		$this->view->set('align', $this->config['align']);

		// return the view
		return $this->view;
	}
108255
public function render() {
        if (!$this->_enableXDebugOverlay) {
            ini_set('xdebug.overload_var_dump', 'off');
        }
        $debuggerCount = count($this->_debuggers);
        $this->setName(str_replace('{count}', '{' . $debuggerCount . '}', self::NAME));
        parent::render();
    }
1299231
public function render() {
        $tplInfo = pathinfo($this->tpl);
        if (!isset($tplInfo['extension'])) {
            $tplInfo['extension'] = 'tpl';
            $this->tpl            .= '.tpl';
        }
        if (defined('LANGUAGE')) {
            $lang_tpl = $tplInfo['dirname'] . DS . $tplInfo['filename'] . '_' . LANGUAGE . '.' . $tplInfo['extension'];
            $tpl      = THEME_PATH . $lang_tpl;
            if (is_file($tpl)) {
                $this->tpl = $lang_tpl;
            } else if (($pos = strpos(LANGUAGE, '-', 1))) {
                $lang_tpl = $tplInfo['dirname'] . DS . $tplInfo['filename'] . '_' . substr(LANGUAGE, 0, $pos) . '.' . $tplInfo['extension'];
                $tpl      = THEME_PATH . $lang_tpl;
                if (is_file($tpl)) {
                    $this->tpl = $lang_tpl;
                }
            }
        }
        $tpl    = THEME_PATH . $this->tpl;
        $devMod = APP_MODE != 'pro';
        if (is_file($tpl)) {
            $this->__smarty = new \Smarty ();
            $tpl            = str_replace(DS, '/', $this->tpl);
            $tpl            = explode('/', $tpl);
            $sub            = implode(DS, array_slice($tpl, 0, -1));

            $this->__smarty->setTemplateDir(THEME_PATH);
            $this->__smarty->setCompileDir(TMP_PATH . 'themes_c' . DS . $sub);
            $this->__smarty->setCacheDir(TMP_PATH . 'themes_cache' . DS . $sub);
            $this->__smarty->setDebugTemplate(SMARTY_DIR . 'debug.tpl');
            fire('init_smarty_engine', $this->__smarty);
            fire('init_template_smarty_engine', $this->__smarty);
            $this->__smarty->compile_check = 1;
            if ($devMod) {
                $this->__smarty->caching = false;
            }
            $this->__smarty->error_reporting = defined('KS_ERROR_REPORT_LEVEL') ? KS_ERROR_REPORT_LEVEL : 0;
        } else {
            throw new \Exception(__('The template %s is not found', THEME_DIR . '/' . $this->tpl));
        }
        $this->__smarty->assign($this->data);
        $this->__smarty->assign('_css_files', $this->sytles);
        $this->__smarty->assign('_js_files', $this->scripts);
        $this->__smarty->assign('_current_template_file', $this->tpl);
        @ob_start();
        if ($this->__mustache) {
            $filter  = new MustacheFilter();
            $filters = apply_filter('smarty\getFilters', ['pre' => [[$filter, 'pre']], 'post' => [[$filter, 'post']]]);
        } else {
            $filters = apply_filter('smarty\getFilters', ['pre' => [], 'post' => []]);
        }

        if ($filters) {
            foreach ($filters as $type => $cbs) {
                foreach ($cbs as $cb) {
                    $this->__smarty->registerFilter($type, $cb);
                }
            }
        }
        $this->__smarty->display($this->tpl);
        $content = @ob_get_clean();

        if ($devMod && $content) {
            $debugArg = App::cfg('debugArg', '');
            if ($debugArg) {
                $debugArg    = json_encode($this->data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
                $debugString = '<script>console.log([\'pageData\',' . $debugArg . '])</script>';
                $content     = str_replace('<!--pageEnd-->', $debugString, $content);
            }
        }

        return $content;
    }
1358501
protected function renderSubForm()
    {
        $html = '';
        foreach ($this->form as $key => $input) {
            $html .= $this->renderInput($key, $input);
        }

        return $html;
    }
985002
protected function setup_tabs($options = array()) {
        global $CFG, $PAGE;
        $groupmode = groups_get_activity_groupmode($this->cm);

        if (empty($CFG->usecomments) || !has_capability('mod/wiki:viewcomment', $PAGE->context)){
            unset($this->tabs['comments']);
        }

        if (!has_capability('mod/wiki:editpage', $PAGE->context)){
            unset($this->tabs['edit']);
        }

        if ($groupmode and $groupmode == VISIBLEGROUPS) {
            $currentgroup = groups_get_activity_group($this->cm);
            $manage = has_capability('mod/wiki:managewiki', $this->modcontext);
            $edit = has_capability('mod/wiki:editpage', $PAGE->context);
            if (!$manage and !($edit and groups_is_member($currentgroup))) {
                unset($this->tabs['edit']);
            }
        }

        if (empty($options)) {
            $this->tabs_options = array('activetab' => substr(get_class($this), 10));
        } else {
            $this->tabs_options = $options;
        }

    }
1039363
public function renderModal()
    {
        $this->_modal = '
        <div class="tooltabmodal modal fade" id="'.$this->getModalId().'" aria-hidden="true" style="display: none; " '. $this->getAttributes() . '>
        	<div class="modal-dialog">
        		<div class="modal-content">
        			<div class="modal-body padding-none">
        				<div class="wizard">
        					<div class="widget widget-tabs widget-tabs-double widget-tabs-responsive margin-none border-none">
                                '. $this->getTabs() .'
                                '. $this->getContents() .'
        					</div>
        				</div>
        			</div>
                    '.$this->getCloseButton().'
        		</div>
        	</div>
        </div>';
        
        return $this->_modal;
    }
395185
def sub_menu(request, page_id):
    """"""
    page = Page.objects.get(id=page_id)
    pages = page.children.all()
    page_languages = settings.PAGE_LANGUAGES
    return render(request, "admin/pages/page/sub_menu.html", {
        'can_publish': request.user.has_perm('pages.can_publish'),
        'page': page,
        'pages': pages,
        'page_languages': page_languages,
    })
1305437
protected function render()
    {
        if (null === $this->active) {
            $this->setActive(key($this->tabs));
        }

        $tabs       = new ViewModel;
        $tabs->tabs = $this->tabs;

        $tabs->setTemplate('sxbootstrap/tabs/tabs');

        return $this->getView()->render($tabs);
    }
75418
public function render()
	{
		// set the group's render flag to false
		$this->isRendered = false;
		
		// loop through the group's children
		foreach ($this->children as $k => $child) {
			// get the child's (starting) style...
			//
			// if this child is the first-child, it inherits the group's style; otherwise, 
			//     it inherits the previous child's (ending) style
			//
			if ($k == 0) {
				$style = $this->style;
			} else {
				$previous = $this->children[$k - 1];
				$style = $previous->getStyle();
			}
			
			// set the child's style...
			//
			// be sure to clone the style to create a distinct copy of the child's state;
			//     otherwise, changes to the child's state will affect the group's state,
			//     and the group's (ending) state will be the last child's (ending) state
			//
			$child->setStyle(clone $style);
			
			// if the child is a group, render it
			// otherwise, if the child is a control word or symbol, run it
			//
			if ($child instanceof Group) {
				$child->render();
			} elseif ($child instanceof Control\Control) {
				$child->run();
			}
			
			// finally, merge the (ending) state of the current child with the (ending)
			//     state of the previous sibling (to save memory)
			//	
			$child->getStyle()->merge($style);
		}
		
		// set the group's flag to true
		$this->isRendered = true;
		
		return;
	}
1080689
public function _render()
    {
        $ret = $this->prepend;
        if ($this->library) {
            $ret .= $this->library;
        } else {
            if ($this->str) {
                $ret .= "$('#".$this->owner->getJSID()."')";
            }
        }
        $ret .= $this->str;

        if ($this->enclose === true) {
            if ($this->preventDefault) {
                $ret = 'function(ev,ui){ev.preventDefault();ev.stopPropagation(); '.$ret.'}';
            } else {
                $ret = 'function(ev,ui){'.$ret.'}';
            }
        } elseif ($this->enclose) {
            $ret = ($this->library ?: "$('#".$this->owner->getJSID()."')").
                    ".bind('".$this->enclose."',function(ev,ui){ev.preventDefault();ev.stopPropagation(); ".$ret.'})';
        }

        if (@$this->debug) {
            echo "<font color='blue'>".htmlspecialchars($ret).';</font><br/>';
            $this->debug = false;
        }

        return $ret;
    }
309036
public function render()
    {
        parent::render();
        $myUtilsServer = \OxidEsales\Eshop\Core\Registry::getUtilsServer();

        $sItem = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("item");
        $sItem = $sItem ? basename($sItem) : false;
        if (!$sItem) {
            $sItem = "nav_frame.tpl";
            $aFavorites = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("favorites");
            if (is_array($aFavorites)) {
                $myUtilsServer->setOxCookie('oxidadminfavorites', implode('|', $aFavorites));
            }
        } else {
            $oNavTree = $this->getNavigation();

            // set menu structure
            $this->_aViewData["menustructure"] = $oNavTree->getDomXml()->documentElement->childNodes;

            // version patch string
            $this->_aViewData["sVersion"] = $this->_sShopVersion;

            //checking requirements if this is not nav frame reload
            if (!\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("navReload")) {
                // #661 execute stuff we run each time when we start admin once
                if ('home.tpl' == $sItem) {
                    $this->_aViewData['aMessage'] = $this->_doStartUpChecks();
                }
            } else {
                //removing reload param to force requirements checking next time
                \OxidEsales\Eshop\Core\Registry::getSession()->deleteVariable("navReload");
            }

            // favorite navigation
            $aFavorites = explode('|', $myUtilsServer->getOxCookie('oxidadminfavorites'));

            if (is_array($aFavorites) && count($aFavorites)) {
                $this->_aViewData["menufavorites"] = $oNavTree->getListNodes($aFavorites);
                $this->_aViewData["aFavorites"] = $aFavorites;
            }

            // history navigation
            $aHistory = explode('|', $myUtilsServer->getOxCookie('oxidadminhistory'));
            if (is_array($aHistory) && count($aHistory)) {
                $this->_aViewData["menuhistory"] = $oNavTree->getListNodes($aHistory);
            }

            // open history node ?
            $this->_aViewData["blOpenHistory"] = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('openHistory');
        }

        $blisMallAdmin = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('malladmin');
        $oShoplist = oxNew(\OxidEsales\Eshop\Application\Model\ShopList::class);
        if (!$blisMallAdmin) {
            // we only allow to see our shop
            $iShopId = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable("actshop");
            $oShop = oxNew(\OxidEsales\Eshop\Application\Model\Shop::class);
            $oShop->load($iShopId);
            $oShoplist->add($oShop);
        } else {
            $oShoplist->getIdTitleList();
        }

        $this->_aViewData['shoplist'] = $oShoplist;
        return $sItem;
    }