Render the pagination

@return string
501991
public function render($html = null) {
		$control = $this->getPaginator()->getPaginationControl();
		
		// First
		if ($this->_useFirstLast && isset($control[PaginatorInterface::CONTROL_FIRST])) {
			$this->addElement(
				$this->_renderUrl($control[PaginatorInterface::CONTROL_FIRST]),
				$this->_stringFirst,
				'page-first'
			);
		}
		
		// Previous
		if ($this->_usePrevNext && isset($control[PaginatorInterface::CONTROL_PREVIOUS])) {
			$this->addElement(
				$this->_renderUrl($control[PaginatorInterface::CONTROL_PREVIOUS]),
				$this->_stringPrev,
				'page-previous'
			);
		}
		
		// Range
		if ($this->_useRange && isset($control[PaginatorInterface::CONTROL_RANGE])) {
			foreach ($control[PaginatorInterface::CONTROL_RANGE] as $element) {
				$this->addElement($this->_renderUrl($element), $element, 'page-' . $element);
			}
		}
		
		// Next
		if ($this->_usePrevNext && isset($control[PaginatorInterface::CONTROL_NEXT])) {
			$this->addElement(
				$this->_renderUrl($control[PaginatorInterface::CONTROL_NEXT]),
				$this->_stringNext,
				'page-next'
			);
		}
		
		// Last
		if ($this->_useFirstLast && isset($control[PaginatorInterface::CONTROL_LAST])) {
			$this->addElement(
				$this->_renderUrl($control[PaginatorInterface::CONTROL_LAST]),
				$this->_stringLast,
				'page-last'
			);
		}
		
		if (isset($control[PaginatorInterface::CONTROL_CURRENT])) {
			$this->setActive('page-' . $control[PaginatorInterface::CONTROL_CURRENT]);
		}
		
		return parent::render();
	}
479222
public function render()
    {
        $tmpl = new Eresus_Template($this->getTemplate());

        $data = array('pagination' => $this);

        return $tmpl->compile($data);
    }
806218
public function render()
    {
        //calculate iteration
        $iteration = (int) ceil($this->total/$this->per_page) + $this->config['start_page'] - 1 ;

        if($iteration==0)
            return;
        $item_to_show = $this->config['item_to_show'];
        $first_item_max = $item_to_show  -1 ;
        $last_item_min = $iteration +1 - $item_to_show ;
        $print_array = array();
        if($this->config['skip_item']){
            //calculate pagination print
            for($i=0;$i<=$first_item_max;$i++){
                $print_array[$i] = true;
            }
            for($i=$last_item_min;$i<=$iteration;$i++){
                $print_array[$i] = true;
            }
            if(!isset($print_array[$this->current_page-$item_to_show-1])){
                $print_array[$this->current_page-$item_to_show-1]='skip';
            }
            if(!isset($print_array[$this->current_page+$item_to_show+1])){
                $print_array[$this->current_page+$item_to_show+1]='skip';
            }
            for($i=$this->current_page;$i<=$this->current_page+$item_to_show;$i++){
                $print_array[$i] = true;
            }
            for($i=$this->current_page-$item_to_show;$i<=$this->current_page;$i++){
                $print_array[$i] = true;
            }
        }
        for( $i=$this->config['start_page'] ; $i<=$iteration   ; $i++){
            if($this->config['skip_item']){
                if(!isset($print_array[$i]))
                    continue;
                if($print_array[$i]==='skip'){
                    echo $this->config['skip_tag_open'];
                    echo "{$this->config['skip_tag_text']}";
                    echo $this->config['skip_tag_close'];
                    continue;
                }
            }
            
            $page_number = $i+1 - $this->config['start_page'];
                        
            //prev
            if( $i == $this->config['start_page'] && $this->current_page != $this->config['start_page'] ){
                // if($this->current_page == 1 )
                    // $prev_url = str_replace('$paginate','', $this->base_url);
                // if($i!=$this->current_page)
                    $prev_url = str_replace('$paginate',$this->current_page-1, $this->base_url);
                // else
                    // $prev_url ="#";
                echo $this->config['prev_tag_open'];
                echo "<a href='{$prev_url}' $this->config['link_attribute'] >{$this->config['prev_tag_text']}</a>";
                echo $this->config['prev_tag_close'];
            }
            $url = str_replace('$paginate',$i, $this->base_url);
            //current
            if($i==$this->current_page){
                echo $this->config['cur_tag_open'];
                echo "<a href='{$url}' $this->config['link_attribute_active'] >$page_number </a>";
                echo $this->config['cur_tag_close'];
            }
            //first
            elseif($i==$this->config['start_page'] ){
                // $url = str_replace('$paginate','', $this->base_url);
                echo $this->config['first_tag_open'];
                echo "<a href='{$url}' $this->config['link_attribute'] >$page_number </a>";
                echo $this->config['first_tag_close'];
            }
            //last
            elseif($i==$iteration){
                echo $this->config['last_tag_open'];
                echo "<a href='{$url}' $this->config['link_attribute'] >$page_number </a>";
                echo $this->config['last_tag_close'];
            }
            
            else{
                echo $this->config['num_tag_open'];
                echo "<a href='{$url}' $this->config['link_attribute'] >$page_number </a>";
                echo $this->config['num_tag_close'];
            }
            
            //next
            if($i==$iteration){
                if($i!=$this->current_page)
                    $next_url = str_replace('$paginate',$this->current_page+1, $this->base_url);
                else
                    $next_url="#";
                echo $this->config['next_tag_open'];
                echo "<a href='{$next_url}' $this->config['link_attribute'] >{$this->config['next_tag_text']}</a>";
                echo $this->config['next_tag_close'];
            }
            $print_skip = true;
            
        }
    }
1106762
public function render() {
        $rendered = '';
        foreach ($this->elements as $element) {
            if (!method_exists($this, 'openTag')) {
                $element->name = $this->multiple ?
                        $element->name . '[]' :
                        $this->getName() . '[' . $element->name . ']';

                $element->parent = $this->getName();
            }
            $rendered .= $element->render();
        }
        return $rendered;
    }
985052
public function getPaginationBar() {
		
		if (is_null($this->pagination->count)) {
			$this->logError('The “count” parameter needed for pagination has not been set');
		}
		
		return $this->pagination->render();
		
	}
756247
public function pagination()
    {
        if ($this->pagination === null) {
            $this->pagination = $this->createPagination();
        }

        return $this->pagination;
    }
226814
public function render()
    {
        $period = $this->period();

        $dailyStats = $this->dependencyInstalled() && config('analytics.view_id')
            ? Analytics::fetchTotalVisitorsAndPageViews($period)
            : $dailyStats = $this->fakeData($period);

        $visitors = $dailyStats->sum('visitors');
        $pageViews = $dailyStats->sum('pageViews');
        $maxVisitors = $dailyStats->max('visitors');

        $labels = $this->dateLabels($dailyStats);

        return view(app('scaffold.template')->dashboard('google_analytics'))->with(compact(
            'dailyStats',
            'labels',
            'visitors',
            'pageViews',
            'maxVisitors',
            'period'
        ));
    }
