- Timestamp:
- Dec 15, 2009, 4:52:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XPressMU/xpressme_integration_kit/blocks/enhanced_block.php
r232 r488 19 19 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 20 20 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_enhanced_block.html' : trim( $options[1] ); 21 $form .= _MB_XP2_THISTEMPLATE . "<input type='text' size='50' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 21 22 $include_file = empty( $options[2] ) ? '' : $options[2] ; 22 23 24 require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 23 25 24 26 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 25 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />";27 $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 26 28 $form .= "<br />"; 27 29 $form .= _MB_XP2_ENHACED_FILE .":<br />\n"; 28 $form .= ' ' . _MB_XP2_FILE_NAME . ": my_<input type='text' name='options[2]' value='" . $include_file . "' />_block.php<br>\n";30 $form .= ' ' . _MB_XP2_FILE_NAME . ": <b>my_</b><input type='text' name='options[2]' value='" . $include_file . "' /><b>_block.php</b><br>\n"; 29 31 $form .= ' ' . _MB_XP2_MAKE_ENHACED_FILE . "<br>\n"; 30 32 return $form;
Note: See TracChangeset
for help on using the changeset viewer.