diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2012-03-28 03:00:24 -0700 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2012-03-28 03:00:24 -0700 |
commit | 768326e484c02b396badcb239880fc814fc9631b (patch) | |
tree | 58dc31cd7fa40bc8bb6beff4967397705ac2437a /mod | |
parent | 40a65d38e04df5256d05f2a16497c39f83f51bd5 (diff) | |
parent | 0a2675d8b698302e50cb64ce5793ab9d22dee329 (diff) | |
download | volse-hubzilla-768326e484c02b396badcb239880fc814fc9631b.tar.gz volse-hubzilla-768326e484c02b396badcb239880fc814fc9631b.tar.bz2 volse-hubzilla-768326e484c02b396badcb239880fc814fc9631b.zip |
Merge pull request #179 from fabrixxm/master
new field_combobox template and some eyecandy to "file as" function
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/filer.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mod/filer.php b/mod/filer.php index a9e213536..82537848b 100755 --- a/mod/filer.php +++ b/mod/filer.php @@ -16,8 +16,20 @@ function filer_content(&$a) { logger('filer: tag ' . $term . ' item ' . $item_id); - if($item_id && strlen($term)) + if($item_id && strlen($term)){ + // file item file_tag_save_file(local_user(),$item_id,$term); - + } else { + // return filer dialog + $filetags = get_pconfig(local_user(),'system','filetags'); + $filetags = explode("][", trim($filetags,"[]")); + $tpl = get_markup_template("filer_dialog.tpl"); + $o = replace_macros($tpl, array( + '$field' => array('term', t("File as:"), '', '', $filetags, t('- select -')), + '$submit' => t('Save'), + )); + + echo $o; + } killme(); } |