Changeset 9789
- Timestamp:
- Mar 20, 2011, 2:26:37 PM (14 years ago)
- Location:
- extensions/SmiliesSupport
- Files:
-
- 2 added
- 3 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmiliesSupport/admin.php
r9764 r9789 15 15 16 16 $conf_smiliessupport = array( 17 isset($_POST['text1']) ? $_POST['text1'] : 'plugins/SmiliesSupport/smilies ',18 isset($_POST['text2']) ? $_POST['text2'] : ' 5',19 isset($_POST['text3']) ? $_POST['text3'] : 's ourire.gif',17 isset($_POST['text1']) ? $_POST['text1'] : 'plugins/SmiliesSupport/smilies_1', 18 isset($_POST['text2']) ? $_POST['text2'] : '6', 19 isset($_POST['text3']) ? $_POST['text3'] : 'smile.png', 20 20 ); 21 21 22 if (empty($_POST['text'])) $_POST['text'] = ':) s ourire.gif';22 if (empty($_POST['text'])) $_POST['text'] = ':) smile.png'; 23 23 24 24 $new_value_smiliessupport = implode (",", $conf_smiliessupport); … … 43 43 } 44 44 45 $template->assign(array('TEXT1_VALUE' => $conf_smiliessupport[0])); 46 $template->assign(array('TEXT2_VALUE' => $conf_smiliessupport[1])); 47 $template->assign(array('TEXT3_VALUE' => $conf_smiliessupport[2])); 45 $template->assign(array( 46 'TEXT1_VALUE' => $conf_smiliessupport[0], 47 'TEXT2_VALUE' => $conf_smiliessupport[1], 48 'TEXT3_VALUE' => $conf_smiliessupport[2], 49 )); 48 50 49 51 include_once(SMILIES_PATH . '/smiliessupport.inc.php'); … … 51 53 52 54 $smilies_file = PHPWG_ROOT_PATH.$conf_smiliessupport[0].'/smilies.txt'; 53 $content_file = null;54 55 55 56 if (file_exists($smilies_file)) { … … 58 59 } 59 60 60 $template->set_filename('smiliessupport_conf', dirname(__FILE__).'/smiliessupport_admin.tpl'); 61 $template->assign('SMILIES_PATH', SMILIES_PATH); 62 $template->set_filename('smiliessupport_conf', dirname(__FILE__).'/template/smiliessupport_admin.tpl'); 61 63 $template->assign_var_from_handle('ADMIN_CONTENT', 'smiliessupport_conf'); 62 64 -
extensions/SmiliesSupport/main.inc.php
r9764 r9789 32 32 array_push($menu, array( 33 33 'NAME' => 'Smilies Support', 34 34 'URL' => get_root_url().'admin.php?page=plugin-' . SMILIES_DIR)); 35 35 return $menu; 36 36 } -
extensions/SmiliesSupport/smiliessupport.inc.php
r9764 r9789 33 33 34 34 $cnt = 1; 35 $template->set_filename('smiliessupport_page', dirname(__FILE__).'/smiliessupport_page.tpl'); 35 $template->assign('SMILIES_PATH', SMILIES_PATH); 36 $template->set_filename('smiliessupport_page', dirname(__FILE__).'/template/smiliessupport_page.tpl'); 36 37 $template->assign(array('REPRESENTANT' => PHPWG_ROOT_PATH.$conf_smiliessupport[0].'/'.$conf_smiliessupport[2])); 37 38 -
extensions/SmiliesSupport/template/smiliessupport_admin.tpl
r9764 r9789 1 {combine_script id='jquery'}2 1 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} 3 2 {include file='include/autosize.inc.tpl'} 4 3 5 {footer_script }4 {footer_script require="jquery.cluetip"} 6 5 {literal} 7 6 jQuery().ready(function(){ -
extensions/SmiliesSupport/template/smiliessupport_page.tpl
r9728 r9789 1 1 {combine_script id="jquery"} 2 {combine_script id="smiliessupport" path=$ ROOT_URL|@cat:"plugins/SmiliesSupport/smiliessupport.js"}3 {combine_css path=$ ROOT_URL|@cat:"plugins/SmiliesSupport/smiliessupport_page.css"}2 {combine_script id="smiliessupport" path=$SMILIES_PATH|@cat:"template/smiliessupport.js"} 3 {combine_css path=$SMILIES_PATH|@cat:"template/smiliessupport_page.css"} 4 4 5 5 <div width="500pt">
Note: See TracChangeset
for help on using the changeset viewer.