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&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&blog=' . $Blog->ID . '&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&action=new_mass&blog=' . $blog, T_('Mass create') . ' »', 3, 4); $block_item_Widget->global_icon(T_('Mass edit the current post list...'), '', '?ctrl=items&action=mass_edit&filter=restore&blog=' . $blog . '&redirect_to=' . regenerate_url('action', '', '', '&'), T_('Mass edit') . ' »', 3, 4); $block_item_Widget->global_icon(T_('Write a new post...'), 'new', '?ctrl=items&action=new&blog=' . $blog, T_('New post') . ' »', 3, 4); } } $block_item_Widget->disp_template_replaced('block_start'); if ($action == 'view') {
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&action=new&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 . '&action=update&skinpage=selection&' . $skin_type . '_skin_ID=0&' . 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...
$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&blog=' . $Blog->ID . '&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;
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&action=new&redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', 'skinpage=selection', '', '&'), $admin_url)), T_('Install new') . ' »', 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 . '&action=update&skinpage=selection&' . $skin_type . '_skin_ID=0&' . 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) {
*/ 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');
$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&blog=' . $Blog->ID . '&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;
/** * @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&blog=' . $Blog->ID . '&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&blog=' . $CommentList->Blog->ID . '&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&blog=' . $blog . '&' . $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');
*/ 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') . ' »', 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();
/** * @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&blog=' . $Blog->ID . '&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&blog=' . $CommentList->Blog->ID . '&action=emptytrash', T_('Empty recycle bin...'), 5, 3) . '</span> '; } else { $opentrash_link = get_opentrash_link(false); } }
<?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">';
*/ 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 ') . ' »', 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') {