Пример #1
0
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;
}
Пример #2
0
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'];
?>
:&nbsp;</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 
Пример #3
0
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'];
?>
:&nbsp;</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>&nbsp;</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";
    }
}
?>
Пример #5
0
    $content['reference']["listborder"] = '';
    $content["reference"]["basis"] = 0;
}
$imgx = 0;
$img_thumbs = '';
?>
<tr>
	<td align="right" class="chatlist"><?php 
echo $BL['be_admin_struct_template'];
?>
:&nbsp;</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'];
Пример #6
0
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"]);
Пример #7
0
    $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'];
?>
:&nbsp;</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>


Пример #8
0
// ----------------------------------------------------------------
//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'];
?>
:&nbsp;</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'];
    ?>
:&nbsp;</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>
Пример #10
0
// ----------------------------------------------------------------
//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'];
?>
:&nbsp;</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>
Пример #11
0
// ----------------------------------------------------------------
//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'];
?>
:&nbsp;</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>
Пример #12
0
}
?>
<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'];
?>
:&nbsp;</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%">&nbsp;</td>

			<td><select name="fmp_width_height" id="fmp_width_height" onchange="setPlayerSize(this)">

				<option><?php 
Пример #13
0
    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'];
?>
:&nbsp;</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>
Пример #14
0
    $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'];
?>
:&nbsp;</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>
Пример #15
0
?>
<!-- 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'];
?>
:&nbsp;</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 -->
Пример #16
0
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'];
?>
:&nbsp;</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 
Пример #17
0
?>

<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'];
?>
:&nbsp;</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">&nbsp;&nbsp;&nbsp;<?php 
Пример #18
0
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'];
?>
:&nbsp;</td>
	<td><select name="calink_template" id="calink_template">
<?php 
echo '<option value="">' . $BL['be_admin_tmpl_default'] . ' &lt;ul&gt;&lt;li&gt;</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>
Пример #19
0
}
// ----------------------------------------------------------------
//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'];
?>
:&nbsp;</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>
Пример #20
0
		</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'];
?>
:&nbsp;</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 . ' />&nbsp;';
        $g .= '</td><td class="f11b">' . $val . '&nbsp;&nbsp;</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;