Textile support
parent
baf2f66e32
commit
5498206a5a
File diff suppressed because it is too large
Load Diff
|
|
@ -12,6 +12,7 @@
|
||||||
// My approach to MVC
|
// My approach to MVC
|
||||||
require(dirname(__FILE__)."/config.php");
|
require(dirname(__FILE__)."/config.php");
|
||||||
include("classes/configuration.class.php");
|
include("classes/configuration.class.php");
|
||||||
|
include("classes/textile.class.php");
|
||||||
include("classes/gelato.class.php");
|
include("classes/gelato.class.php");
|
||||||
include("classes/templates.class.php");
|
include("classes/templates.class.php");
|
||||||
include("classes/pagination.php");
|
include("classes/pagination.php");
|
||||||
|
|
@ -80,6 +81,9 @@
|
||||||
$formatedDate = date("M d", strtotime($register["date"]));
|
$formatedDate = date("M d", strtotime($register["date"]));
|
||||||
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
||||||
|
|
||||||
|
$textile = new Textile;
|
||||||
|
$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
|
||||||
|
|
||||||
switch ($tumble->getType($register["id_post"])) {
|
switch ($tumble->getType($register["id_post"])) {
|
||||||
case "1":
|
case "1":
|
||||||
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
||||||
|
|
@ -155,6 +159,10 @@
|
||||||
|
|
||||||
$formatedDate = date("M d", strtotime($register["date"]));
|
$formatedDate = date("M d", strtotime($register["date"]));
|
||||||
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
||||||
|
|
||||||
|
$textile = new Textile;
|
||||||
|
$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
|
||||||
|
|
||||||
switch ($tumble->getType($register["id_post"])) {
|
switch ($tumble->getType($register["id_post"])) {
|
||||||
case "1":
|
case "1":
|
||||||
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue