template/wordpress/index.php in edge_framework-0.8.1 vs template/wordpress/index.php in edge_framework-0.9.0
- old
+ new
@@ -11,20 +11,20 @@
);
$categories = get_categories($args);
// Get list of all pages
$page_args = array(
- 'child_of' => 0,
- 'sort_order' => 'ASC',
- 'sort_column' => 'post_title',
+ "child_of" => 0,
+ "sort_order" => "ASC",
+ "sort_column" => "post_title",
);
$pages = get_pages($args);
?>
<p><small>index.php</small></p>
-<h1>Welcome to <?php bloginfo('name'); ?></h1>
+<h1>Welcome to <?php bloginfo("name"); ?></h1>
<h3>Category</h3>
<ul>
<?php foreach ($categories as $category): ?>
<li>
@@ -37,21 +37,21 @@
<h3>Pages</h3>
<ul>
<?php foreach ($pages as $page): ?>
<li>
- <a href="<?php echo get_page_link( $page->ID ); ?> ">
+ <a href="<?php echo get_page_link( $page->ID ); ?>">
<?php echo $page->post_title; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<!-- How to get Page content outside "page" template -->
<h3>About Us</h3>
<?php
$page = get_page_by_title("About Us");
- $content = apply_filters('the_content', $page->post_content);
+ $content = apply_filters("the_content", $page->post_content);
echo $content;
?>
<?php get_footer(); ?>
\ No newline at end of file