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


PHP tpl_function_block函数代码示例

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


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

示例1: tpl_function_block

        ?>
 <?php 
        echo $this->_vars['item']['sname'];
        ?>
</td>
	<td><?php 
        echo $this->_vars['item']['email'];
        ?>
</td>
	<td class="center"><?php 
        echo $this->_run_modifier($this->_vars['item']['date_deleted'], 'date_format', 'plugin', 1, $this->_vars['page_data']['date_format']);
        ?>
</td>
	<td class="icons">
		<?php 
        echo tpl_function_block(array('name' => 'delete_select_block', 'module' => 'users', 'id_user' => $this->_vars['item']['id_user'], 'callback_user' => $this->_vars['item']['data'], 'deleted' => 1), $this);
        ?>
	</td>
</tr>
<?php 
    }
} else {
    ?>
<tr><td colspan="7" class="center"><?php 
    echo l('no_users', 'users', '', 'text', array());
    ?>
</td></tr>
<?php 
}
?>
</table>
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_5c33d6ec3ab2fef129dfc4111235dc96.php

示例2: tpl_function_helper

	<div class="right-side">
		<?php 
echo tpl_function_helper(array('func_name' => 'admin_home_payments_block', 'module' => 'payments'), $this);
?>
		<?php 
echo tpl_function_helper(array('func_name' => 'admin_home_polls_block', 'module' => 'polls'), $this);
?>
	</div>

	<div class="left-side">
		<?php 
echo tpl_function_helper(array('func_name' => 'admin_home_users_block', 'module' => 'users'), $this);
?>
		<?php 
echo tpl_function_helper(array('func_name' => 'admin_home_stat', 'module' => 'users', 'cache' => 'true'), $this);
?>
		<?php 
echo tpl_function_helper(array('func_name' => 'admin_home_banners_block', 'module' => 'banners'), $this);
?>
		<?php 
echo tpl_function_helper(array('func_name' => 'admin_home_spam_block', 'module' => 'spam'), $this);
?>
	</div>
</div>
<div class="clr"></div>
<?php 
echo tpl_function_block(array('name' => 'ad', 'module' => 'start'), $this);
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "footer.tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_31eeab8f7a91976df71ec5e11e2d6dd4.php

示例3: tpl_function_block

?>
			<?php 
echo tpl_function_block(array('name' => 'admin_new_messages', 'module' => 'tickets', 'template' => 'header', 'is_admin' => '1'), $this);
?>
			
			<?php 
echo tpl_function_block(array('name' => 'friend_requests', 'module' => 'friendlist', 'template' => 'header'), $this);
?>
			<?php 
echo tpl_function_block(array('name' => 'winks_count', 'module' => 'winks', 'template' => 'header'), $this);
?>
			<?php 
echo tpl_function_block(array('name' => 'visitors', 'module' => 'users', 'template' => 'header'), $this);
?>
			<?php 
echo tpl_function_block(array('name' => 'new_kisses', 'module' => 'kisses', 'template' => 'header'), $this);
?>
			<li class="no-notifications hide-always"><?php 
echo l('no_notifications', 'users', '', 'text', array());
?>
</li>
		</menu>
	</div>
