Skip to content

Commit

Permalink
Adding folder listing images and adding new images
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Mar 11, 2012
1 parent 36dea03 commit ddda949
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 24 deletions.
6 changes: 3 additions & 3 deletions wp-content/themes/Grace/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@

<?php if ( is_single() ) { ?>
<!-- include CSS always before including js -->
<link rel="stylesheet" type="text/css" href="./wp-content/themes/Grace/library/tn3/skins/tn3/tn3.css" media="screen" />
<link rel="stylesheet" type="text/css" href="http://www.parroquiadeguadalupe.net/wp-content/themes/Grace/library/tn3/skins/tn3/tn3.css" media="screen" />
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<!-- include tn3 plugin -->
<script type="text/javascript" src="./wp-content/themes/Grace/library/tn3/js/jquery.tn3lite.min.js"></script>
<script type="text/javascript" src="http://www.parroquiadeguadalupe.net/wp-content/themes/Grace/library/tn3/js/jquery.tn3lite.min.js"></script>

<!-- initialize the TN3 when the DOM is ready -->
<script type="text/javascript">
Expand Down Expand Up @@ -123,7 +123,7 @@
<div id="page" >
<div id="header">
<div class="container_12" >
<img src="http://localhost/Guadalupe/wp-content/uploads/2012/01/Banner-principal-Parroquia.jpg" alt="Parroquia de Guadalupe" />
<img src="http://www.parroquiadeguadalupe.net/wp-content/uploads/2012/01/Banner-principal-Parroquia.jpg" alt="Parroquia de Guadalupe" />
</div>
</div>
<!-- header #end -->
Expand Down
25 changes: 4 additions & 21 deletions wp-content/themes/Grace/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@
</div>
</div>











<!-- posttop #end -->
<div class="post_content">

Expand All @@ -57,8 +47,6 @@
<!-- The content -->
<?php the_content(); ?>
<!-- End the content -->


<div id="image_carousel">
<?php
$uploads = wp_upload_dir();
Expand All @@ -67,7 +55,8 @@

if(get_post_meta($post->ID, "image_folder", true)){
//get all image files with a .jpg extension.
$images = new DirectoryIterator($uploads['basedir'] . "/grupos_pastorales/" . get_post_meta($post->ID, "image_folder", true));
$imageFolder = get_post_meta($post->ID, "image_folder", true);
$images = new DirectoryIterator($uploads['basedir'] . "/grupos_pastorales/" . $imageFolder);

if(count($images) > 0){
echo "<div id=\"carousel_content\">";
Expand All @@ -79,8 +68,8 @@
{
if(!$image->isDot()){
echo "<li>";
echo "<a href=\"./wp-content/uploads/grupos_pastorales/kyriacos/" . $image . "\">";
echo "<img src=\"./wp-content/uploads/grupos_pastorales/kyriacos/" . $image . "\" />";
echo "<a href=\"http://www.parroquiadeguadalupe.net/wp-content/uploads/grupos_pastorales/".$imageFolder."/" . $image . "\">";
echo "<img src=\"http://www.parroquiadeguadalupe.net/wp-content/uploads/grupos_pastorales/".$imageFolder."/" . $image . "\" />";
echo "</a>";
echo "</li>";

Expand All @@ -101,12 +90,6 @@
<?php } ?>

</div>






</div>
<!--/posts-->

Expand Down
Binary file removed wp-content/uploads/grupos_pastorales/kyriacos/1.JPG
Binary file not shown.
Binary file removed wp-content/uploads/grupos_pastorales/kyriacos/2.JPG
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed wp-content/uploads/grupos_pastorales/kyriacos/3.JPG
Binary file not shown.
Binary file removed wp-content/uploads/grupos_pastorales/kyriacos/4.JPG
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ddda949

Please sign in to comment.