-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #1749 : updated - default plugins (continued.)
- Loading branch information
Showing
7 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
<?php | ||
// TTML Formatter for Textcube 1.6 | ||
// (C) 2004-2009 Needlworks / Tatter Network Foundation | ||
// TTML Formatter for Textcube 1.10.3 | ||
// (C) 2004-2015 Needlworks / Tatter Network Foundation | ||
|
||
if(!function_exists('FM_TTML_bindAttachments')) require_once 'ttml.php'; | ||
|
||
function FM_TTML_format($blogid, $id, $content, $keywords = array(), $useAbsolutePath = true, $bRssMode = false) { | ||
global $service; | ||
$path = __TEXTCUBE_ATTACH_DIR__."/$blogid"; | ||
$url = "{$service['path']}/attach/$blogid"; | ||
$url = $context->getProperty("service.path")."/attach/$blogid"; | ||
$view = FM_TTML_bindAttachments($id, $path, $url, $content, $useAbsolutePath, $bRssMode); | ||
// if (is_array($keywords)) $view = FM_TTML_bindKeywords($keywords, $view); | ||
$view = FM_TTML_bindTags($id, $view); | ||
return $view; | ||
} | ||
|
||
function FM_TTML_summary($blogid, $id, $content, $keywords = array(), $useAbsolutePath = true) { | ||
global $blog; | ||
$view = FM_TTML_format($blogid, $id, $content, $keywords, $useAbsolutePath, true); | ||
if (!$blog['publishWholeOnRSS']) $view = UTF8::lessen(removeAllTags(stripHTML($view)), 255); | ||
if (!$context->getProperty("blog.publishWholeOnRSS")) $view = UTF8::lessen(removeAllTags(stripHTML($view)), 255); | ||
return $view; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
<?php | ||
// Textile formatter for Textcube 1.6 | ||
// Textile formatter for Textcube 1.10.3 | ||
// Library by Threshold state. | ||
// Driver by Jeongkyu Shin. ([email protected]) | ||
// 2008.1.21 | ||
// Last updated : 2015. 2. 16 | ||
|
||
if(!class_exists('Textile')) require_once 'classTextile.php'; | ||
|
||
function FM_Textile_format($blogid, $id, $content, $keywords = array(), $useAbsolutePath = true, $bRssMode = false) { | ||
global $service; | ||
$textile = new Textile(); | ||
$path = __TEXTCUBE_ATTACH_DIR__."/$blogid"; | ||
$url = "{$service['path']}/attach/$blogid"; | ||
$url = $context->getProperty("service.path")."/attach/$blogid"; | ||
if(!function_exists('FM_TTML_bindAttachments')) { // To reduce the amount of loading code! | ||
require_once 'ttml.php'; | ||
} | ||
$view = FM_TTML_bindAttachments($id, $path, $url, $content, $useAbsolutePath, $bRssMode); | ||
$view = FM_TTML_preserve_TTML_type_tags($view); | ||
$view = $textile->TextileThis($view); | ||
$view = FM_TTML_restore_TTML_type_tags($view); | ||
$view = FM_TTML_bindTags($id, $view); | ||
return $view; | ||
} | ||
|
||
function FM_Textile_summary($blogid, $id, $content, $keywords = array(), $useAbsolutePath = true) { | ||
global $blog; | ||
$context = Model_Context::getInstance(); | ||
|
||
$view = FM_Textile_format($blogid, $id, $content, $keywords, $useAbsolutePath, true); | ||
if (!$blog['publishWholeOnRSS']) $view = UTF8::lessen(removeAllTags(stripHTML($view)), 255); | ||
return $view; | ||
if (!$context->getProperty("blog.publishWholeOnRSS")) $view = UTF8::lessen(removeAllTags(stripHTML($view)), 255); | ||
return $view; | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters