concrete/src/Legacy/ItemList.php
public function displayPaging($script = false, $return = false, $additionalVars = array())
    {
        $summary = $this->getSummary();
        $paginator = $this->getPagination($script, $additionalVars);
        if ($summary->pages > 1) {
            $html = '<div class="ccm-spacer"></div>';
            $html .= '<div class="ccm-pagination">';
            $html .= '<span class="ccm-page-left">' . $paginator->getPrevious() . '</span>';
            $html .= $paginator->getPages();
            $html .= '<span class="ccm-page-right">' . $paginator->getNext() . '</span>';
            $html .= '</div>';
        }
        if (isset($html)) {
            if ($return) {
                return $html;
            } else {
                echo $html;
            }
        }
    }
public function displayPaging($script = false, $return = false, $additionalVars = array())
    {
        $summary = $this->getSummary();
        $paginator = $this->getPagination($script, $additionalVars);
        if ($summary->pages > 1) {
            $html = '<div class="ccm-spacer"></div>';
            $html .= '<div class="ccm-pagination">';
            $html .= '<span class="ccm-page-left">' . $paginator->getPrevious() . '</span>';
            $html .= $paginator->getPages();
            $html .= '<span class="ccm-page-right">' . $paginator->getNext() . '</span>';
            $html .= '</div>';
        }
        if (isset($html)) {
            if ($return) {
                return $html;
            } else {
                echo $html;
            }
        }
    }
public function displayPaging ( $ script = false , $ return = false , $ additionalVars = array ( ) ) { $ summary = $ this -> getSummary ( ) ; $ paginator = $ this -> getPagination ( $ script , $ additionalVars ) ; if ( $ summary -> pages > 1 ) { $ html = '<div class="ccm-spacer"></div>' ; $ html .= '<div class="ccm-pagination">' ; $ html .= '<span class="ccm-page-left">' . $ paginator -> getPrevious ( ) . '</span>' ; $ html .= $ paginator -> getPages ( ) ; $ html .= '<span class="ccm-page-right">' . $ paginator -> getNext ( ) . '</span>' ; $ html .= '</div>' ; } if ( isset ( $ html ) ) { if ( $ return ) { return $ html ; } else { echo $ html ; } } }
Gets standard HTML to display paging
Gets standard HTML to display paging