</menu>
<script type='text/javascript'><?php 
echo '
	$(function(){
		loadScripts(
			["';
echo tpl_function_js(array('file' => 'top-menu.js', 'module' => 'users', 'return' => 'path'), $this);
echo '"],
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_5139a5ecc9ac8df785332c7fd55054c5.php

示例4: ob_get_contents

					</div>
				</form>
			</li>
		<?php 
    }
}
?>
	</ul>
</div>
<?php 
$this->_block_content = ob_get_contents();
ob_end_clean();
$this->_block_content = tpl_block_strip($this->_tag_stack[count($this->_tag_stack) - 1][1], $this->_block_content, $this);
echo $this->_block_content;
array_pop($this->_tag_stack);
echo tpl_function_block(array('name' => 'lang_inline_editor', 'module' => 'start', 'multiple' => '1'), $this);
?>
<script >
	var save_url = '<?php 
echo $this->_vars['site_root'];
?>
admin/dynamic_blocks/ajax_save_area_block/';
<?php 
echo '
	cke_params = {';
?>

		language: '<?php 
echo $this->_vars['editor_params']['language'];
?>
',
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_8f2a4ec163948522e40c0a2678d69aa6.php

示例5: tpl_function_block

</span></span>
							<span class="mr10"><?php 
        echo tpl_function_block(array('name' => 'like_block', 'module' => 'likes', 'gid' => 'media' . $this->_vars['item']['id'], 'type' => button, 'btn_class' => "edge w"), $this);
        ?>
</span>
							<?php 
        if ($this->_vars['item']['is_adult']) {
            ?>
<i class="fa-female edge w">&nbsp;</i><span>18+</span><?php 
        }
        ?>
							<?php 
        if (!$this->_vars['item']['is_owner']) {
            ?>
<span style="float:right"><?php 
            echo tpl_function_block(array('name' => 'mark_as_spam_block', 'module' => 'spam', 'object_id' => $this->_vars['item']['id'], 'type_gid' => 'media_object', 'template' => 'whitebutton'), $this);
            ?>
</span><?php 
        }
        ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php 
    }
} else {
    ?>
	<div class="fixmargin"><?php 
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_b02c4e21619a7451432b983638190799.php

示例6: array

$this->register_function("block", "tpl_function_block");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\block.capture.php';
$this->register_block("capture", "tpl_block_capture");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-11-05 07:30:16 Pacific Standard Time */
?>

<?php 
if ($this->_vars['policy_page_gid']) {
    ?>
	<?php 
    $this->_tag_stack[] = array('tpl_block_capture', array('assign' => 'cookie_policy_link'));
    tpl_block_capture(array('assign' => 'cookie_policy_link'), null, $this);
    ob_start();
    ?>
		<?php 
    echo tpl_function_block(array('name' => 'get_page_link', 'module' => 'content', 'page_gid' => $this->_vars['policy_page_gid']), $this);
    ?>
	<?php 
    $this->_block_content = ob_get_contents();
    ob_end_clean();
    $this->_block_content = tpl_block_capture($this->_tag_stack[count($this->_tag_stack) - 1][1], $this->_block_content, $this);
    echo $this->_block_content;
    array_pop($this->_tag_stack);
}
?>
<div class="mod-cookie-policy noPrint" id="cookie_policy_block">
	<div class="content">
		<ins id="cookie_policy_close" class="fright icon-remove icon-2x"></ins>
		<?php 
echo l('text_cookie_policy', 'cookie_policy', '', 'text', array('link' => $this->_vars['cookie_policy_link']));
?>
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_4846e4c6f60a782d5e878f5a39fcf307.php

示例7: l

    echo l('field_marker_icon_delete', 'geomap', '', 'text', array());
    ?>
</label><br>
				<?php 
}
?>
			</div>
		</div>
		<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->module_path . geomap . $this->module_templates . $this->get_current_theme_gid('', 'geomap') . "edit_settings_" . $this->_vars['gid'] . ".tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
?>
		<div class="row"><?php 
echo tpl_function_block(array('name' => show_map, 'module' => geomap, 'map_gid' => $this->_vars['gid'], 'gid' => $this->_vars['map_gid'], 'markers' => $this->_vars['markers'], 'settings' => $this->_vars['view_settings'], 'map_id' => map, 'width' => '738', 'height' => '300'), $this);
?>
</div>
	</div>
	<div class="btn"><div class="l"><input type="submit" name="btn_save" value="<?php 
echo l('btn_save', 'start', '', 'button', array());
?>
"></div></div>
	<a class="cancel" href="<?php 
echo $this->_vars['site_url'];
?>
admin/geomap"><?php 
echo l('btn_cancel', 'start', '', 'text', array());
?>
</a>
</form>
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_f4d017cbd237e30e89dc41d75b5caf17.php

示例8: l

        if ($this->_vars['message']['recipient']['output_name'] != $this->_vars['message']['recipient']['nickname']) {
            ?>
(<?php 
            echo $this->_run_modifier($this->_vars['message']['recipient']['nickname'], 'strip_tags', 'PHP', 1);
            ?>
)<?php 
        }
    }
    ?>
" class="long" placeholder="<?php 
    echo l('input_default', 'start', '', 'button', array());
    ?>
">&nbsp;
					
					<?php 
    echo tpl_function_block(array('name' => 'friend_input', 'module' => 'friendlist', 'id_user' => $this->_vars['id_to_user'], 'var_user' => 'id_to_user', 'values_callback' => $this->_vars['user_callback']), $this);
    ?>
					<input type="hidden" name="id_to_user" id="user_hidden" value="<?php 
    echo $this->_run_modifier($this->_vars['id_to_user'], 'escape', 'plugin', 1);
    ?>