695999
public function render()
    {
        $metric = new Metric('print-out');
        $metric->start();
        ini_set('memory_limit', '512M');

        if ( ! is_string($this->expression)) {
            $this->expression = print_r($this->expression, true);
        }

        $expression = htmlentities($this->expression);
        $expression = htmlspecialchars(htmlspecialchars_decode($this->expression, ENT_QUOTES), ENT_QUOTES, 'UTF-8');
        $trace = new Trace();

        $metric->stop();

        ob_start();
        include __DIR__ . '/Views/Screen.php';
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
786265
public function render($count = 0)
    {
        $pagination = "";
        $items = $this->navigation($count);
        if ($items) foreach ($items as $page) {
            $pagination .= $this->item($page['page'], $page['url'], $page['label'], $page['class'], $page['current'], false);
        }
        
        $listPropertiesHtml = "";
        foreach ($this->options['list_properties'] as $k => $v) {
            $listPropertiesHtml .= " $k=\"$v\"";
        }
        $html = "<{$this->options['list_tag']}$listPropertiesHtml>{$pagination}</{$this->options['list_tag']}>";
        
        if ($this->options['container_tag']) {
            $containerPropertiesHtml = "";
            foreach ($this->options['container_properties'] as $k => $v) {
                $containerPropertiesHtml .= " $k=\"$v\"";
            }
            $html = "<div$containerPropertiesHtml>
                    $html
                    </div>";
        }
        
        return $html;
    }
888415
public function paginate()
    {
        $model = $this->model;

        if (property_exists($model, 'order')) {
            $paginator = $model::orderBy($model::$order, $model::$sort)->paginate($model::$paginate, $model::$index);
        } else {
            $paginator = $model::paginate($model::$paginate, $model::$index);
        }

        if (!$this->isPageInRange($paginator) && !$this->isFirstPage($paginator)) {
            throw new NotFoundHttpException();
        }

        if (count($paginator)) {
            $this->paginateLinks = $paginator->render();
        }

        return $paginator;
    }
757390
public function render() {
		
		$buffer = ''; 
		
		if ( !empty( $this->header ) ) {
			
			$buffer .= '<tr'.HTML::attr( $this->header[1] ).'>';
			foreach( $this->header[0] as $head ) {
				$head->name = 'th';
				$buffer .= $head->render();
			}
			$buffer .= '</tr>';
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $this->header[0] as $key => $value ) {
					$buffer .= HTML::tag( 'td', $row[0][$key]->value, $row[0][$key]->attr );
				}
				$buffer .= '</tr>';
			}
		}
		else {
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $row[0] as $value ) {
					$buffer .= $value->render();
				}
				$buffer .= '</tr>';
			}
		}
		
		$this->element->value = $buffer;
		
		return $this->element->render();
	}
1305023
private function renderPages()
    {
        $html = '';

        for($i=1; $i<=$this->page->total_pages; $i++) {
            if ($i == $this->page->current) {
                $html .= $this->renderElement($i, $i, 'active');
            } elseif($this->isPrintablePage($i)) {
                $html .= $this->renderElement($i, $i);
            } elseif($this->isMiddleOffsetPage($i)) {
                $html .= $this->renderElement($this->page->current, '...', 'more');
            }
        }

        return $html;
    }
911977
public function render()
    {
        //~ Transform $this->vars into multiples variables.
        extract($this->vars);

        //~ Include Template as regular php file
        ob_start();
        include $this->fileCompiled;
        $content = ob_get_contents();

        ob_end_clean();

        return $content;
    }
987702
public function render()
    {
        if ( ! $this->hasPages()) {
            return null;
        }

        return sprintf(
            $this->wrapper,
            $this->getPreviousButton(),
            $this->pageLabel,
            $this->getSelect(),
            $this->getPageOfLabel(),
            $this->getNextButton()
        );
    }
640640
public function render() {

		$title = $list = $template = '';

		if ( $this->items ) {

			// If there's title text, format it.
			if ( $this->args['title_text'] ) {

				$title = sprintf(
					'<%1$s class="%2$s">%3$s</%1$s>',
					tag_escape( $this->args['title_tag'] ),
					esc_attr( $this->args['title_class'] ),
					esc_html( $this->args['title_text'] )
				);
			}

			// Loop through each of the items and format each into
			// an HTML string.
			foreach ( $this->items as $item ) {

				$list .= $this->formatItem( $item );
			}

			// Format the list.
			$list = sprintf(
				'<%1$s class="%2$s">%3$s</%1$s>',
				tag_escape( $this->args['list_tag'] ),
				esc_attr( $this->args['list_class'] ),
				$list
			);

			// Format the nav wrapper.
			$template = sprintf(
				'<%1$s class="%2$s" role="navigation">%3$s%4$s</%1$s>',
				tag_escape( $this->args['container_tag'] ),
				esc_attr( sprintf( $this->args['container_class'], $this->context ) ),
				$title,
				$list
			);
		}

		return apply_filters( "hybrid/pagination/{$this->context}", $template, $this->args );
	}
