本文整理汇总了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');
}
示例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>
示例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>
示例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
示例5: __
<h1><?php
echo __('There has been an application error.');
?>
</h1>
<p><?php
echo Theme::Get('ErrorMessage');
?>
</p>
示例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'];
示例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>
示例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>
示例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
示例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>
示例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>
示例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 © 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>
示例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>
示例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');
示例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>