Esempio n. 1
0
 public function render()
 {
     if ($this->totalPages > 1) {
         $this->currentPage = max(1, get_query_var('paged'));
         $this->previousPage = $this->currentPage - 1;
         $this->nextPage = $this->currentPage + 1;
         $this->html = getPartial('bootstrap/bootstrap', 'pagination', array('pages' => $this));
     }
     return $this->html;
 }
Esempio n. 2
0
                echo getPartial('modules/module', 'paragraph');
                break;
            case 'btn':
                echo getPartial('modules/module', 'btn');
                break;
            case 'img':
                echo getPartial('modules/module', 'img');
                break;
            case 'hr':
                echo '<hr />';
                break;
            case 'spacing':
                if ($size = get_sub_field('size')) {
                    echo '<div style="clear: both; height: ' . $size . 'px;"></div>';
                }
                break;
            case 'full_width_content':
                the_sub_field('content');
                break;
            case 'cols_2':
                echo getPartial('modules/module', 'cols-2');
                break;
            case 'cols_3':
                echo getPartial('modules/module', 'cols-3');
                break;
            case 'cols_4':
                echo getPartial('modules/module', 'cols-4');
                break;
        }
    }
}
Esempio n. 3
0
File: index.php Progetto: 0blu/Timer
        <div id="page-wrapper">
            <?php 
if (!isset($_GET["site"])) {
    $site = "dashboard";
} else {
    $site = $_GET["site"];
}
$invalide = array('\\', '/', '/\\/', ':', '.');
$site = str_replace($invalide, ' ', $site);
if (!file_exists("inc/pages/" . $site . ".php")) {
    $site = "404";
}
include "inc/pages/" . $site . ".php";
?>
            
            <?php 
getPartial("footer");
?>
        </div>
    </div>
    <!-- /#wrapper -->


    <?php 
getPartial("footerLib");
?>

</body>

</html>
Esempio n. 4
0
<?php

if (have_rows('page_sections', $pageId)) {
    while (have_rows('page_sections', $pageId)) {
        the_row();
        switch (get_row_layout()) {
            case 'general':
                echo getPartial('sections/section', 'general');
                break;
        }
    }
}