[gnomeweb-wp] fix wppo_install function to support separated folders and add support in some template pages to get



commit cd845a80cff0f0cfece2faa7f850f5044c132931
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Thu Feb 10 23:14:27 2011 -0200

    fix wppo_install function to support separated folders and add support in
    some template pages to get translated content.

 wp-content/plugins/wppo/wppo.php             |    3 ++-
 wp-content/themes/gnome-grass/index.php      |    4 ++--
 wp-content/themes/gnome-grass/one-column.php |    4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/wp-content/plugins/wppo/wppo.php b/wp-content/plugins/wppo/wppo.php
index f2ecb96..6376063 100644
--- a/wp-content/plugins/wppo/wppo.php
+++ b/wp-content/plugins/wppo/wppo.php
@@ -66,7 +66,8 @@ function wppo_install () {
     dbDelta ($sql);
   }
   
-  if (!is_dir (PO_DIR)) {
+  if (!is_dir (WPPO_DIR)) {
+    @mkdir (WPPO_DIR, 0777);
     @mkdir (PO_DIR, 0777);
     @mkdir (POT_DIR, 0777);
     @mkdir (XML_DIR, 0777);
diff --git a/wp-content/themes/gnome-grass/index.php b/wp-content/themes/gnome-grass/index.php
index 5c04694..1168d75 100644
--- a/wp-content/themes/gnome-grass/index.php
+++ b/wp-content/themes/gnome-grass/index.php
@@ -11,12 +11,12 @@ require_once("header.php"); ?>
         <div class="container_12">
         
             <div class="page_title">
-                <h1><?php the_title(); ?></h1>
+                <h1><?php echo wppo_get_the_title(); ?></h1>
             </div>
             
             <div class="content">
             <?php while ( have_posts() ) : the_post(); ?>
-                <?php the_content(); ?>
+                <?php echo wppo_get_the_content(); ?>
             <?php endwhile; // End the loop. Whew. ?>
                 <br />
                 <div class="clear"></div>
diff --git a/wp-content/themes/gnome-grass/one-column.php b/wp-content/themes/gnome-grass/one-column.php
index 972aee8..a16905e 100644
--- a/wp-content/themes/gnome-grass/one-column.php
+++ b/wp-content/themes/gnome-grass/one-column.php
@@ -10,12 +10,12 @@ require_once("header.php"); ?>
         <div class="container_12">
         
             <div class="page_title">
-                <h1><?php the_title(); ?></h1>
+                <h1><?php echo wppo_get_the_title(); ?></h1>
             </div>
             
             <div class="content without_sidebar">
             <?php while ( have_posts() ) : the_post(); ?>
-                <?php the_content(); ?>
+                <?php echo wppo_get_the_content(); ?>
             <?php endwhile; // End the loop. Whew. ?>
                 <br />
                 <div class="clear"></div>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]