">
					<script><?php 
    echo '
						$(function(){
							loadScripts(
								"';
    echo tpl_function_js(array('file' => 'autocomplete_input.js', 'return' => 'path'), $this);
    echo '",
								function(){
									user_autocomplete = new autocompleteInput({
										siteUrl: \'';
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_ca0a0ee06ee3eba0247641e9bc631aac.php

示例9: array

<?php

require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.js.php';
$this->register_function("js", "tpl_function_js");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.block.php';
$this->register_function("block", "tpl_function_block");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\block.strip.php';
$this->register_block("strip", "tpl_block_strip");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-25 02:01:51 Pacific Daylight Time */
?>

<?php 
$this->_tag_stack[] = array('tpl_block_strip', array());
tpl_block_strip(array(), null, $this);
ob_start();
echo tpl_function_block(array('name' => 'users_carousel', 'module' => 'users', 'users' => $this->_vars['helper_featured_users_data']['users'], 'scroll' => 'auto', 'class' => 'small', 'thumb_name' => 'middle'), $this);
if ($this->_vars['helper_featured_users_data']['buy_ability']) {
    ?>
	<script><?php 
    echo '
		$(function(){
			loadScripts(				 
				["';
    echo tpl_function_js(array('file' => 'available_view.js', 'return' => 'path'), $this);
    echo '","';
    echo tpl_function_js(array('file' => 'users-avatar.js', 'module' => 'users', 'return' => 'path'), $this);
    echo '"],
				function(){
					users_featured_available_view = new available_view({
						siteUrl: site_url,
						checkAvailableAjaxUrl: \'users/ajax_available_users_featured/\',
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_f2e8adb6b2d9981bd099318c3ac4b2bf.php

示例10: l

?>
admin/ausers/edit"><?php 
echo l('link_add_user', 'ausers', '', 'text', array());
?>
</a></div></li>
		<?php 
echo tpl_function_block(array('name' => 'add_moderator', 'module' => 'moderators'), $this);
?>
	</ul>
	&nbsp;
</div>

<div class="menu-level3">
	<ul>
		<?php 
echo tpl_function_block(array('name' => 'count_ausers', 'module' => 'moderators'), $this);
?>
		<li class="<?php 
if ($this->_vars['filter'] == 'admin') {
    ?>
active<?php 
}
if (!$this->_vars['filter_data']['admin']) {
    ?>
 hide<?php 
}
?>
"><a href="<?php 
echo $this->_vars['site_url'];
?>
admin/ausers/index/admin"><?php 
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_99b0489d3c2a14be3c343490105902be.php

示例11: tpl_function_selectbox

    background-image: linear-gradient(#fff, #d4e8ec);
    border-width: 1px;
    border-style: solid;
    border-color: #c4d9df #a4c3ca #83afb7;            
    padding: 10px;
	*/
		">
			<div style="display: inline-block; width: 222px; position: relative; top: 10px; "><!--border: 0.1em solid #1e90ff;-->
				<?php 
echo tpl_function_selectbox(array('input' => 'user_type', 'id' => 'looking_user_type', 'value' => $this->_vars['user_types']['option'], 'default' => $this->_vars['all_select_lang']), $this);
?>
			</div>
			<input type="text" name="search" placeholder="<?php 
echo l('search_people', 'start', '', 'text', array());
?>
" style="display: inline-block; width: 222px; height: 25px; padding: 3px 8px; "/>
			<div style="display: inline-block; width: 400px;">
				<?php 
echo tpl_function_block(array('name' => 'location_select', 'module' => 'countries', 'select_type' => 'city', 'placeholder' => $this->_vars['location_lang'], 'id_country' => $this->_vars['data']['id_country'], 'id_region' => $this->_vars['data']['id_region'], 'id_city' => $this->_vars['data']['id_city']), $this);
?>
			</div>
			<input type="submit" value="Search" id="main_search_button_<?php 
echo $this->_vars['form_settings']['form_id'];
?>
" name="search_button" style="display: inline-block;">
		</div>

			


开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:26,代码来源:c_9418dd0b25b3728de1bc6caf87b7e97c.php

示例12: l

/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-31 23:09:08 Pacific Daylight Time */
?>

<menu class="header-item" label="<?php 
echo l('on_account_header', 'users_payments', '', 'text', array());
?>
">
	<a href="<?php 
echo tpl_function_seolink(array('module' => 'users', 'method' => 'account', 'action' => 'update'), $this);
?>
">
		<?php 
if ($this->_vars['user_account']) {
    ?>
			<?php 
    echo tpl_function_block(array('name' => 'currency_format_output', 'module' => 'start', 'value' => $this->_vars['user_account'], 'cur_gid' => $this->_vars['base_currency']['gid']), $this);
    ?>
&nbsp;
		<?php 
}
?>
		<i class="fa-credit-card"></i>&nbsp;
		<i class="fa-caret-down"></i>
	</a>
	<div class="drop w300">
					<span><?php 
echo l('services', 'users_payments', '', 'text', array());
?>
</span> 
			(<a class="extra" href="<?php 
echo tpl_function_seolink(array('module' => 'users', 'method' => 'account'), $this);
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_cdd076e6e5843c1db8404934ee8bbafc.php

示例13: unset

unset($_templatelite_tpl_vars);
?>
<div class="content-block content">
    <div class="content-value fltl w650">
		<div class="view-user"><?php 
echo tpl_function_block(array('name' => 'wall_block', 'module' => 'wall_events', 'place' => 'homepage', 'id_wall' => $this->_vars['user_id']), $this);
?>
</div>
    </div>
    <div class="fltr active_block">
		<?php 
echo tpl_function_block(array('name' => 'shoutbox_form', 'module' => 'shoutbox'), $this);
?>
        <div id="active_users"><?php 
echo tpl_function_block(array('name' => 'active_users_block', 'module' => 'users', 'count' => 16), $this);
?>
</div>
        <div id="recent_photo"><?php 
echo tpl_function_block(array('name' => 'recent_media_block', 'module' => 'media', 'upload_gid' => 'photo', 'count' => 16), $this);
?>
</div>
    </div>
</div>
<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "footer.tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
?>

开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:29,代码来源:c_2f777e716e470cc97eea54fbde080eae.php

示例14: tpl_function_block

        $this->assign('thumb_name', 'big');
        break;
}
?>
<h2 class="text-overflow" title="<?php 
echo $this->_run_modifier($this->_vars['dynamic_block_users_title'], 'escape', 'plugin', 1);
?>
"><?php 
echo $this->_vars['dynamic_block_users_title'];
?>
</h2>
<?php 
if ($this->_vars['dynamic_block_users_view'] == 'carousel' || $this->_vars['dynamic_block_users_view'] == 'carousel_w_descr') {
    ?>
	<?php 
    echo tpl_function_block(array('name' => 'users_carousel', 'module' => 'users', 'users' => $this->_vars['dynamic_block_users'], 'scroll' => auto, 'class' => $this->_vars['block_class'], 'thumb_name' => $this->_vars['thumb_name']), $this);
} else {
    ?>
	<div class="user-gallery <?php 
    echo $this->_vars['block_class'];
    ?>
">
		<?php 
    if (is_array($this->_vars['dynamic_block_users']) and count((array) $this->_vars['dynamic_block_users'])) {
        foreach ((array) $this->_vars['dynamic_block_users'] as $this->_vars['item']) {
            ?>
			<div class="item">
				<div class="user">
					<div class="photo">
						<?php 
            $this->assign('text_user_logo', l('text_user_logo', 'users', '', 'button', array_merge(array(), $this->_vars['item'])));
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_b681bf8dfc80d1d87aa786795429ac53.php

示例15: tpl_function_block

                ?>
			<b><?php 
                echo $this->_vars['param']['name'];
                ?>
:</b> <?php 
                echo $this->_vars['param']['value'];
                ?>
<br>
			<?php 
            }
        }
        ?>
		</div></span>
	</td>
	<td class="center"><?php 
        echo tpl_function_block(array('name' => 'currency_format_output', 'module' => 'start', 'value' => $this->_vars['item']['amount']), $this);
        ?>
</td>
	<td class="center"><?php 
        echo $this->_vars['item']['payment_type_gid'];
        ?>
</td>
	<td class="center"><?php 
        echo $this->_vars['item']['system_gid'];
        ?>
</td>
	<td class="center"><?php 
        echo $this->_run_modifier($this->_vars['item']['date_add'], 'date_format', 'plugin', 1, $this->_vars['page_data']['date_format']);
        ?>
</td>
	<td class="icons">
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_d2fbe046b358c4384f29ce1f30ded504.php


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