17217
private function renderFooter()
    {
        if (!$this->paginator) {
            return "";
        }
        if (count($this->columns) == 0) {
            return "";
        }
        $currentpage = $this->currentpage;

        $content = '<ul class="pagination">';
        $pages = $this->getPageCount();
        if ($pages <= 1)
            return '';

        if ($currentpage - $this->firstButton > $this->maxbuttons) {

            $this->firstButton = $currentpage - $this->maxbuttons;
        }
        if ($currentpage < $this->firstButton) {
            $this->firstButton = $currentpage - 1;
        }

        if ($this->firstButton > 1) {
            $content .= "<li  class=\"page-item\"><a   class=\"page-link\"  href='void(0);' onclick=\"" . $this->getPaginatorLink(1) . "\"><span aria-hidden=\"true\">&laquo;</span></a></li>";
            $content .= "<li class=\"page-item\"><a   class=\"page-link\"  href='void(0);' onclick=\"" . $this->getPaginatorLink($currentpage - 1) . "\"><span aria-hidden=\"true\">&lsaquo;</span></a></li>";
            $content .= "<li  class=\"page-item\"><a   class=\"page-link\" href=\"javascript:void(0);\" >&hellip;</a></li>";
        }



        for ($i = $this->firstButton; $i <= $this->firstButton + $this->maxbuttons; $i++) {
            if ($i > $pages)
                break;
            if ($currentpage == $i) {
                $content .= "<li class=\"page-item active\"><a  class=\"page-link\"  href=\"javascript:void(0);\" > {$i} </a></li>";
            } else {
                $content .= "<li  class=\"page-item\"><a   class=\"page-link\" href=\"javascript:void(0);\"  onclick=\"" . $this->getPaginatorLink($i) . "\"> {$i} </a></li>";
            }
        }

        if ($pages > $this->firstButton + $this->maxbuttons) {
            $content .= "<li  class=\"page-item\" ><a   class=\"page-link\" href=\"javascript:void(0);\" >&hellip;</a></li>";
            $content .= "<li  class=\"page-item\"><a  class=\"page-link\" href='void(0);' onclick=\"" . $this->getPaginatorLink($currentpage + 1) . "\"aria-label=\"Next\">       <span aria-hidden=\"true\">&rsaquo;</span></a></li>";
            $content .= "<li  class=\"page-item\"><a  class=\"page-link\" href='void(0);' onclick=\"" . $this->getPaginatorLink($pages) . "\"aria-label=\"Next\">       <span aria-hidden=\"true\">&raquo;</span></a></li>";
        }
        
        $countall = $this->getAllRowsCount();
        $show =  $currentpage * $this->pagesize;
        if($pages ==$currentpage) $show = $countall;
        if($countall <= $this->pagesize) $show = $countall;
        
        $content = "<table  ><tr><td valign='middle'>{$show} строк с  {$countall} &nbsp;&nbsp;&nbsp;&nbsp;</td><td align='right'> {$content}</td></tr></table>";
        return "<tr ><td class=\"footercell\"  colspan=\"" . count($this->columns) . "\" >{$content}</ul></td></tr>";
    }
1078443
public static function render() {
        self::newRow();
        ob_start();
        ?>

        <table <?php echo (!empty(self::$table_attributes)) ? self::parseAttributes(self::$table_attributes) : ""; ?>>
            <?php
            if (!empty(self::$headers)) {
                ?>

                <thead>
                    <tr>
                        <?php
                        foreach (self::$headers as $header) {
                            ?>

                            <th <?php echo self::parseAttributes($header[1]); ?>><?php echo $header[0] ?></th>
                            <?php
                        }
                        ?>

                    </tr>
                </thead>
                <?php
            }
            if (!empty(self::$rows)) {
                ?>

                <tbody>
                    <?php
                    foreach (self::$rows as $rowData) {
                        if (count($rowData) > 1) {
                            ?>

                            <tr <?php echo self::parseAttributes($rowData[0]); ?>>
                                <?php
                                foreach ($rowData[1] as $row) {
                                    ?>
                                    <td <?php echo self::parseAttributes($row[1]); ?>><?php echo $row[0] ?></td>
                                    <?php
                                }
                                ?>

                            </tr>
                            <?php
                        }
                    }
                    ?>

                </tbody>
                <?php
            }
            if (!empty(self::$footers)) {
                ?>

                <tfoot>
                    <tr>
                        <?php
                        foreach (self::$footers as $footer) {
                            ?>

                            <th <?php echo self::parseAttributes($footer[1]); ?>><?php echo $footer[0] ?></th>
                            <?php
                        }
                        ?>

                    </tr>
                </tfoot>
            <?php }
            ?>
        </table>
        <?php
        return ob_get_clean();
    }