@param \Concrete\Core\Page\Page[] $tabs

@return string
779921
public function pagetabs($tabs)
    {
        $tcn = rand(0, getrandmax());

        $html = '<ul class="nav-tabs nav" id="ccm-tabs-' . $tcn . '">';
        $c = Page::getCurrentPage();
        foreach ($tabs as $t) {
            if (is_array($t)) {
                $name = $t[1];
                $_c = $t[0];
            } else {
                $_c = $t;
                $name = $t->getCollectionName();
            }

            $href = Core::make('helper/navigation')->getLinkToCollection($_c);
            $active = false;
            if (is_object($c) && $c->getCollectionID() == $_c->getCollectionID()) {
                $active = true;
            }
            $html .= '<li class="' . (($active) ? 'active' : '') . '"><a href="' . $href . '">' . $name . '</a></li>';
        }
        $html .= '</ul>';

        return $html;
    }
1105788
public static function css_to_string($css){
    if ( \is_string($css) ){
      return ' style="'.bbn\str::escape_dquotes($css).'"';
    }
    else if ( \is_array($css) && \count($css) > 0 ){
      $st = '';
      foreach ( $css as $prop => $val ){
        $st .= $prop.':'.$val.';';
      }
      return ' style="'.bbn\str::escape_dquotes($st).'"';
    }
  }
578930
public function setsTabs($tabs)
    {
        if (is_array($tabs)) {
            $tabs = new ArrayCollection($tabs);
        }
        if (!$tabs instanceof ArrayCollection) {
            throw new \UnexpectedValueException("Expected array or instance of " . ArrayCollection::class);
        }

        $this->tabs = $tabs;

        return $this;
    }
1148466
public function getTab(): string
	{
		if (headers_sent() && !session_id()) {
			return '';
		}

		ob_start(function () {});

		$info = $this->connection->getInfo();

		$this->count = 0;

		if (is_array($info) && count($info)) {
			foreach ($info as $i) {
				if ($i->action === 'transaction-sms') {
					$this->count++;

				} elseif ($i->action === 'bulk-sms') {
					$this->count += count($i->request['message']);
				}
			}
		}

		$count = $this->count;

		require __DIR__ . '/templates/MessagePanel.tab.phtml';

		return ob_get_clean();
	}
666265
public function removeTab(TabInterface $tab)
    {
        if (in_array($tab, $this->tabs)) {
            unset($this->tabs[array_search($tab, $this->tabs)]);
            $this->reindexTabs();
        }

        return $this;
    }
103824
private function _getPage($ids)
    {
        $object = $this->_pager['object'];
        $method = $this->_pager['method'];
        $methodArgs = [];
        foreach ($this->_pager['methodArgs'] as $arg) {
            array_push($methodArgs, $arg);
        }
        array_push($methodArgs, $ids);

        return call_user_func_array(
            [$object, $method],
            $methodArgs
        );
    }
1172506
def _replace_tabs(s, ts=8):
    
    result = ''
    for c in s:
        if c == '\t':
            while True:
                result += ' '
                if len(result) % ts == 0:
                    break
        else:
            result += c
    return result
746884
protected function render_tabtree(tabtree $tabtree) {
        if (empty($tabtree->subtree)) {
            return '';
        }
        $data = $tabtree->export_for_template($this);
        return $this->render_from_template('core/tabtree', $data);
    }
554198
private String nodeTabs() {
    StringBuilder builder = new StringBuilder();
    builder.append("<div class='tabs'>");
    builder.append("<ul>");
    builder
        .append("<li class='tab' type='browsers'><a title='test slots' href='#'>Browsers</a></li>");
    builder
        .append("<li class='tab' type='config'><a title='node configuration' href='#'>Configuration</a></li>");
    builder.append("</ul>");
    builder.append("</div>");
    return builder.toString();
  }
732515
private function getValuesString(array $values, $tab = true)
    {
        $glue = $tab ? PHP_EOL . "\t" : PHP_EOL;
        return implode(
            $glue,
            array_map(
                function ($key) use ($values, $glue) {
                    if (!is_array($values[$key])) {
                        $return = $key . ' = ' . $values[$key];
                    } else {
                        $return = implode(
                            $glue,
                            array_map(
                                function ($value) use ($key) {
                                    return $key . ' = ' . $value;
                                },
                                $values[$key]
                            )
                        );
                    }
                    if ($key == 'charset_table') {
                        $filter = new SeparatorToSeparator(', ', ', \\' . $glue);
                        return $filter->filter($return);
                    }
                    return $return;
                },
                array_keys($values)
            )
        );
    }
199199
public function tabs() {

		$tabs = $this->get_tabs();

		echo '<ul class="geot-admin-tabs">';
		foreach ( $tabs as $id => $tab ) {

			$active = $id === $this->view ? 'active' : '';
			$name   = $tab['name'];
			$link   = add_query_arg( 'view', $id, admin_url( 'admin.php?page=geot-settings' ) );
			echo '<li><a href="' . esc_url_raw( $link ) . '" class="' . esc_attr( $active ) . '">' . esc_html( $name ) . '</a></li>';
		}
		echo '</ul>';
	}
937696
public function getTabByTitle($title)
    {
        foreach ($this->tabs as $key => $tab) {
            if ($tab->getTitle() === $title) {
                return $this->tabs[$key];
            }
        }

        return null;
    }
255708
public function renderPanes($panes)
    {
        return $this->renderTabContent ? "\n" . Html::tag('div', implode("\n", $panes), $this->tabContentOptions) : '';
    }
1153891
public function render($tabname, $page, $perpage, $cat, $recurse, $showhidden,
            $showquestiontext, $tagids = []) {
        ob_start();
        $this->display($tabname, $page, $perpage, $cat, $recurse, $showhidden, $showquestiontext, $tagids);
        $out = ob_get_contents();
        ob_end_clean();
        return $out;
    }
323660
public function header()
    {
        /** @var string $tabHeader Header html view */
        $tabSubHeader = '';

        // Set content of header view
        $tabHeader = $this->renderer->view($this->headerContentView)
            ->headName(t($this->name, true))
            ->headUrl('#'.$this->id)
            ->set($this->size, 'subTabsCount')
            ->output();

        // If tab has sub tabs
        if (count($this->subTabs) > 1) {
            // Render header of each sub tab inside parent tab
            foreach ($this->subTabs as $tab) {
                $tabSubHeader .= $tab->header();
            }
        }

        return $this->renderer->view($this->headerIndexView)
            ->tabHeader($tabHeader)
            ->tabSubHeader($tabSubHeader)
            ->output();
    }
695068
private function getTabs($string, $new)
    {
        $length = strlen($string);
        $max    = $new ? 56 : 60;

        $range = range(1, $max - $length);

        $tabs = '';

        foreach ($range as $item) {
            $tabs .= " ";
        }

        return $tabs;
    }
1047284
private function getHeaders(array $headers)
    {
        $str = '';
        foreach ($headers as $key => $value) {
            $str .= sprintf("%s: %s\r\n", $key, $value);
        }

        return $str;
    }