diff --git a/system/includes/functions.php b/system/includes/functions.php index 0fbcb78..4cff6c3 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -792,7 +792,7 @@ function get_description($string) } // Get the teaser -function get_teaser($text, $url) +function get_teaser($text) { $teaserType = config('teaser.type'); @@ -802,8 +802,7 @@ function get_teaser($text, $url) $string = preg_replace('/\s\s+/', ' ', strip_tags($text)); $string = substr($string, 0, config('teaser.char')); $string = substr($string, 0, strrpos($string, ' ')); - $body = $string . '...' . ' more'; - echo '

' . $body . '

'; + echo $string; } } @@ -919,16 +918,16 @@ function disqus($title = null, $url = null) $comment = config('comment.system'); $disqus = config('disqus.shortname'); $script = << - var disqus_shortname = '{$disqus}'; - var disqus_title = '{$title}'; - var disqus_url = '{$url}'; - (function () { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - + EOF; if (!empty($disqus) && $comment == 'disqus') { return $script; @@ -941,14 +940,14 @@ function disqus_count() $comment = config('comment.system'); $disqus = config('disqus.shortname'); $script = << - var disqus_shortname = '{$disqus}'; - (function () { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - + EOF; if (!empty($disqus) && $comment == 'disqus') { return $script; @@ -961,8 +960,8 @@ function recent_comments() $comment = config('comment.system'); $disqus = config('disqus.shortname'); $script = << - + + EOF; if (!empty($disqus) && $comment == 'disqus') { return $script; @@ -974,15 +973,17 @@ function facebook() $comment = config('comment.system'); $appid = config('fb.appid'); $script = << - - +
+ + EOF; if (!empty($appid) && $comment == 'facebook') { @@ -1009,14 +1010,13 @@ function analytics($analyticsDir = null) $analyticsDir = site_url() . 'themes/' . $analyticsDir . 'analytics.js'; } $script = << - (function (i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function () { + EOF; if (!empty($analytics)) { @@ -1189,10 +1189,10 @@ function get_menu() function search() { echo << - - - +
+ + +
EOF; if (isset($_GET['search'])) { $url = site_url() . 'search/' . $_GET['search']; diff --git a/themes/clean/main.html.php b/themes/clean/main.html.php index bcef0a1..e9a76be 100644 --- a/themes/clean/main.html.php +++ b/themes/clean/main.html.php @@ -36,7 +36,7 @@
body) ?> - body, $p->url) ?> +

body) ?>... more

diff --git a/themes/default/main.html.php b/themes/default/main.html.php index bcef0a1..e9a76be 100644 --- a/themes/default/main.html.php +++ b/themes/default/main.html.php @@ -36,7 +36,7 @@
body) ?> - body, $p->url) ?> +

body) ?>... more

diff --git a/themes/logs/main.html.php b/themes/logs/main.html.php index e937bb0..6045315 100644 --- a/themes/logs/main.html.php +++ b/themes/logs/main.html.php @@ -36,7 +36,7 @@
body) ?> - body, $p->url) ?> +

body) ?>... more