]> git.mxchange.org Git - friendica-addons.git/blobdiff - altpager/altpager.php
snautofollow is deprecated since it moved into the core.
[friendica-addons.git] / altpager / altpager.php
index f5ccbe4d025a79d9f280afe881cb6aed9daa4412..78bab432b3a96defe6bdfa135482f72d3676e39a 100755 (executable)
@@ -4,8 +4,7 @@
  * Description: Change pagination from using explicit page numbers to simple "newer" and "older" page links. This will speed up page load times.
  * Version: 1.0
  * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
- * 
- *
+ * Status: Unsupported
  */
 
 
@@ -88,14 +87,14 @@ function altpager_settings(&$a,&$s) {
 
        /* provide a submit button */
 
-       $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="altpager-submit" class="settings-submit" value="' . t('Submit') . '" /></div></div>';
+       $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="altpager-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
 
 }
 
 function altpager_plugin_admin(&$a, &$o){
-       $t = file_get_contents( $a->get_baseurl() . "/addon/altpager/admin.tpl" );
+       $t = get_markup_template( "admin.tpl", "addon/altpager/" );
        $o = replace_macros($t, array(
-               '$submit' => t('Submit'),
+               '$submit' => t('Save Settings'),
                '$global' => array('altpagerchoice', t('Global'), 1, t('Force global use of the alternate pager'),  get_config('alt_pager', 'global') == 1),
                '$individual' => array('altpagerchoice', t('Individual'), 2, t('Each user chooses whether to use the alternate pager'),  get_config('alt_pager', 'global') == 0)
        ));
@@ -106,3 +105,4 @@ function altpager_plugin_admin_post(&$a){
        set_config('alt_pager','global',($choice == 1 ? 1 : 0));
        info( t('Settings updated.'). EOL );
 }
+