本文整理汇总了PHP中UI::get_icon方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::get_icon方法的具体用法?PHP UI::get_icon怎么用?PHP UI::get_icon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::get_icon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: format
/**
* format
* This takes the current playlist object and gussies it up a little
* bit so it is presentable to the users
*/
public function format()
{
$this->f_name = $this->name;
$this->f_type = $this->type == 'private' ? UI::get_icon('lock', T_('Private')) : '';
$client = new User($this->user);
$this->f_user = $client->fullname;
}
示例2: format
/**
* format
* This takes the current playlist object and gussies it up a little
* bit so it is presentable to the users
*/
public function format($details = true)
{
$this->f_name = $this->name;
$this->f_type = $this->type == 'private' ? UI::get_icon('lock', T_('Private')) : '';
if ($details) {
$client = new User($this->user);
$client->format();
$this->f_user = $client->f_name;
}
}
示例3: get_display
/**
* get_display
* This dumps out some html and an icon for the type of rss that we specify
* @param string $type
* @param string $title
* @param array|null $params
* @return string
*/
public static function get_display($type = 'now_playing', $title = '', $params = null)
{
// Default to now playing
$type = self::validate_type($type);
$strparams = "";
if ($params != null && is_array($params)) {
foreach ($params as $key => $value) {
$strparams .= "&" . scrub_out($key) . "=" . scrub_out($value);
}
}
$string = '<a rel="nohtml" href="' . AmpConfig::get('web_path') . '/rss.php?type=' . $type . $strparams . '">' . UI::get_icon('feed', T_('RSS Feed'));
if (!empty($title)) {
$string .= ' ' . $title;
}
$string .= '</a>';
return $string;
}
示例4: T_
?>
<div id="equalizerbtn" class="action_button">
<a href="javascript:ShowEqualizer();"><?php
echo UI::get_icon('equalizer', T_('Equalizer'));
?>
</a>
</div>
<div class="action_button">
<a href="javascript:ShowVisualizer();"><?php
echo UI::get_icon('visualizer', T_('Visualizer'));
?>
</a>
</div>
<div class="action_button">
<a onClick="ShowVisualizerFullScreen();" href="#"><?php
echo UI::get_icon('fullscreen', T_('Visualizer Full-Screen'));
?>
</a>
</div>
<?php
}
}
?>
</div>
<?php
}
?>
<div class="jp-playlist" style="position: absolute;">
<ul>
<li></li>
</ul>
示例5: T_
?>
">
<?php
echo $client->f_useage;
?>
<?php
if (AmpConfig::get('statistical_graphs')) {
?>
<a href="<?php
echo AmpConfig::get('web_path');
?>
/stats.php?action=graph&user_id=<?php
echo $client->id;
?>
"><?php
echo UI::get_icon('statistics', T_('Graphs'));
?>
</a>
<?php
}
?>
</dd>
<?php
}
?>
<?php
$rowparity = UI::flip_class();
?>
<dt class="<?php
echo $rowparity;
?>
示例6: show_action_buttons
public function show_action_buttons()
{
if ($this->id) {
if ($GLOBALS['user']->has_access('75')) {
echo Ajax::button('?page=index&action=start_channel&id=' . $this->id, 'run', T_('Start Channel'), 'channel_start_' . $this->id);
echo " " . Ajax::button('?page=index&action=stop_channel&id=' . $this->id, 'stop', T_('Stop Channel'), 'channel_stop_' . $this->id);
echo " <a id=\"edit_channel_ " . $this->id . "\" onclick=\"showEditDialog('channel_row', '" . $this->id . "', 'edit_channel_" . $this->id . "', '" . T_('Channel edit') . "', 'channel_row_', 'refresh_channel')\">" . UI::get_icon('edit', T_('Edit')) . "</a>";
echo " <a href=\"" . AmpConfig::get('web_path') . "/channel.php?action=show_delete&id=" . $this->id . "\">" . UI::get_icon('delete', T_('Delete')) . "</a>";
}
}
}
示例7: T_
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
$thcount = 5;
?>
<div id="information_actions">
<ul>
<?php
if (Access::check('interface', 75)) {
?>
<li>
<a href="<?php
echo AmpConfig::get('web_path');
?>
/podcast.php?action=show_create"><?php
echo UI::get_icon('add', T_('Add'));
?>
<?php
echo T_('Subscribe Podcast');
?>
</a>
</li>
<?php
}
?>
</ul>
</div>
<?php
if ($browse->get_show_header()) {
require AmpConfig::get('prefix') . UI::find_template('list_header.inc.php');
}
示例8: T_
if ($logic_operator == 'or') {
echo 'selected="selected"';
}
?>
><?php
echo T_('any rule');
?>
</option>
</select>
</td>
</tr>
<tr id="rules_addrowbutton">
<td>
<a id="addrowbutton" href="javascript:void(0)">
<?php
echo UI::get_icon('add');
?>
<?php
echo T_('Add Another Rule');
?>
</a>
<script type="text/javascript">$('#addrowbutton').on('click', SearchRow.add);</script>
</td>
</tr>
</tbody>
</table>
<?php
UI::show_box_bottom();
?>
<?php
示例9: T_
" />
</td>
</tr>
<tr>
<td>
<?php
echo T_('API Key');
?>
<a href="<?php
echo AmpConfig::get('web_path');
?>
/admin/users.php?action=show_generate_apikey&user_id=<?php
echo $client->id;
?>
"><?php
echo UI::get_icon('random', T_('Generate new API Key'));
?>
</a>
</td>
<td>
<span>
<?php
if ($client->apikey) {
$urlinfo = parse_url(AmpConfig::get('web_path'));
$apikey_qrcode = "ampache://" . $client->apikey . "@" . $urlinfo['host'];
if ($urlinfo['port'] && $urlinfo['port'] != 80) {
$apikey_qrcode .= ":" . $urlinfo['port'];
}
$apikey_qrcode .= $urlinfo['path'];
if ($urlinfo['scheme'] == "https" || AmpConfig::get('force_ssl')) {
$apikey_qrcode .= "#ssl=true";
示例10: T_
_id=<?php
echo $libitem->id;
?>
">
<?php
echo UI::get_icon('download', T_('Download'));
?>
</a>
<?php
}
if (Access::check('interface', '25')) {
if (AmpConfig::get('share')) {
Share::display_ui($object_type, $libitem->id, false);
}
}
if (get_class($playlist) == "Playlist" && $playlist->has_access()) {
echo Ajax::button('?page=playlist&action=delete_track&playlist_id=' . $playlist->id . '&track_id=' . $object['track_id'], 'delete', T_('Delete'), 'track_del_' . $object['track_id']);
}
?>
</td>
<?php
if (Access::check('interface', '50') && get_class($playlist) == "Playlist") {
?>
<td class="cel_drag">
<?php
echo UI::get_icon('drag', T_('Reorder'));
?>
</td>
<?php
}
}
示例11: T_
echo T_('Cooldown');
?>
:<?php
echo $democratic->f_cooldown;
?>
</li>
<?php
}
if (Access::check('interface', '75')) {
?>
<li>
<a href="<?php
echo AmpConfig::get('web_path');
?>
/democratic.php?action=manage"><?php
echo UI::get_icon('server_lightning', T_('Configure Democratic Playlist'));
?>
<?php
echo T_('Configure Democratic Playlist');
?>
</a>
</li>
<?php
if ($democratic->is_enabled()) {
?>
<li>
<?php
echo Ajax::button('?page=democratic&action=send_playlist&democratic_id=' . $democratic->id, 'all', T_('Play'), 'play_democratic');
?>
<?php
示例12: button
/**
* button
* This prints out an img of the specified icon with the specified alt
* text and then sets up the required ajax for it.
*/
public static function button($action, $icon, $alt, $source = '', $post = '', $class = '', $confirm = '')
{
// Get the correct action
$ajax_string = self::action($action, $source, $post);
// If they passed a span class
if ($class) {
$class = ' class="' . $class . '"';
}
$string = UI::get_icon($icon, $alt);
// Generate an <a> so that it's more compliant with older
// browsers (ie :hover actions) and also to unify linkbuttons
// (w/o ajax) display
$string = "<a href=\"javascript:void(0);\" id=\"{$source}\" {$class}>" . $string . "</a>\n";
$string .= self::observe($source, 'click', $ajax_string, $confirm);
return $string;
}
示例13: T_
:</h3>
<ul>
<li>
<a id="<?php
echo 'reply_pvmsg_' . $label->id;
?>
" href="<?php
echo AmpConfig::get('web_path');
?>
/pvmsg.php?action=show_add_message&reply_to=<?php
echo $pvmsg->id;
?>
">
<?php
echo UI::get_icon('mail', T_('Reply'));
?>
<?php
echo T_('Reply');
?>
</a>
</li>
</ul>
</div>
<hr />
<div>
<?php
echo nl2br($pvmsg->f_message);
?>
</div>
示例14: foreach
foreach ($fields as $key => $field) {
?>
<td><?php
echo $instance[$key];
?>
</td>
<?php
}
?>
<td>
<a href="<?php
echo AmpConfig::get('web_path');
?>
/localplay.php?action=edit_instance&instance=<?php
echo $uid;
?>
"><?php
echo UI::get_icon('edit', T_('Edit Instance'));
?>
</a>
<?php
echo Ajax::button('?page=localplay&action=delete_instance&instance=' . $uid, 'delete', T_('Delete'), 'delete_instance_' . $uid);
?>
</td>
</tr>
<?php
}
?>
</table>
<?php
UI::show_box_bottom();
示例15: T_
* as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
$embed = $_REQUEST['embed'];
$is_share = true;
$playlist = $share->create_fake_playlist();
require AmpConfig::get('prefix') . '/templates/show_web_player.inc.php';
if (empty($embed)) {
echo "<a href='" . $share->public_url . "'>" . T_('Shared by') . ' ' . $share->f_user . "</a><br />";
if ($share->allow_download) {
echo "<a href=\"" . AmpConfig::get('web_path') . "/share.php?action=download&id=" . $share->id . "&secret=" . $share->secret . "\">" . UI::get_icon('download', T_('Download')) . "</a> ";
echo "<a href=\"" . AmpConfig::get('web_path') . "/share.php?action=download&id=" . $share->id . "&secret=" . $share->secret . "\">" . T_('Download') . "</a>";
}
}
if (!empty($embed)) {
UI::show_box_bottom();
} else {
?>
</body>
</html>
<?php
}