diff --git a/.htaccess b/.htaccess index 139e00d0..335fe2cd 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,5 @@ +AddDefaultCharset UTF-8 + RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f diff --git a/content/pages/content/how-to-make-a-post/index.txt b/content/pages/content/how-to-make-a-post/index.txt index af4caed7..281ef4ea 100644 --- a/content/pages/content/how-to-make-a-post/index.txt +++ b/content/pages/content/how-to-make-a-post/index.txt @@ -11,20 +11,24 @@ Admin area / GUI. ## Advanced mode You can make new post editing the filesystem. -- Create a directory on /content/posts/ +- Create a directory on `/content/posts/` - The directory name is the uri for the new post -- Create a new file called index.txt inside of the new directory -- Edit the file index.txt +- Create a new file called `index.txt` inside of the new directory +- Edit the file `index.txt` - Add two variables, Tite: and Content: ### Example -- Create the directory /content/posts/test -- Create the file index.txt on /content/posts/test/index.txt -- Edit the file index.txt +- Create the directory `/content/posts/test` +- Create the file `index.txt` on `/content/posts/test/index.txt` +- Edit the file `index.txt` - Add the variables ``` Title: New post test + Content: -This is an example of a new post, hello world! +Hello Lorem +It is a long establishedfact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). + +It is a long establishedfact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). ``` diff --git a/content/pages/content/variables-for-posts-and-pages/index.txt b/content/pages/content/variables-for-posts-and-pages/index.txt index 9edf4cc6..f9c2dc48 100644 --- a/content/pages/content/variables-for-posts-and-pages/index.txt +++ b/content/pages/content/variables-for-posts-and-pages/index.txt @@ -1,16 +1,16 @@ -title: Variables for post +title: Variables for posts and pages content: -There are many fields/variables to make a post. Each field ends on two dots(:). +There are many fields/variables to make a post or a page. Each field ends on two dots(:). The last field needs to be Content:. -- Title: the title for the post. +- Title: the title for the post/page. - Status: with this field you can change bettewen published and draft. -- Unixstamp: you can define the publish time/date in unix time stamp, this need to be in UTF-0. +- Unixstamp: you can define the publish time/date in unix time stamp, this need to be in UTC-0/GMT. - Username: the owner username. Needs to be a valid username. - Author: the author's name. -- Content: the content for the post, support HTML and Markdown code. +- Content: the content for the post/page, support HTML and Markdown code. ### Post example ``` diff --git a/content/pages/getting-started/requirements/index.txt b/content/pages/getting-started/requirements/index.txt index 11bbb5fc..6b8fb010 100644 --- a/content/pages/getting-started/requirements/index.txt +++ b/content/pages/getting-started/requirements/index.txt @@ -3,7 +3,7 @@ Content: You only need a Webserver with PHP support. - PHP 5.3 or higher. -- PHP module [mbstring](http://php.net/manual/en/book.mbstring.php) for UTF-8 full support. +- PHP module [mbstring](http://php.net/manual/en/book.mbstring.php) for full UTF-8 support. - Webserver: * Apache with module [mod_rewrite](http://httpd.apache.org/docs/current/mod/mod_rewrite.html) * Ngnix with module [ngx_http_rewrite_module](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html) \ No newline at end of file diff --git a/content/pages/themes/variables/index.txt b/content/pages/themes/variables/index.txt index 255bc839..ed3b524a 100644 --- a/content/pages/themes/variables/index.txt +++ b/content/pages/themes/variables/index.txt @@ -1,9 +1,20 @@ -Title: Variables for themes +Title: Theme variables Content: -## Object $Site -The object $Site have all the information from the database /content/databases/site.php. +## $pages arrays +This array cotains all pages published. Each item from the array is a `Page Object` + +--- + +## Array $posts + +--- + +## Site object +The object Site have all the information from the database /content/databases/site.php. + +By default there is an object $Site, whith the next methods. Print the site title
echo $Site->title();
@@ -11,7 +22,21 @@ Print the site title Print the site slogan
echo $Site->slogan();
-## Object $Page +--- + +## Page object + +By default if the user filter by a particular page there will be an object $Page. To check if the user is filtering by a page you can uses the object $Url and the method `whereAmI()`. +
if( $Url->whereAmI()==='page' )
+{
+	echo 'The page filtered is '.$Page->title();
+}
+{
+	echo 'The user is not watching a particular page';
+}
+
+ +And here there are the methods for the object $Page. Print the page title
echo $Page->title();
diff --git a/index.php b/index.php index 1306fa44..05644a12 100644 --- a/index.php +++ b/index.php @@ -18,7 +18,7 @@ define('PATH_BOOT', PATH_ROOT.'kernel/boot/'); define('PATH_RULES', PATH_ROOT.'kernel/boot/rules/'); define('PATH_HELPERS', PATH_ROOT.'kernel/helpers/'); -define('PATH_CONTENT', PATH_ROOT.'content/'); +define('PATH_CONTENT', PATH_ROOT.'gitcontent/en_EN/'); define('PATH_POSTS', PATH_CONTENT.'posts/'); define('PATH_PAGES', PATH_CONTENT.'pages/'); define('PATH_DATABASES', PATH_CONTENT.'databases/'); diff --git a/themes/pure/php/sidebar.php b/themes/pure/php/sidebar.php index a15e73ab..17982a96 100644 --- a/themes/pure/php/sidebar.php +++ b/themes/pure/php/sidebar.php @@ -16,8 +16,7 @@

Themes

Plugins