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


PHP Theme::Get方法代码示例

本文整理汇总了PHP中Theme::Get方法的典型用法代码示例。如果您正苦于以下问题:PHP Theme::Get方法的具体用法?PHP Theme::Get怎么用?PHP Theme::Get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Theme的用法示例。


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

示例1: displayPage

 /**
  * Displays the page logic
  */
 function displayPage()
 {
     $db =& $this->db;
     // Default options
     if (Kit::IsFilterPinned('content', 'Filter')) {
         Theme::Set('filter_pinned', 'checked');
         Theme::Set('filter_name', Session::Get('content', 'filter_name'));
         Theme::Set('filter_type', Session::Get('content', 'filter_type'));
         Theme::Set('filter_retired', Session::Get('content', 'filter_retired'));
         Theme::Set('filter_owner', Session::Get('content', 'filter_owner'));
         Theme::Set('filter_duration_in_seconds', Session::Get('content', 'filter_duration_in_seconds'));
         Theme::Set('filter_duration_in_seconds_checked', Theme::Get('filter_duration_in_seconds') == 1 ? 'checked' : '');
     } else {
         Theme::Set('filter_retired', 0);
         Theme::Set('filter_duration_in_seconds', 0);
     }
     Theme::Set('library_form_add_url', 'index.php?p=content&q=displayForms');
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     Theme::Set('form_meta', '<input type="hidden" name="p" value="content"><input type="hidden" name="q" value="LibraryGrid">');
     // Field list for a "retired" dropdown list
     Theme::Set('retired_field_list', array(array('retiredid' => 1, 'retired' => 'Yes'), array('retiredid' => 0, 'retired' => 'No')));
     // Field list for a "owner" dropdown list
     Theme::Set('owner_field_list', $db->GetArray("SELECT 0 AS UserID, 'All' AS UserName UNION SELECT DISTINCT user.UserID, user.UserName FROM `media` INNER JOIN `user` ON media.UserID = user.UserID "));
     // Module types filter
     $types = $db->GetArray("SELECT Module AS moduleid, Name AS module FROM `module` WHERE RegionSpecific = 0 AND Enabled = 1 ORDER BY 2");
     array_unshift($types, array('moduleid' => '', 'module' => 'All'));
     Theme::Set('module_field_list', $types);
     // Call to render the template
     Theme::Render('library_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:36,代码来源:content.class.php

示例2:

?>
"><?php 
echo Theme::Translate('Latitude');
?>
</label>
                    <div class="controls">
                        <input class="" name="latitude" type="text" id="latitude" tabindex="1" value="<?php 
echo Theme::Get('latitude');
?>
" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="longitude" accesskey="n" title="<?php 
echo Theme::Translate('The Longitude of this Display');
?>
"><?php 
echo Theme::Translate('Longitude');
?>
</label>
                    <div class="controls">
                        <input class="" name="longitude" type="text" id="longitude" tabindex="1" value="<?php 
echo Theme::Get('longitude');
?>
" />
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:display_form_edit.php

示例3: defined

 * 	form_meta = Additional META information required by Xibo in the form submit call
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<form id="<?php 
echo Theme::Get('form_id');
?>
" class="XiboForm" method="post" action="<?php 
echo Theme::Get('form_action');
?>
">
	<?php 
echo Theme::Get('form_meta');
?>
	<table>
		<tr>
			<td><label for="defaultlayoutid" accesskey="n" title="<?php 
echo Theme::Translate('Default Layout');
?>
"><?php 
echo Theme::Translate('Default Layout');
?>
</label></td>
			<td><?php 
echo Theme::SelectList('defaultlayoutid', Theme::Get('layout_field_list'), 'layoutid', 'layout', Theme::Get('defaultlayoutid'));
?>
</td>
		</tr>
	</table>
</form>
开发者ID:abbeet,项目名称:server39,代码行数:30,代码来源:display_form_default_layout.php

示例4: foreach

?>
<table id="LayoutAssignTable" class="table table-bordered">
	<?php 
echo Theme::Get('form_meta');
?>
	<thead>
		<tr>
			<th><?php 
echo Theme::Translate('Name');
?>
</th>
		</tr>
	</thead>
	<tbody>
		<?php 
foreach (Theme::Get('table_rows') as $row) {
    ?>
		<tr rowid="<?php 
    echo $row['list_id'];
    ?>
" litext="<?php 
    echo $row['layout'];
    ?>
">
			<td><?php 
    echo $row['layout'];
    ?>
</td>
			<td><span class="layout_assign_list_select icon-plus-sign"></span>
		</tr>
		<?php 
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:campaign_form_layout_assign_list.php

示例5: __

<h1><?php 
echo __('There has been an application error.');
?>
</h1>
<p><?php 
echo Theme::Get('ErrorMessage');
?>
</p>
开发者ID:taphier,项目名称:xibo-cms,代码行数:8,代码来源:error.php

示例6: foreach

        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input class="checkbox" name="ignorefirstrow" type="checkbox" id="ignorefirstrow" tabindex="2" checked />
    		<label class="checkbox" for="ignorefirstrow" accesskey="n" title="<?php 
echo Theme::Translate('Ignore the first row? Useful if the CSV has headings.');
?>
"><?php 
echo Theme::Translate('Ignore first row?');
?>
</label>
        </div>
    </div>
    <?php 
foreach (Theme::Get('fields') as $field) {
    ?>
	    <div class="control-group">
	    	<label class="control-label" for="<?php 
    echo $field['formfieldid'];
    ?>
" title="<?php 
    echo $field['heading'];
    ?>
"><?php 
    echo $field['heading'];
    ?>
</label>
	        <div class="controls">
	            <input class="" name="<?php 
    echo $field['formfieldid'];
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:dataset_form_csv_import.php

示例7: defined

 * Xibo - Digital Signage - http://www.xibo.org.uk
 * Copyright (C) 2006-2013 Daniel Garner
 *
 * This file is part of Xibo.
 *
 * Xibo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version. 
 *
 * Xibo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Theme variables:
 * 	text = The License text (from theme file about_text)
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="row">
	<div class="col-md-12">
		<?php 
echo Theme::Get('text');
?>
	</div>
</div>
开发者ID:fignew,项目名称:xibo-cms,代码行数:30,代码来源:about_page.php

示例8: if

            {% if (file.error) { %}
                <div><span class="label label-important"><?php 
echo Theme::Translate('Error');
?>
</span> {%=file.error%}</div>
            {% } %}
        </td>
        <td>
            <span class="size">{%=o.formatFileSize(file.size)%}</span>
        </td>
        <td>
			<?php 
if (Theme::Get('background_override_url') != '') {
    ?>
            	<button class="btn XiboFormButton" href="#" onclick="XiboSwapDialog('<?php 
    echo Theme::Get('background_override_url');
    ?>
{%=file.storedas%}')">
                    <i class="icon-ban-circle icon-white"></i>
                    <span><?php 
    echo Theme::Translate('Set Background');
    ?>
</span>
                </button>
        	<?php 
}
?>
        </td>
    </tr>
{% } %}
</script>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:library_form_media_add.php

示例9: foreach

echo Theme::Translate('Type');
?>
</th>   
            <th><?php 
echo Theme::Translate('Version');
?>
</th>  
            <th><?php 
echo Theme::Translate('Version Code');
?>
</th> 
        </tr>
    </thead>
    <tbody>
        <?php 
foreach (Theme::Get('displays') as $row) {
    ?>
        <tr>
            <td><?php 
    echo $row['display'];
    ?>
</td>
            <td><?php 
    echo $row['client_type'];
    ?>
</td>
            <td><?php 
    echo $row['client_version'];
    ?>
</td>
            <td><?php 
开发者ID:fignew,项目名称:xibo-cms,代码行数:31,代码来源:display_form_version_instructions.php

示例10: defined

 * 	
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<form id="<?php 
echo Theme::Get('form_id');
?>
" class="XiboForm" method="post" action="<?php 
echo Theme::Get('form_action');
?>
">
	<?php 
echo Theme::Get('form_meta');
?>
	<table>
        <tr>
        	<td><label for="homepage" title="<?php 
echo Theme::Translate('The users Homepage. This should not be changed until you want to reset their homepage.');
?>
"><?php 
echo Theme::Translate('Homepage');
?>
</label></td>
        	<td><?php 
echo Theme::SelectList('homepage', Theme::Get('homepage_field_list'), 'homepageid', 'homepage', Theme::Get('homepage'));
?>
</td>
   		</tr>
    </table>
</form>
开发者ID:abbeet,项目名称:server39,代码行数:30,代码来源:user_form_set_homepage.php

示例11: defined

 * 	layout_form_add_url = The URL for calling the Layout Add Form
 * 	id = The GridID for rendering AJAX layout table return
 * 	filter_id = The Filter Form ID
 * 	form_meta = Extra form meta that needs to be sent to the CMS to return the list of layouts
 * 	pager = A paging control for this Xibo Grid
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div id="LayoutAssign" class="well">
	<div>
    	<ul id="LayoutAssignSortable">
    		<?php 
echo Kit::Token('assign_token');
?>
    		<?php 
foreach (Theme::Get('layouts_assigned') as $row) {
    ?>
    		<li id="LayoutID_<?php 
    echo $row->layoutId;
    ?>
" class="btn btn-sm btn-default"><?php 
    echo $row->layout;
    ?>
 <span class="glyphicon glyphicon-minus-sign"></span></li>
			<?php 
}
?>
    	</ul>
    </div>
</div>
开发者ID:fignew,项目名称:xibo-cms,代码行数:30,代码来源:campaign_form_layout_assign.php

示例12: defined

 * Xibo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Theme variables:
 * 	version
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<h2>License <small>Digital Signage for Everyone</small></h2>
<p>Xibo Digital Signage - <a target="_blank"  href="http://www.xibo.org.uk" title="Xibo Website">www.xibo.org.uk</a>. Version <?php 
echo Theme::Get('version');
?>
<br />
Copyright &copy 2006-2014 Daniel Garner, Alex Harrington, Spring Signage Ltd and 
the <a target="_blank"  href="https://launchpad.net/~xibo-developers/+members" title="Xibo Developers">Xibo Developers</a>.</p>
 
<p>Xibo is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version. </p>
 
<p>Xibo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.</p>
 
开发者ID:fignew,项目名称:xibo-cms,代码行数:30,代码来源:about_text.php

示例13:

?>
 />
		</div>
	</div>
	<?php 
if (Theme::Get('is_assignable')) {
    ?>
	<div class="control-group">
		<div class="controls">
			<label class="checkbox" for="replaceInLayouts" accesskey="n"><?php 
    echo Theme::Translate('Update this media in all layouts it is assigned to. Note: It will only be replaced in layouts you have permission to edit.');
    ?>
				<input type="checkbox" id="replaceInLayouts" name="replaceInLayouts" <?php 
    echo Theme::Get('is_replace_field_checked');
    ?>
 />
			</label>
		</div>
	</div>
	<?php 
}
?>
	<div class="well">
		<?php 
echo Theme::Get('valid_extensions');
?>
	</div>
</form>
<div style="display:none">
	<iframe name="fileupload" width="1px" height="1px"></iframe>
</div>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:library_form_media_edit.php

示例14:

		<li><p><?php 
echo Theme::Translate('Recreate the Problem in a new window.');
?>
</p>
		</li>

		<li><p><?php 
echo Theme::Translate('Automatically collect and export relevant information into a text file.');
?>
 <?php 
echo Theme::Translate('Please save this file to your PC.');
?>
</p>
		<a class="btn btn-default" href="<?php 
echo Theme::Get('collect_data_url');
?>
" title="Collect Data"><?php 
echo Theme::Translate('Collect and Save Data');
?>
</a>
		</li>

		<li><p><?php 
echo Theme::Translate('Turn full auditing and debugging OFF.');
?>
</p>
			<form id="2" class="XiboAutoForm" action="index.php?p=admin" method="post">
				<input type="hidden" name="q" value="SetMinDebug" />
				<input class="btn btn-default" type="submit" value="<?php 
echo Theme::Translate('Turn OFF Debugging');
开发者ID:fignew,项目名称:xibo-cms,代码行数:30,代码来源:fault_page.php

示例15:

			<td><?php 
echo Theme::SelectList('bg_image', Theme::Get('background_image_list'), 'mediaid', 'media', Theme::Get('background_id'), 'onchange="background_button_callback()"');
?>
</td>
			<td rowspan="3"><img id="bg_image_image" src="<?php 
echo Theme::Get('background_thumbnail_url');
?>
" alt="<?php 
echo Theme::Translate('Background thumbnail');
?>
" />
		</tr>
		<tr>
			<td><label for="resolutionid" title="<?php 
echo Theme::Translate('Pick the resolution');
?>
"><?php 
echo Theme::Translate('Resolution');
?>
</label></td>
			<td><?php 
echo Theme::SelectList('resolutionid', Theme::Get('resolution_field_list'), 'resolutionid', 'resolution', Theme::Get('resolutionid'));
?>
</td>
		</tr>
	</table>
</form>



开发者ID:abbeet,项目名称:server39,代码行数:27,代码来源:layout_form_background.php


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