Changeset 9787 for extensions
- Timestamp:
- Mar 20, 2011, 2:23:55 PM (14 years ago)
- Location:
- extensions/bbcode_bar
- Files:
-
- 1 added
- 2 edited
- 1 copied
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/bbcode_bar/admin.php
r9765 r9787 14 14 $conf_bbcode_bar[] = (isset($_POST['chkb'.sprintf("%02d", $i)])) ? $_POST['chkb'.sprintf("%02d", $i)] : 0; 15 15 } 16 $conf_bbcode_bar[] = (isset($_POST['text17'])) ? $_POST['text17']: 'plugins/bbcode_bar/icon';16 $conf_bbcode_bar[] = (isset($_POST['text17'])) ? rtrim($_POST['text17'],'/') : 'plugins/bbcode_bar/icon'; 17 17 18 18 // enregistrement … … 29 29 $template->assign('CHKB'.sprintf("%02d", $i).'_STATUS', ($conf_bbcode_bar[$i] == 1) ? 'checked="checked"' : null); 30 30 } 31 $template->assign( array('TEXT17_STATUS' => $conf_bbcode_bar[16]));31 $template->assign('TEXT17_STATUS', $conf_bbcode_bar[16]); 32 32 33 $template->set_filename('bbcode_bar_conf', dirname(__FILE__) . '/bbcode_bar_admin.tpl'); 33 $template->assign('BBCODE_PATH', BBcode_PATH); 34 $template->set_filename('bbcode_bar_conf', dirname(__FILE__) . '/template/bbcode_bar_admin.tpl'); 34 35 $template->assign_var_from_handle('ADMIN_CONTENT', 'bbcode_bar_conf'); 35 36 -
extensions/bbcode_bar/bbcode_bar.inc.php
r9765 r9787 7 7 load_language('plugin.lang', dirname(__FILE__) . '/'); 8 8 $conf_bbcode_bar = explode("," , $conf['bbcode_bar']); 9 $template->set_filename('bbcode_bar', dirname(__FILE__).'/bbcode_bar.tpl');10 9 11 10 // buttons … … 30 29 } 31 30 31 $template->assign('BBCODE_PATH', BBcode_PATH); 32 $template->set_filename('bbcode_bar', dirname(__FILE__).'/template/bbcode_bar.tpl'); 32 33 $lang['Comment'] .= $template->parse('bbcode_bar', true); 33 34 } -
extensions/bbcode_bar/template/bbcode_bar.tpl
r9682 r9787 1 {combine_script id="bbcodebar" path=$ ROOT_URL|@cat:"plugins/bbcode_bar/bbcode.js"}2 {combine_css path=$ ROOT_URL|@cat:"plugins/bbcode_bar/bbcode_bar.css"}1 {combine_script id="bbcodebar" path=$BBCODE_PATH|@cat:"template/bbcode.js"} 2 {combine_css path=$BBCODE_PATH|@cat:"template/bbcode_bar.css"} 3 3 4 4 <div id="outils" width="500pt"> -
extensions/bbcode_bar/template/bbcode_bar_admin.tpl
r9765 r9787 1 {combine_css path=$ ROOT_URL|@cat:"plugins/bbcode_bar/bbcode_bar.css"}1 {combine_css path=$BBCODE_PATH|@cat:"template/bbcode_bar.css"} 2 2 3 3 <div class="titrePage"> … … 11 11 <li> 12 12 <span class="property">{'p_help'|@translate}</span> 13 <input type="checkbox" name="chkb00" {$CHKB00_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/p.png" border="0"> <img src="plugins/bbcode_bar/icon/p1.png" border="0">13 <input type="checkbox" name="chkb00" {$CHKB00_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/p.png" border="0"> <img src="{$TEXT17_STATUS}/p1.png" border="0"> 14 14 </li> 15 15 <li> 16 16 <span class="property">{'b_help'|@translate}</span> 17 <input type="checkbox" name="chkb01" {$CHKB01_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/b.png" border="0"> <img src="plugins/bbcode_bar/icon/b1.png" border="0">17 <input type="checkbox" name="chkb01" {$CHKB01_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/b.png" border="0"> <img src="{$TEXT17_STATUS}/b1.png" border="0"> 18 18 </li> 19 19 <li> 20 20 <span class="property">{'i_help'|@translate}</span> 21 <input type="checkbox" name="chkb02" {$CHKB02_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/i.png" border="0"> <img src="plugins/bbcode_bar/icon/i1.png" border="0">21 <input type="checkbox" name="chkb02" {$CHKB02_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/i.png" border="0"> <img src="{$TEXT17_STATUS}/i1.png" border="0"> 22 22 </li> 23 23 <li> 24 24 <span class="property">{'u_help'|@translate}</span> 25 <input type="checkbox" name="chkb03" {$CHKB03_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/u.png" border="0"> <img src="plugins/bbcode_bar/icon/u1.png" border="0">25 <input type="checkbox" name="chkb03" {$CHKB03_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/u.png" border="0"> <img src="{$TEXT17_STATUS}/u1.png" border="0"> 26 26 </li> 27 27 <li> 28 28 <span class="property">{'s_help'|@translate}</span> 29 <input type="checkbox" name="chkb04" {$CHKB04_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/s.png" border="0"> <img src="plugins/bbcode_bar/icon/s1.png" border="0">29 <input type="checkbox" name="chkb04" {$CHKB04_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/s.png" border="0"> <img src="{$TEXT17_STATUS}/s1.png" border="0"> 30 30 </li> 31 31 <li> 32 32 <span class="property">{'center_help'|@translate}</span> 33 <input type="checkbox" name="chkb05" {$CHKB05_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/center.png" border="0"> <img src="plugins/bbcode_bar/icon/center1.png" border="0">33 <input type="checkbox" name="chkb05" {$CHKB05_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/center.png" border="0"> <img src="{$TEXT17_STATUS}/center1.png" border="0"> 34 34 </li> 35 35 <li> 36 36 <span class="property">{'right_help'|@translate}</span> 37 <input type="checkbox" name="chkb06" {$CHKB06_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/right.png" border="0"> <img src="plugins/bbcode_bar/icon/right1.png" border="0">37 <input type="checkbox" name="chkb06" {$CHKB06_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/right.png" border="0"> <img src="{$TEXT17_STATUS}/right1.png" border="0"> 38 38 </li> 39 39 <li> 40 40 <span class="property">{'ul_help'|@translate}</span> 41 <input type="checkbox" name="chkb07" {$CHKB07_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/ul.png" border="0"> <img src="plugins/bbcode_bar/icon/ul1.png" border="0">41 <input type="checkbox" name="chkb07" {$CHKB07_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/ul.png" border="0"> <img src="{$TEXT17_STATUS}/ul1.png" border="0"> 42 42 </li> 43 43 <li> 44 44 <span class="property">{'ol_help'|@translate}</span> 45 <input type="checkbox" name="chkb08" {$CHKB08_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/ol.png" border="0"> <img src="plugins/bbcode_bar/icon/ol1.png" border="0">45 <input type="checkbox" name="chkb08" {$CHKB08_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/ol.png" border="0"> <img src="{$TEXT17_STATUS}/ol1.png" border="0"> 46 46 </li> 47 47 <li> 48 48 <span class="property">{'quote_help'|@translate}</span> 49 <input type="checkbox" name="chkb09" {$CHKB09_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/quote.png" border="0"> <img src="plugins/bbcode_bar/icon/quote1.png" border="0">49 <input type="checkbox" name="chkb09" {$CHKB09_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/quote.png" border="0"> <img src="{$TEXT17_STATUS}/quote1.png" border="0"> 50 50 </li> 51 51 <li> 52 52 <span class="property">{'img_help'|@translate}</span> 53 <input type="checkbox" name="chkb10" {$CHKB10_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/image.png" border="0"> <img src="plugins/bbcode_bar/icon/image1.png" border="0">53 <input type="checkbox" name="chkb10" {$CHKB10_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/image.png" border="0"> <img src="{$TEXT17_STATUS}/image1.png" border="0"> 54 54 </li> 55 55 <li> 56 56 <span class="property">{'url_help'|@translate}</span> 57 <input type="checkbox" name="chkb11" {$CHKB11_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/link.png" border="0"> <img src="plugins/bbcode_bar/icon/link1.png" border="0">57 <input type="checkbox" name="chkb11" {$CHKB11_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/link.png" border="0"> <img src="{$TEXT17_STATUS}/link1.png" border="0"> 58 58 </li> 59 59 <li> 60 60 <span class="property">{'mail_help'|@translate}</span> 61 <input type="checkbox" name="chkb12" {$CHKB12_STATUS} value="1" /> <img src=" plugins/bbcode_bar/icon/mail.png" border="0"> <img src="plugins/bbcode_bar/icon/mail1.png" border="0">61 <input type="checkbox" name="chkb12" {$CHKB12_STATUS} value="1" /> <img src="{$TEXT17_STATUS}/mail.png" border="0"> <img src="{$TEXT17_STATUS}/mail1.png" border="0"> 62 62 </li> 63 63 <li>
Note: See TracChangeset
for help on using the changeset viewer.