Exemplo n.º 1
0
<?php

$pm = new PageManager();
$list = $pm->getPageList();
$yt = new YouTube();
?>
var app = angular.module("WomenLine",['ngRoute']).config(function($routeProvider, $locationProvider){
    $routeProvider
        .when('/', {
            templateUrl : 'home/angular',
            controller : 'WomenLineController'
        }).when('/home', {
            templateUrl : 'home/angular',
            controller : 'WomenLineController'
        })
        .when('/gallery', {
            templateUrl : 'gallery/angular',
            controller : 'galleryController'
        })
        .when('/volunteers', {
            templateUrl : 'volunteers/angular',
            controller : 'volunteerController'
        })
        .when('/partners', {
            templateUrl : 'partners/angular',
            controller : 'partnerController'
        })
        .when('/sponcer-a-girl', {
            templateUrl : 'sponcer-a-girl/angular',
            controller : 'sponcerAGirlController'
        })
Exemplo n.º 2
0
<?php

$config = new Config();
$url = new URL();
$pm = new PageManager();
$pages = $pm->getPageList();
echo Comman::loadView('admin-header');
?>
<div class="container" style="margin-top: 10px;">
	<div class="row">
		<div class="col-xs-12">
			<div class="panel">
				<div class="panel-body">
					<table class="table table-bordered">
						<tr><th>#</th><th>Name</th><th></th></tr>
						<?php 
$i = 1;
foreach ($pages as $page) {
    $pm->setPage($page);
    ?>
							<tr>
								<td><?php 
    echo $i++;
    ?>
</td>
								<td><?php 
    echo $pm->getPageInfo('page-title');
    ?>
</td>
								<td><a href="<?php 
    echo $config->site_address . $page;