function feedimport_article_templates($tmpl = '') { $templates = array('default' => $GLOBALS['BL']['be_cnt_default']); if (!empty($tmpl)) { $tmplfiles = get_tmpl_files($tmpl); if (count($tmplfiles)) { foreach ($tmplfiles as $val) { $templates[$val] = $val; } } } return $templates; }
if (empty($content['search']['type'])) { $content['search']['type'] = 'OR'; } ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for search listing $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/search'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content["template"]) && $val == $content["template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist" valign="top"><?php
if (empty($content['ctext_format'])) { $content['ctext_format'] = 'plain'; } ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/plaintext'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content["template"]) && $val == $content["template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php
foreach ($tmpllist as $val) { $vals = ''; if ($val == $article['image']['tmpllist']) { $vals = ' selected="selected"'; } $val = htmlspecialchars($val); echo '<option value="' . $val . '"' . $vals . '>' . $val . "</option>\n"; } } ?> </select></td> <td> </td> <td><select name="article_tmplfull" id="article_tmplfull" class="width215"> <?php // templates for full article $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/articlesummary/article'); if ($article['image']['tmplfull'] == 'default') { $vals = ' selected="selected"'; } echo '<option value="default"' . $vals . '>' . $BL['be_cnt_default'] . "</option>\n"; if (count($tmpllist)) { foreach ($tmpllist as $val) { $vals = ''; if ($val == $article['image']['tmplfull']) { $vals = ' selected="selected"'; } $val = htmlspecialchars($val); echo '<option value="' . $val . '"' . $vals . '>' . $val . "</option>\n"; } } ?>
$content['reference']["listborder"] = ''; $content["reference"]["basis"] = 0; } $imgx = 0; $img_thumbs = ''; ?> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="creference_tmpl" id="creference_tmpl"> <?php // templates for Reference echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/reference'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $val = htmlspecialchars($val); echo '<option value="' . $val . '"' . ($val == $content["reference"]['tmpl'] ? ' selected="selected"' : '') . '>' . $val . "</option>\n"; } } ?> </select></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10"></td></tr> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="7"></td></tr> <tr> <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13"><?php echo $BL['be_cnt_plaintext'];
if (count($content['globalRT'])) { foreach ($content['globalRT'] as $key => $value) { if ($key != '') { $content["all"] = str_replace($key, $value, $content["all"]); } } } // add possible redirection code (article summary) to $block["htmlhead"]; $block["htmlhead"] = $content["redirect"]["code"] . render_PHPcode($block["htmlhead"]) . LF; if (!defined('PHPWCMS_ALIAS')) { define('PHPWCMS_ALIAS', empty($content['struct'][$content["cat_id"]]['acat_alias']) ? '' : $content['struct'][$content["cat_id"]]['acat_alias']); } // try to include custom functions and replacement tags or what you want to do at this point of the script // default dir: "phpwcms_template/inc_script/frontend_render"; only *.php files are allowed there if ($phpwcms["allow_ext_render"]) { if (count($custom_includes = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_script/frontend_render', 'php'))) { foreach ($custom_includes as $value) { include_once PHPWCMS_TEMPLATE . 'inc_script/frontend_render/' . $value; } } } if (count($phpwcms['modules_fe_render'])) { foreach ($phpwcms['modules_fe_render'] as $value) { include_once $value; } } // Final Render Device $content['all'] = render_device($content['all']); // And again check against possible {PHP needs to be rendered if (strpos($content['all'], 'PHP') !== false) { $content['all'] = render_PHPcode($content["all"]);
$content["image_caption"] = ''; } ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/multimedia'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content["template"]) && $val == $content["template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
// ---------------------------------------------------------------- //code ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/code'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content["template"]) && $val == $content["template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" valign="top" class="chatlist tdtop4"><?php
</tr> <tr bgcolor="#E6EAED"> <td align="right" class="chatlist" style="padding-left:2px"><?php echo $BL['be_settings']; ?> : </td> <td><select name="template_overwrite" id="template_overwrite"> <option value="" style="font-weight:normal;font-style:italic;"><?php echo $BL['be_admin_tmpl_default']; ?> </option> <?php // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_settings/template_default', 'php'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($template["overwrite"]) && $val == $template["overwrite"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr bgcolor="#E6EAED"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> <tr bgcolor="#F3F5F8"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
// ---------------------------------------------------------------- //bullet list table ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/bulletlist'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content["template"]) && $val == $content["template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr>
// ---------------------------------------------------------------- //link & email ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/linkemail'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content["template"]) && $val == $content["template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr>
} ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><table border="0" cellpadding="0" cellspacing="0" summary="" class="width440"> <tr> <td><select name="fmp_template" id="fmp_template" class="width150"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for Flash Media Player $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/flashplayer'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($fmp_data['fmp_template']) && $val == $fmp_data['fmp_template'] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> <td width="20%"> </td> <td><select name="fmp_width_height" id="fmp_width_height" onchange="setPlayerSize(this)"> <option><?php
die("You Cannot Access This Script Directly, Have a Nice Day."); } // ---------------------------------------------------------------- //WYSIWYG ?> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/wysiwyg'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content["template"]) && $val == $content["template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
$content["rssfeed"]['content_type'] = ''; } ?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="crss_template" id="crss_template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for RSS feed $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/rssfeed'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $vals = ''; if ($val == $content["rssfeed"]['template']) { $vals = ' selected="selected"'; } $val = htmlspecialchars($val); echo '<option value="' . $val . '"' . $vals . '>' . $val . "</option>\n"; } } ?> </select></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10"></td></tr> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="7"></td></tr>
?> <!-- top spacer - seperate from title/subtitle section --> <tr><td colspan="2" style="padding-bottom:8px"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> <!-- start custom fields here --> <!-- retrieve templates --> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="glossary_template" id="glossary_template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for forum $tmpllist = get_tmpl_files($phpwcms['modules'][$content["module"]]['path'] . 'template'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $vals = ''; if ($val == $content['glossary']['glossary_template']) { $vals = ' selected="selected"'; } $val = html($val); echo '<option value="' . $val . '"' . $vals . '>' . $val . "</option>\n"; } } ?> </select></td> </tr> <!-- end templates -->
if (!isset($content['felogin']['felogin_reminder_body'])) { $content['felogin']['felogin_reminder_body'] = ''; } if (!isset($content['felogin']['felogin_profile_manage_redirect'])) { $content['felogin']['felogin_profile_manage_redirect'] = ''; } ?> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="template" id="template"> <?php // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/felogin'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $selected_val = isset($content['felogin_template']) && $val == $content['felogin_template'] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> </tr> <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist tdtop3"><?php
?> <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><table border="0" cellpadding="0" cellspacing="0" summary=""> <tr> <td><select name="template" id="template" class="width150"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . '</option>' . LF; // templates for frontend login $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/images'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { // do not show listmode templates if (substr($val, 0, 5) == 'list.') { continue; } $selected_val = isset($content["image_template"]) && $val == $content["image_template"] ? ' selected="selected"' : ''; $val = html($val); echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; } } ?> </select></td> <td class="chatlist"> <?php
initMootools(); initMootoolsAutocompleter(); ?> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="calink_template" id="calink_template"> <?php echo '<option value="">' . $BL['be_admin_tmpl_default'] . ' <ul><li></option>' . LF; // templates for forum $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/teaser'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { // do not show listmode templates if (substr($val, 0, 5) == 'list.') { continue; } $vals = $val == $content['alink']['alink_template'] ? ' selected="selected"' : ''; $val = html($val); echo '<option value="' . $val . '"' . $vals . '>' . $val . "</option>\n"; } } ?> </select></td> </tr>
} // ---------------------------------------------------------------- //guestbook/comments ?> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> <tr> <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?> : </td> <td><select name="cguestbook_template" id="cguestbook_template"> <?php // templates for article listing $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/guestbook'); if (is_array($tmpllist) && count($tmpllist)) { foreach ($tmpllist as $val) { $vals = ''; if (isset($content["guestbook"]['template']) && $val == $content["guestbook"]['template']) { $vals = ' selected="selected"'; } $val = htmlspecialchars($val); echo '<option value="' . $val . '"' . $vals . '>' . $val . "</option>\n"; } } ?> </select></td> </tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> <tr>
</select></td> </tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10"></td></tr> <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4"></td></tr> <tr> <td valign="top" align="right" class="chatlist"><img src="img/leer.gif" width="1" height="14" alt=""><?php echo $BL['be_ctype_map']; ?> : </td> <td valign="top"><?php // select the map image $g = ''; $map_selected = 0; $map_name = ''; $imglist = get_tmpl_files(PHPWCMS_TEMPLATE . 'inc_cntpart/map/map_img', 'jpg,gif,png,jpeg'); if (is_array($imglist) && count($imglist)) { foreach ($imglist as $val) { $vals = ''; if ($val == $content["map"]['image']) { $vals = ' checked="checked"'; $map_selected = 1; $map_name = $content["map"]['image']; $map_info = getimagesize(PHPWCMS_TEMPLATE . 'inc_cntpart/map/map_img/' . $map_name); } $val = html($val); $g .= '<tr><td>'; $g .= '<input type="radio" name="cmap_image" value="' . $val . '"' . $vals . ' /> '; $g .= '</td><td class="f11b">' . $val . ' </td><td>'; $g .= '<a href="javascript:void(0);" onmouseover="this.T_WIDTH=150;this.T_DELAY=100;this.T_PADDING=6;this.T_BGCOLOR=\'#ffffff\';'; $gp = trim($phpwcms["templates"], '/') . '/inc_cntpart/map/map_img/' . $val;