Exemplo n.º 1
0
 function getAllPages()
 {
     echo "Getting all pages" . PHP_EOL;
     $allPages = array();
     $pages = getAllPages();
     foreach ($pages as $p) {
         $page = new Page($content = $p['title']);
         echo $page->getFullTitle() . PHP_EOL;
         array_push($allPages, $page);
     }
     $pages101 = get101companiesPages();
     //!!
     foreach ($pages101 as $p) {
         $page = new Page($content = $p['title']);
         array_push($allPages, $page);
         echo "101companies page found: " . $page->getFullTitle() . PHP_EOL;
     }
     return $allPages;
     // var_dump($allPages);
 }
Exemplo n.º 2
0
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */
get_top_nav();
//Call the navigation
?>

<div id="wrap">
	<div id="widecb">
		<div id="additemnav">
		<ul>
			<?php 
$pages = getAllPages();
foreach ($pages as $page) {
    ?>
					<li><a href="<?php 
    echo HOME . $page->slug;
    ?>
" title="<?php 
    echo $page->title;
    ?>
"><?php 
    echo $page->title;
    ?>
</a></li>
					
				<?php 
}
Exemplo n.º 3
0
// Config options
$templates_to_ignore = array();
// Template IDs to ignore from the link list
$include_page_ids = false;
$charset = 'UTF-8';
$mode = 'tree';
// breadcrumbs or tree
$tree_style = '1';
// What style should the tree use? Choose 1,2,3 or 4
$sortby = 'menuindex';
// Could be menuindex or menutitle
$path_to_modx_config = '../../../manager/includes/config.inc.php';
/* That's it to config! */
$tree_styles = array("|--", "&#38;#x2516;&#38;#x2500;&nbsp;", "&#38;#x25B9;&nbsp;&nbsp;", "L&nbsp;&nbsp;");
include_once $path_to_modx_config;
$allpages = getAllPages();
if (!is_array($allpages)) {
    die;
}
$list = array();
foreach ($allpages as $page) {
    if (!in_array($page['template'], $templates_to_ignore)) {
        $caption = '';
        $page['parents'] = array_reverse($page['parents']);
        $breadcrumbs = array();
        $sortcrumbs = array();
        $published = $page['published'];
        foreach ($page['parents'] as $parent) {
            $p = getPage($parent);
            // Assemble what will be displayed
            $breadcrumbs[] = $p['menutitle'] ? htmlentities($p['menutitle'], ENT_QUOTES, $charset) : htmlentities($p['pagetitle'], ENT_QUOTES, $charset);
Exemplo n.º 4
0
    while ($stmt->fetch()) {
        $results[$i]['title'] = $title;
        $results[$i]['image_thumb'] = $image_thumb;
        $results[$i]['image_thumb_med'] = $image_thumb_med;
        $results[$i]['tile_size'] = $tile_size;
        $results[$i]['tile_id'] = $tile_id;
        $results[$i]['order'] = $order;
        $results[$i]['tags'] = $tags;
        $i++;
    }
    $stmt->close();
    $mysqli->close();
    return $results;
}
$pages = getPage($page_id, $DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
$allPages = getAllPages($DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
$allMapTiles = getAllMapTiles($DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
$selectedMapTiles = getSelectedMapTiles($page_id, $DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
$allPageTiles = getAllTiles($DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
$selectedPageTiles = getSelectedTiles($page_id, $DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
?>
<html>
<head>
    <title>Edit Page</title>
    <?php 
include 'includes/head.php';
?>
    <script src="ckeditor/ckeditor.js"></script>
</head>
<body>