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


PHP Widget::global_icon方法代码示例

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


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

示例1: Widget

    global $rsc_url;
    echo '<script type="text/javascript" src="' . $rsc_url . 'js/fadeout.js"></script>';
    echo '<script type="text/javascript">addEvent( window, "load", Fat.fade_all, false);</script>';
}
// Run the query:
$ItemList->query();
// Old style globals for category.funcs:
global $postIDlist;
$postIDlist = $ItemList->get_page_ID_list();
global $postIDarray;
$postIDarray = $ItemList->get_page_ID_array();
$block_item_Widget = new Widget('block_item');
if ($action == 'view') {
    // We are displaying a single post:
    $block_item_Widget->title = $ItemList->get_filter_title('', '', ' - ', NULL, 'htmlbody');
    $block_item_Widget->global_icon(T_('Close post'), 'close', regenerate_url('p,action', 'filter=restore&amp;highlight=' . $p), T_('close'), 4, 1);
} else {
    // We are displaying multiple posts
    $block_item_Widget->title = T_('Full posts');
    if ($ItemList->is_filtered()) {
        // List is filtered, offer option to reset filters:
        $block_item_Widget->global_icon(T_('Reset all filters!'), 'reset_filters', '?ctrl=items&amp;blog=' . $Blog->ID . '&amp;filter=reset', T_('Reset filters'), 3, 3);
    }
    if ($current_User->check_perm('blog_post_statuses', 'edit', false, $Blog->ID)) {
        $block_item_Widget->global_icon(T_('Create multiple posts...'), 'new', '?ctrl=items&amp;action=new_mass&amp;blog=' . $blog, T_('Mass create') . ' &raquo;', 3, 4);
        $block_item_Widget->global_icon(T_('Mass edit the current post list...'), '', '?ctrl=items&amp;action=mass_edit&amp;filter=restore&amp;blog=' . $blog . '&amp;redirect_to=' . regenerate_url('action', '', '', '&'), T_('Mass edit') . ' &raquo;', 3, 4);
        $block_item_Widget->global_icon(T_('Write a new post...'), 'new', '?ctrl=items&amp;action=new&amp;blog=' . $blog, T_('New post') . ' &raquo;', 3, 4);
    }
}
$block_item_Widget->disp_template_replaced('block_start');
if ($action == 'view') {
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_item_list_full.view.php

示例2: rawurlencode

    case 'mobile':
        $block_item_Widget->title = T_('Choose a Mobile Phone skin');
        $display_same_as_normal = true;
        break;
    case 'tablet':
        $block_item_Widget->title = T_('Choose a Tablet skin');
        $display_same_as_normal = true;
        break;
    default:
        debug_die('Invalid skin type!');
}
// Get what is the current skin ID from this kind of skin type
$current_skin_ID = $edited_Blog->get_setting($skin_type . '_skin_ID', true);
if ($current_User->check_perm('options', 'edit', false)) {
    // We have permission to modify:
    $block_item_Widget->global_icon(T_('Install new skin...'), 'new', $dispatcher . '?ctrl=skins&amp;action=new&amp;redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', 'skinpage=selection', '', '&'), $admin_url)), T_('Install new'), 3, 4);
    $block_item_Widget->global_icon(T_('Keep current skin!'), 'close', regenerate_url('skinpage'), ' ' . T_('Don\'t change'), 3, 4);
}
$block_item_Widget->disp_template_replaced('block_start');
$SkinCache =& get_SkinCache();
$SkinCache->load_all();
if ($display_same_as_normal) {
    $skinshot_title = T_('Same as normal skin');
    $select_url = '?ctrl=coll_settings&tab=skin&blog=' . $edited_Blog->ID . '&amp;action=update&amp;skinpage=selection&amp;' . $skin_type . '_skin_ID=0&amp;' . url_crumb('collection');
    $disp_params = array('function' => 'select', 'selected' => $current_skin_ID == '0', 'select_url' => $select_url);
    Skin::disp_skinshot($skinshot_title, $skinshot_title, $disp_params);
}
$SkinCache->rewind();
while (($iterator_Skin =& $SkinCache->get_next()) != NULL) {
    if ($iterator_Skin->type != $skin_type) {
        // This skin cannot be used here...
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_coll_skin.view.php

示例3: Widget

$assgn_login = ${$pp . 'assgn_login'};
$status = ${$pp . 'status'};
load_funcs('skins/_skin.funcs.php');
$Widget = new Widget();
$template = $AdminUI->get_template('side_item');
$Widget->title = format_to_output($Blog->get_maxlen_name(22), 'htmlbody');
echo $Widget->replace_vars($template['block_start']);
// CALENDAR:
// Call the Calendar plugin:
$Plugins->call_by_code('evo_Calr', array('block_start' => '', 'block_end' => '', 'title' => '', 'link_type' => 'context', 'itemlist_prefix' => $pp));
echo $template['block_end'];
$Widget = new Widget();
$Widget->title = T_('Filters');
if ($ItemList->is_filtered()) {
    // List is filtered, offer option to reset filters:
    $Widget->global_icon(T_('Reset all filters!'), 'reset_filters', '?ctrl=items&amp;blog=' . $Blog->ID . '&amp;filter=reset', T_('Reset filters'), 4, 4);
}
echo $Widget->replace_vars($template['block_start']);
$Form = new Form(NULL, 'resetform', 'get', 'none');
$Form->begin_form('');
$Form->hidden_ctrl();
$Form->submit(array('submit', T_('Search'), 'search', '', 'float:right'));
$Form->hidden('tab', $tab);
$Form->hidden('blog', $Blog->ID);
echo '<fieldset>';
echo '<legend>' . T_('Posts to show') . '</legend>';
?>
		<div>

		<input type="checkbox" name="<?php 
echo $pp;
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_item_list_sidebar.view.php

示例4: rawurlencode

    case 'mobile':
        $block_item_Widget->title = T_('Choose a Mobile Phone skin');
        $display_same_as_normal = true;
        break;
    case 'tablet':
        $block_item_Widget->title = T_('Choose a Tablet skin');
        $display_same_as_normal = true;
        break;
    default:
        debug_die('Invalid skin type!');
}
// Get what is the current skin ID from this kind of skin type
$current_skin_ID = $edited_Blog->get_setting($skin_type . '_skin_ID', true);
if ($current_User->check_perm('options', 'edit', false)) {
    // We have permission to modify:
    $block_item_Widget->global_icon(T_('Install new skin...'), 'new', $admin_url . '?ctrl=skins&amp;action=new&amp;redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', 'skinpage=selection', '', '&'), $admin_url)), T_('Install new') . ' &raquo;', 3, 4, array('class' => 'action_icon btn-primary'));
    $block_item_Widget->global_icon(T_('Keep current skin!'), 'close', regenerate_url('skinpage'), ' ' . T_('Don\'t change'), 3, 4);
}
$block_item_Widget->disp_template_replaced('block_start');
echo '<div class="skin_selector_block">';
$SkinCache =& get_SkinCache();
$SkinCache->load_all();
if ($display_same_as_normal) {
    $skinshot_title = T_('Same as normal skin');
    $select_url = '?ctrl=coll_settings&tab=skin&blog=' . $edited_Blog->ID . '&amp;action=update&amp;skinpage=selection&amp;' . $skin_type . '_skin_ID=0&amp;' . url_crumb('collection');
    $disp_params = array('function' => 'select', 'selected' => $current_skin_ID == '0', 'select_url' => $select_url);
    Skin::disp_skinshot($skinshot_title, $skinshot_title, $disp_params);
}
$fadeout_array = $Session->get('fadeout_array');
$SkinCache->rewind();
while (($iterator_Skin =& $SkinCache->get_next()) != NULL) {
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_coll_skin.view.php

示例5: die

 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
global $skins_path, $admin_url, $redirect_to, $action, $kind;
$skin_type = param('skin_type', 'string', '');
/**
 * @var SkinCache
 */
$SkinCache =& get_SkinCache();
$SkinCache->load_all();
$block_item_Widget = new Widget('block_item');
$block_item_Widget->title = T_('Skins available for installation') . get_manual_link('installing_skins');
if ($current_User->check_perm('options', 'edit', false)) {
    // We have permission to modify:
    $block_item_Widget->global_icon(T_('Cancel install!'), 'close', $redirect_to);
}
$block_item_Widget->disp_template_replaced('block_start');
// Skin type selector:
$Form = new Form($admin_url, '', 'get', 'blockspan');
$Form->hidden_ctrl();
$Form->hidden('action', $action);
$Form->hidden('redirect_to', $redirect_to);
$Form->hidden('kind', get_param('kind'));
$Form->begin_form('skin_selector_filters');
$Form->select_input_array('skin_type', $skin_type, array('' => T_('All skins'), 'normal' => T_('Normal skins'), 'mobile' => T_('Mobile skins'), 'tablet' => T_('Tablet skins'), 'feed' => T_('Feed skins'), 'sitemap' => T_('Sitemap skins')), T_('Show'), '', array('force_keys_as_values' => true, 'onchange' => 'this.form.submit()'));
$Form->end_form();
$filename_params = array('inc_files' => false, 'recurse' => false, 'basename' => true);
// Get all skin folder names:
$skin_folders = get_filenames($skins_path, $filename_params);
$Form = new Form($admin_url, '', 'post', 'blockspan');
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_skin_list_available.view.php

示例6: Widget

$assgn_login = ${$pp . 'assgn_login'};
$status = ${$pp . 'status'};
load_funcs('skins/_skin.funcs.php');
$Widget = new Widget();
$template = $AdminUI->get_template('side_item');
$Widget->title = format_to_output($Blog->get_maxlen_name(22), 'htmlbody');
echo $Widget->replace_vars($template['block_start']);
// CALENDAR:
// Call the Calendar plugin:
$Plugins->call_by_code('evo_Calr', array('block_start' => '', 'block_end' => '', 'title' => '', 'link_type' => 'context', 'itemlist_prefix' => $pp));
echo $template['block_end'];
$Widget = new Widget();
$Widget->title = T_('Filters');
if ($ItemList->is_filtered()) {
    // List is filtered, offer option to reset filters:
    $Widget->global_icon(T_('Reset all filters!'), 'reset_filters', '?ctrl=items&amp;blog=' . $Blog->ID . '&amp;filter=reset', T_('Reset filters'), 4, 4, array('class' => 'action_icon btn btn-warning btn-sm'));
}
echo $Widget->replace_vars($template['block_start']);
$Form = new Form(NULL, 'resetform', 'get', 'none');
$Form->begin_form('');
$Form->hidden_ctrl();
$Form->button_input(array('tag' => 'button', 'value' => get_icon('filter') . ' ' . T_('Filter'), 'class' => 'search btn-info pull-right'));
$Form->hidden('tab', $tab);
$Form->hidden('blog', $Blog->ID);
echo '<fieldset class="clear">';
echo '<legend>' . T_('Posts to show') . '</legend>';
?>
		<div>

		<input type="checkbox" name="<?php 
echo $pp;
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_item_list_sidebar.view.php

示例7: Widget

/**
 * @var CommentList
 */
global $CommentList, $show_statuses;
global $dispatcher;
global $current_User, $admin_url;
/*
 * Display comments:
 */
$CommentList->query();
// Dispay a form to mass delete the comments:
display_comment_mass_delete($CommentList);
$block_item_Widget = new Widget('block_item');
if ($CommentList->is_filtered()) {
    // List is filtered, offer option to reset filters:
    $block_item_Widget->global_icon(T_('Reset all filters!'), 'reset_filters', '?ctrl=comments&amp;blog=' . $Blog->ID . '&amp;filter=reset', T_('Reset filters'), 3, 3, array('class' => 'action_icon btn-warning'));
}
if (check_comment_mass_delete($CommentList)) {
    // A form for mass deleting is available, Display link
    $block_item_Widget->global_icon(T_('Delete all comments!'), 'recycle', regenerate_url('action', 'action=mass_delete'), T_('Mass delete...'), 3, 3);
}
if ($current_User->check_perm('blogs', 'editall')) {
    if ($CommentList->is_trashfilter()) {
        $block_item_Widget->global_icon(T_('Empty recycle bin'), 'recycle_empty', $admin_url . '?ctrl=comments&amp;blog=' . $CommentList->Blog->ID . '&amp;action=emptytrash', T_('Empty recycle bin...'), 5, 3);
    } else {
        global $blog;
        $block_item_Widget->global_icon(T_('Open recycle bin'), 'recycle_full', $admin_url . '?ctrl=comments&amp;blog=' . $blog . '&amp;' . $CommentList->param_prefix . 'show_statuses[]=trash', T_('Open recycle bin'), 5, 3, array('before' => '<span id="recycle_bin">', 'after' => '</span>'));
    }
}
$block_item_Widget->title = T_('Feedback (Comments, Trackbacks...)') . get_manual_link('comments-tab');
$block_item_Widget->disp_template_replaced('block_start');
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_browse_comments.view.php

示例8: printf

 */
global $LinkOwner;
global $edited_User;
global $blog;
if (isset($edited_User)) {
    // Display a help notice for setting a new avatar:
    printf('<div>' . T_('Click on a link %s icon below to select the image to use as your profile picture.') . '</div>', get_icon('link', 'imgtag', array('class' => 'top')));
}
?>

<!-- FILE BROWSER -->

<?php 
$Widget = new Widget('file_browser');
if (!$ajax_request && $current_User->check_perm('files', 'add', false, $fm_FileRoot)) {
    $Widget->global_icon(T_('Advanced Upload...'), '', regenerate_url('ctrl', 'ctrl=upload'), T_('Advanced Upload') . ' &raquo;', 1, 5);
}
$close_link_params = array();
if ($ajax_request) {
    // Initialize JavaScript functions to work with modal window
    echo '<script type="text/javascript">';
    echo_modalwindow_js();
    echo '</script>';
    $close_link_params['onclick'] = 'return closeModalWindow( window.parent.document )';
}
global $mode, $AdminUI;
if ($mode != 'upload' || !isset($AdminUI->skin_name) || $AdminUI->skin_name != 'bootstrap') {
    // Don't display a close icon, because it is already displayed on bootstrap modal window header
    if (!empty($LinkOwner)) {
        // Get an url to return to owner(post/comment) editing
        $icon_close_url = $LinkOwner->get_edit_url();
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_file_browse.view.php

示例9: Widget

/**
 * @var CommentList
 */
global $CommentList, $show_statuses;
global $dispatcher;
global $current_User, $admin_url;
/*
 * Display comments:
 */
$CommentList->query();
// Dispay a form to mass delete the comments:
display_comment_mass_delete($CommentList);
$block_item_Widget = new Widget('block_item');
if (check_comment_mass_delete($CommentList)) {
    // A form for mass deleting is availabl, Display link
    $block_item_Widget->global_icon(T_('Delete all comments!'), 'delete', regenerate_url('action', 'action=mass_delete'), T_('Mass delete...'), 3, 3);
}
if ($CommentList->is_filtered()) {
    // List is filtered, offer option to reset filters:
    $block_item_Widget->global_icon(T_('Reset all filters!'), 'reset_filters', '?ctrl=comments&amp;blog=' . $Blog->ID . '&amp;filter=reset', T_('Reset filters'), 3, 3);
}
$emptytrash_link = '';
// Display recycle bin placeholder, because users may have rights to recycle particular comments
$opentrash_link = '<span id="recycle_bin" class="floatright"></span>';
if ($current_User->check_perm('blogs', 'editall')) {
    if ($CommentList->is_trashfilter()) {
        $emptytrash_link = '<span class="floatright">' . action_icon(T_('Empty recycle bin'), 'recycle_empty', $admin_url . '?ctrl=comments&amp;blog=' . $CommentList->Blog->ID . '&amp;action=emptytrash', T_('Empty recycle bin...'), 5, 3) . '</span> ';
    } else {
        $opentrash_link = get_opentrash_link(false);
    }
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_browse_comments.view.php

示例10: get_directory_tree



<?php 
// Begin payload block:
$this->disp_payload_begin();
$Form = new Form(NULL, 'fm_upload_checkchanges', 'post', 'none', 'multipart/form-data');
$Form->formclass = 'form-inline';
$Form->begin_form('fform');
$Form->add_crumb('file');
$Form->hidden_ctrl();
$Form->hidden('MAX_FILE_SIZE', $Settings->get('upload_maxkb') * 1024);
// Just a hint for the browser.
$Form->hidden('upload_quickmode', $upload_quickmode);
$Form->hiddens_by_key(get_memorized());
$Widget = new Widget('file_browser');
$Widget->global_icon(T_('Quit upload mode!'), 'close', regenerate_url('ctrl,fm_mode', 'ctrl=files'));
$Widget->title = T_('File upload') . get_manual_link('upload_multiple');
$Widget->disp_template_replaced('block_start');
?>

<table id="fm_browser" cellspacing="0" cellpadding="0" class="table table-striped table-bordered table-hover table-condensed">
	<tbody>
		<tr>
			<?php 
echo '<td id="fm_dirtree">';
// Version with all roots displayed
echo get_directory_tree(NULL, NULL, $ads_list_path, true, NULL, false, 'add');
// Version with only the current root displayed:
// echo get_directory_tree( $fm_FileRoot, $fm_FileRoot->ads_path, $ads_list_path, true );
echo '</td>';
echo '<td id="fm_files">';
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:29,代码来源:_file_upload.view.php

示例11: printf

 */
global $LinkOwner;
global $edited_User;
global $blog;
if (isset($edited_User)) {
    // Display a help notice for setting a new avatar:
    printf('<div>' . T_('Click on a link %s icon below to select the image to use as your profile picture.') . '</div>', get_icon('link', 'imgtag', array('class' => 'top')));
}
?>

<!-- FILE BROWSER -->

<?php 
$Widget = new Widget('file_browser');
if ($current_User->check_perm('files', 'add', false, $fm_FileRoot)) {
    $Widget->global_icon(T_('Upload...'), '', regenerate_url('ctrl', 'ctrl=upload'), T_('Upload ') . ' &raquo;', 1, 5);
}
if (!empty($LinkOwner)) {
    // Return to post editing:
    $Widget->global_icon(T_('Close file manager'), 'close', $LinkOwner->get_edit_url());
}
$Widget->title = T_('File browser') . get_manual_link('file_browser');
$Widget->disp_template_replaced('block_start');
?>

<table id="fm_browser" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td colspan="2" id="fm_bar">
			<?php 
if ($UserSettings->get('fm_allowfiltering') != 'no') {
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_file_browse.view.php


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