?>
/images/PiliPinas-Placeholder.jpg" class="singleheader-img"/>
			<?php 
        }
        ?>
		</div>
	</div>
	<div class="w-section article-sec">
		<div class="w-container article-container">
			<?php 
        echo the_content();
        ?>
		</div>
	</div>
	<?php 
        $items = getPostsByCategory("HowToVote", "publish", -1, 0, "date", "DESC");
        ?>
	<?php 
        if (count($items) > 1) {
            ?>
	<div id="News-Sec" class="w-section news-sec">
		<h2>More Tutorials</h2>
		<div data-animation="slide" data-duration="500" data-infinite="1" data-delay="4000" data-autoplay="1" class="w-slider slider">
			<div class="w-slider-mask slider-mask">
				<?php 
            foreach ($items as $item) {
                ?>
				<?php 
                if ($item->ID != $post->ID) {
                    ?>
				<div class="w-slide w-clearfix slide news-content">
<?php

get_header();
$post = get_post(get_the_ID());
?>
	<div data-ix="dissolve" class="w-section single-header">
		<div class="single-article-header">
			<div class="overlay-text">
				<div class="w-container">
					<h1>Page under construction.</h1>
				</div>
			</div>
			<img src="<?php 
echo get_template_directory_uri();
?>
/images/PiliPinas-Placeholder.jpg" class="singleheader-img"/>
		</div>
	</div>
	<div class="w-section article-sec">
		<div class="w-container article-container">
			<?php 
$vcmnews = current(getPostsByCategory("VCMNews", "publish", 1, 0, 'date', 'DESC'));
?>
			<p>Oops! The page is still under development. In the meantime, take a look at the new Vote Counting Machine <a href="<?php 
echo $vcmnews->guid;
?>
/">here</a>.</p>
		</div>
	</div>
<?php 
get_footer();
<?php

/* Template Name: About Page Template */
get_header();
$pageID = get_the_ID();
$post = current(getPostsByCategory("About", "publish", 1, 0, 'date', 'DESC'));
?>
	<div data-ix="dissolve" class="w-section single-header">
		<div class="single-article-header">
			<div class="overlay-text">
				<div class="w-container">
					<h1><?php 
echo $post->post_title;
?>
</h1>
					<p class="header-p">
					<?php 
if (get_post_custom_values('custom author', $post->ID)) {
    ?>
					<?php 
    echo current(get_post_custom_values('custom author', $post->ID));
    ?>
					<?php 
} else {
    ?>
					<?php 
    echo get_the_author_meta("user_nicename", $post->post_author);
    ?>
					<?php 
}
?>
Exemple #4
0
    
    <?php 
$postsEditorial = getPostsByCategory("Editorial");
?>

    <footer>
    	<section id="footer_wrap">
        
            <section id="sitemap">
                <h3>Mapa del sitio</h3>
                <ul>
                    <li><a href="index.php" class="activo">Inicio</a>
                    <li><a href="quienes-somos.php">Conocenos</a></li>
                    <li><a href="informate.php">Informate</a>
                    <li><a href="prensa.php">Prensa</a>
                    <li><a href="donaciones.php">Donaciones</a>
                </ul>
            </section> <!--fin sitemap-->
            
            <section id="editorial">
            	<h3>Editorial</h3>
                <div id="editorial_box">

                    <?php 
foreach ($postsEditorial as $i => $post) {
    ?>
                    <div>
                        <a href="editorial.php">
                            <img src="images/editorial01.png">
                        </a>
                        <h4><?php 
		</div>
		<div class="w-slider-arrow-right arrow">
			<div class="w-icon-slider-right"></div>
		</div>
		<div class="w-slider-nav w-round"></div>
	</div>
</div>
<?php 
}
?>
<div class="w-section sec-3">
	<div class="w-container container">
		<div class="white-text">
			<?php 
$obj = getPostByTitle("VCM Home Text");
echo $obj->post_content;
?>
      <?php 
$vcmnews = current(getPostsByCategory("VCMNews", "publish", 1, 0, "date", "DESC"));
?>
			<div data-ix="scroll-up-3" class="button-div">
				<a href="<?php 
echo $vcmnews->guid;
?>
" class="w-button button">Read more about VCM</a>
			</div>
		</div>
	</div>
</div>
<?php 
get_footer();
Exemple #6
0
<?php

require_once 'requests/_main.php';
$posts = getPostsByCategory("Informate");
$gallery = array();
if (isset($_GET["id_post"])) {
    $post = getPost($_GET["id_post"]);
    $gallery = getPostGallery($_GET["id_post"]);
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>FuDIT - Conciencia de Vida</title>

<link rel="shortcut icon" href="images/favicon.ico" />
<link href="css/fudit_style.css" rel="stylesheet" />
<!--@font-face-->
<link href="css/stylesheet.css" rel="stylesheet" />
<!--Hover effect-->
<link href="css/hover.css" rel="stylesheet" />
<!--Slideshow-->
<link rel="stylesheet" type="text/css" href="css/bx_styles.css" />

<!-- Libreria JQuery-->
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<!--[if IE]>
<link href="css/ie.css" rel="stylesheet" />
<![endif]-->
        } else {
            ?>
				<?php 
            the_date("M. j Y", "on ");
            ?>
				<?php 
        }
        ?>
			</p>
			<?php 
        echo html_entity_decode(do_shortcode(the_content()));
        ?>
		</div>
	</div>
	<?php 
        $items = getPostsByCategory("Videos", "publish", -1, 0, "date", "DESC");
        ?>
	<?php 
        if (count($items) > 1) {
            ?>
	<div id="News-Sec" class="w-section news-sec">
		<h2>More Videos</h2>
		<div data-animation="slide" data-duration="500" data-infinite="1" data-delay="4000" data-autoplay="1" class="w-slider slider">
			<div class="w-slider-mask slider-mask">
				<?php 
            foreach ($items as $item) {
                ?>
				<?php 
                if ($item->ID != $post->ID) {
                    ?>
				<div class="w-slide w-clearfix slide news-content">
" class="link">About</a>
	            <a href="<?php 
echo getPageUrl('Accreditation');
?>
" class="link">Accreditation</a>
	            <a href="<?php 
echo get_site_url();
?>
/faqs/" class="link">FAQS</a>
	          </div>
	        </div>
	        <div class="w-col w-col-4">
	          <div>
	            <h4 class="h4">latest blogs</h4>
	            <?php 
$links = getPostsByCategory("Blog post", "publish", 7, 0, 'date', 'DESC');
?>
	            <?php 
foreach ($links as $link) {
    ?>
	            	<a href="<?php 
    echo $link->guid;
    ?>
" class="link"><?php 
    echo $link->post_title;
    ?>
</a>
	        	<?php 
}
?>
	          </div>
									</div>
								</div>
						<?php 
    if (($key + 1) % 3 == 0 && $key > $f || $key + 1 == sizeof($items)) {
        ?>
							</div>
						<?php 
    }
    ?>
					<?php 
}
?>
	            </div>
	            <div data-w-tab="Tab 1" class="w-tab-pane">
	            	<?php 
$items = getPostsByCategory("HowToVoteVideos", "publish");
?>
					<?php 
$f = 0;
foreach ($items as $key => $item) {
    ?>
						<?php 
    if ($key % 3 == 0) {
        ?>
							<?php 
        $f = $key;
        ?>
							<div class="w-row">
						<?php 
    }
    ?>
	<div data-ix="dissolve" class="w-section single-header">
		<div class="single-article-header">
			<div class="overlay-text">
				<div class="w-container">
					<h1>Blogs</h1>
					<p class="header-p">You got all the latest Blogs here</p>
				</div>
			</div>
			<?php 
print_r(get_the_post_thumbnail(get_the_ID(), null, array('class' => 'singleheader-img')));
?>
		</div>
	</div>
	<div class="w-section article-sec all-news">
		<?php 
$items = getPostsByCategory('Blog post', 'publish', -1, 0, 'date', 'DESC');
?>
		<?php 
$f = 0;
foreach ($items as $key => $item) {
    ?>
			<?php 
    if ($key % 4 == 0) {
        ?>
				<?php 
        $f = $key;
        ?>
				<div class="w-row">
			<?php 
    }
    ?>
        } else {
            ?>
				<?php 
            the_date("M. j Y", "on ");
            ?>
				<?php 
        }
        ?>
			</p>
			<?php 
        echo the_content();
        ?>
		</div>
	</div>
	<?php 
        $items = getPostsByCategory("Blog post", "publish", -1, 0, "date", "DESC", get_the_author_ID());
        ?>
	<?php 
        if (count($items) > 1) {
            ?>
	<div id="News-Sec" class="w-section news-sec">
		<h2>
			More Blog Posts by 
			<?php 
            if (get_post_custom_values('custom author', get_the_ID())) {
                ?>
			<?php 
                echo current(get_post_custom_values('custom author', get_the_ID()));
                ?>
			<?php 
            } else {
Exemple #12
0
<?php

require_once 'requests/_main.php';
$postsEditorial = getPostsByCategory("Editorial");
$postsNoticias = getPostsByCategory("Noticia");
$gallery = array();
if (isset($_GET["id_post"])) {
    $post = getPost($_GET["id_post"]);
    $gallery = getPostGallery($_GET["id_post"]);
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>FuDIT - Conciencia de Vida</title>

<link rel="shortcut icon" href="images/favicon.ico" />
<link href="css/fudit_style.css" rel="stylesheet" />
<!--@font-face-->
<link href="css/stylesheet.css" rel="stylesheet" />
<!--Hover effect-->
<link href="css/hover.css" rel="stylesheet" />
<!--Slideshow-->
<link rel="stylesheet" type="text/css" href="css/bx_styles.css" />

<!-- Libreria JQuery-->
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<!--[if IE]>
<link href="css/ie.css" rel="stylesheet" />
<![endif]-->
    ?>
			<?php 
} else {
    ?>
				<img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/PiliPinas-Placeholder.jpg" />
			<?php 
}
?>
		</div>
	</div>
	<div class="w-section article-sec all-news">
		<?php 
$items = getPostsByCategory('Videos', 'publish', -1, 0, 'date', 'DESC');
?>
		<?php 
$f = 0;
foreach ($items as $key => $item) {
    ?>
			<?php 
    if ($key % 4 == 0) {
        ?>
				<?php 
        $f = $key;
        ?>
				<div class="w-row">
			<?php 
    }
    ?>