Browse Source

Textile support

pecesama 18 years ago
parent
commit
5498206a5a
2 changed files with 4088 additions and 0 deletions
  1. 4080 0
      classes/textile.class.php
  2. 8 0
      index.php

File diff suppressed because it is too large
+ 4080 - 0
classes/textile.class.php


+ 8 - 0
index.php View File

@@ -12,6 +12,7 @@
12 12
 	// My approach to MVC
13 13
 	require(dirname(__FILE__)."/config.php");
14 14
 	include("classes/configuration.class.php");
15
+	include("classes/textile.class.php");
15 16
 	include("classes/gelato.class.php");	
16 17
 	include("classes/templates.class.php");
17 18
 	include("classes/pagination.php");
@@ -80,6 +81,9 @@
80 81
 				$formatedDate = date("M d", strtotime($register["date"]));
81 82
 				$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
82 83
 				
84
+				$textile = new Textile;
85
+ 				$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
86
+				
83 87
 				switch ($tumble->getType($register["id_post"])) {
84 88
 					case "1":
85 89
 						$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
@@ -155,6 +159,10 @@
155 159
 		
156 160
 		$formatedDate = date("M d", strtotime($register["date"]));
157 161
 		$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
162
+		
163
+		$textile = new Textile;
164
+		$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
165
+		
158 166
 		switch ($tumble->getType($register["id_post"])) {
159 167
 			case "1":
160 168
 				$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");