[pLog-svn] r7278 - plugins/branches/lifetype-1.2/stickyposts

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Feb 19 15:38:35 EST 2024


Author: jondaley
Date: 2024-02-19 15:38:35 -0500 (Mon, 19 Feb 2024)
New Revision: 7278

Modified:
   plugins/branches/lifetype-1.2/stickyposts/pluginstickyposts.class.php
   plugins/branches/lifetype-1.2/stickyposts/readme.txt
Log:
use show_more link in sticky posts if specified

Modified: plugins/branches/lifetype-1.2/stickyposts/pluginstickyposts.class.php
===================================================================
--- plugins/branches/lifetype-1.2/stickyposts/pluginstickyposts.class.php	2024-02-19 20:37:54 UTC (rev 7277)
+++ plugins/branches/lifetype-1.2/stickyposts/pluginstickyposts.class.php	2024-02-19 20:38:35 UTC (rev 7278)
@@ -23,7 +23,7 @@
             $this->author = "lss(1.0)/EagleKing(porting to 1.1)/jondaley(port to 1.2)";
             $this->desc = "This plugin offers features to get all articles from specific article cateogries as announcements and sticky articles.";
             $this->version = "20240219";
-            $this->locales = Array( "en_UK" , "zh_TW" , "zh_CN", "es_ES" );
+            $this->locales = Array( "en_UK" , "zh_TW" , "zh_CN" );
 
             if($source == "admin")
                 $this->initAdmin();
@@ -74,7 +74,8 @@
 			
 			$articles = new Articles();
 			$ret_articles = $articles->getBlogArticles( $blogId, -1, $maxpost, $catId, POST_STATUS_PUBLISHED );
-			
+      foreach( $ret_articles as $article )
+        $article->setupShowMoreLink();
 			return $ret_articles;
         }
         
@@ -94,4 +95,3 @@
 			return $ret_category;
         }
     }
-?>

Modified: plugins/branches/lifetype-1.2/stickyposts/readme.txt
===================================================================
--- plugins/branches/lifetype-1.2/stickyposts/readme.txt	2024-02-19 20:37:54 UTC (rev 7277)
+++ plugins/branches/lifetype-1.2/stickyposts/readme.txt	2024-02-19 20:38:35 UTC (rev 7278)
@@ -1,8 +1,8 @@
 Name: stickyposts
-Latest version: 1.1 (for LifeType 1.1.x)
+Latest version: 1.2
 Download link: http://sourceforge.net/projects/lifetype/ or http://www.pactofshadow.com/lifetype/2/articleperma/40.html
 License: GPL
-Author: lss / EagleKing(1.1 porting)
+Author: lss / EagleKing(1.1 porting) / jondaley(1.2 porting and cleanup)
 
 Description
 
@@ -13,11 +13,11 @@
 In ControlCenter:
 
    1. Create two categories for Sticky and Annouce.
-   2. You can configure this plugin in controlcetner >> StickyPosts .
+   2. You can configure this plugin in controlcenter >> StickyPosts .
    3. maxStickys and maxAnnouces are numbers of sticky/announce articles for display in blog. The default value is 5.
    4. Select category for store sticky/announce articles. 
 
-In tempalte file, You can use:
+In template file, you can use:
 
    1. $stickyposts->isEnabled() to check the plugin is enabled or not.
    2. $stickyposts->getArticles( 'sticky' ) to get an array of articles for sticky.
@@ -29,8 +29,6 @@
    6. $stickyposts->getCategory( 'announce' ) to get an category object for annuonce articles.
    7. $stickyposts->getCategory( 12 ) to get an category object for categoryId = 12. 
 
-Where the 'sticky' and 'announce' are plugin reverse string.
-
 Example: 
 Modifies main.template of template 'standard'
 below 



More information about the pLog-svn mailing list