当前位置: 首页>>代码示例>>PHP>>正文


PHP get_tmpl_files函数代码示例

本文整理汇总了PHP中get_tmpl_files函数的典型用法代码示例。如果您正苦于以下问题:PHP get_tmpl_files函数的具体用法?PHP get_tmpl_files怎么用?PHP get_tmpl_files使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_tmpl_files函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: feedimport_article_templates

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;
}
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:13,代码来源:functions.inc.php

示例2: get_tmpl_files

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 
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:cnt13.inc.php

示例3: get_tmpl_files

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 
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:cnt0.inc.php

示例4: foreach

    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";
    }
}
?>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:article.editsummary.tmpl.php

示例5: get_tmpl_files

    $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'];
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:cnt50.inc.php

示例6: foreach

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"]);
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:content.func.inc.php

示例7: get_tmpl_files

    $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>


开发者ID:EDVLanger,项目名称:phpwcms,代码行数:28,代码来源:cnt9.inc.php

示例8: get_tmpl_files

// ----------------------------------------------------------------
//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 
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:cnt11.inc.php

示例9: get_tmpl_files

	</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>
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:admin.templates.tmpl.php

示例10: get_tmpl_files

// ----------------------------------------------------------------
//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>
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:cnt4.inc.php

示例11: get_tmpl_files

// ----------------------------------------------------------------
//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>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:cnt3.inc.php

示例12: get_tmpl_files

}
?>
<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 
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:cnt25.inc.php

示例13: die

    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>
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:cnt14.inc.php

示例14: get_tmpl_files

    $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>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:cnt22.inc.php

示例15: get_tmpl_files

?>
<!-- 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 -->
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:30,代码来源:cnt.form.php


注:本文中的get_tmpl_files函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。