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


PHP UI::get_icon方法代码示例

本文整理汇总了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;
 }
开发者ID:axelsimon,项目名称:ampache,代码行数:12,代码来源:playlist_object.abstract.php

示例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;
     }
 }
开发者ID:cheese1,项目名称:ampache,代码行数:15,代码来源:playlist_object.abstract.php

示例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 .= ' &nbsp;' . $title;
     }
     $string .= '</a>';
     return $string;
 }
开发者ID:nioc,项目名称:ampache,代码行数:25,代码来源:ampache_rss.class.php

示例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>
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:show_html5_player.inc.php

示例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;
?>
开发者ID:cheese1,项目名称:ampache,代码行数:31,代码来源:show_user.inc.php

示例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>";
         }
     }
 }
开发者ID:cheese1,项目名称:ampache,代码行数:11,代码来源:channel.class.php

示例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');
}
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_podcasts.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 
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_rules.inc.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";
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_account.inc.php

示例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 
    }
}
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_playlist_media_row.inc.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'));
    ?>
    &nbsp;
    <?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 
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:show_democratic.inc.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;
 }
开发者ID:axelsimon,项目名称:ampache,代码行数:21,代码来源:ajax.class.php

示例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>
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_pvmsg.inc.php

示例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();
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_localplay_instances.inc.php

示例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 
}
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_share.inc.php


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