Merge remote-tracking branch 'upstream/master'
commit
9ef83ffdb4
|
@ -0,0 +1,3 @@
|
||||||
|
{{ inc field_radio.tpl with $field=$global }}{{ endinc }}
|
||||||
|
{{ inc field_radio.tpl with $field=$individual }}{{ endinc }}
|
||||||
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
@ -61,6 +61,10 @@ function altpager_settings(&$a,&$s) {
|
||||||
if(! local_user())
|
if(! local_user())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
$global = get_config("alt_pager", "global");
|
||||||
|
if($global == 1)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||||
|
|
||||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/altpager/altpager.css' . '" media="all" />' . "\r\n";
|
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/altpager/altpager.css' . '" media="all" />' . "\r\n";
|
||||||
|
@ -87,3 +91,18 @@ function altpager_settings(&$a,&$s) {
|
||||||
$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('Submit') . '" /></div></div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function altpager_plugin_admin(&$a, &$o){
|
||||||
|
$t = file_get_contents( $a->get_baseurl() . "/addon/altpager/admin.tpl" );
|
||||||
|
$o = replace_macros($t, array(
|
||||||
|
'$submit' => t('Submit'),
|
||||||
|
'$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)
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
function altpager_plugin_admin_post(&$a){
|
||||||
|
$choice = ((x($_POST,'altpagerchoice')) ? notags(trim($_POST['altpagerchoice'])) : '');
|
||||||
|
set_config('alt_pager','global',($choice == 1 ? 1 : 0));
|
||||||
|
info( t('Settings updated.'). EOL );
|
||||||
|
}
|
||||||
|
|
BIN
convert.tgz
BIN
convert.tgz
Binary file not shown.
BIN
editplain.tgz
BIN
editplain.tgz
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Name: Editplain
|
* Name: Editplain
|
||||||
* Description: Disable richtext (TinyMCE) editor for status posting
|
* Description: This addon is deprecated and has been replaced with the "Advanced Features" setting. Admins should remove this addon when their core code is updated to include advanced feature settings.
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||||
*
|
*
|
||||||
|
|
BIN
fbpost.tgz
BIN
fbpost.tgz
Binary file not shown.
BIN
forumlist.tgz
BIN
forumlist.tgz
Binary file not shown.
BIN
js_upload.tgz
BIN
js_upload.tgz
Binary file not shown.
|
@ -196,7 +196,13 @@ class qqUploadedFileXhr {
|
||||||
*/
|
*/
|
||||||
function save() {
|
function save() {
|
||||||
$input = fopen("php://input", "r");
|
$input = fopen("php://input", "r");
|
||||||
$this->pathnm = tempnam(sys_get_temp_dir(),'frn');
|
|
||||||
|
$upload_dir = get_config('system','tempdir');
|
||||||
|
if(! $upload_dir)
|
||||||
|
$upload_dir = sys_get_temp_dir();
|
||||||
|
|
||||||
|
$this->pathnm = tempnam($upload_dir,'frn');
|
||||||
|
|
||||||
$temp = fopen($this->pathnm,"w");
|
$temp = fopen($this->pathnm,"w");
|
||||||
$realSize = stream_copy_to_stream($input, $temp);
|
$realSize = stream_copy_to_stream($input, $temp);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
#ljpost-enable-label, #ljpost-username-label, #ljpost-password-label, #ljpost-bydefault-label {
|
#ljpost-enable-label, #ljpost-username-label, #ljpost-password-label, #ljpost-bydefault-label {
|
||||||
<<<<<<< HEAD
|
|
||||||
float: left;
|
float: left;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
@ -15,18 +14,3 @@
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
=======
|
|
||||||
float: left;
|
|
||||||
width: 200px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ljpost-checkbox, #ljpost-username, #ljpost-password, #ljpost-bydefault {
|
|
||||||
float: left;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ljpost-submit {
|
|
||||||
margin-top: 15px;
|
|
||||||
}
|
|
||||||
>>>>>>> 99d9fddb6af9e872266666038447771e42ce13b4
|
|
||||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Name: Page
|
* Name: Page
|
||||||
* Description: Shows list of subscribed community pages/forums on network sidebar
|
* Description: This addon is now deprecated. Administrators should switch to forumlist instead. Developers should also add any functionality to forumlist instead of here.
|
||||||
* Version: 1.0
|
* Version: 1.0
|
||||||
* Author: Mike Macgirvin <mike@macgirvin.com>
|
* Author: Mike Macgirvin <mike@macgirvin.com>
|
||||||
* based on pages plugin by
|
* based on pages plugin by
|
||||||
|
|
Binary file not shown.
BIN
smiley_pack.tgz
BIN
smiley_pack.tgz
Binary file not shown.
BIN
statusnet.tgz
BIN
statusnet.tgz
Binary file not shown.
BIN
twitter.tgz
BIN
twitter.tgz
Binary file not shown.
Loading…
Reference in New Issue