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


PHP format_to_output函数代码示例

本文整理汇总了PHP中format_to_output函数的典型用法代码示例。如果您正苦于以下问题:PHP format_to_output函数的具体用法?PHP format_to_output怎么用?PHP format_to_output使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: get_short_desc

 /**
  * Get a very short desc. Used in the widget list.
  *
  * @return string The block title, the first 60 characters of the block
  *                content or an empty string.
  */
 function get_short_desc()
 {
     if (empty($this->disp_params['title'])) {
         return strmaxlen($this->disp_params['content'], 60, NULL, 'formvalue');
     }
     return format_to_output($this->disp_params['title']);
 }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:13,代码来源:_mobile_skin_switcher.widget.php

示例2: tagitem_edit_actions

 function tagitem_edit_actions($Item)
 {
     global $current_User, $edited_ItemTag;
     // Display the edit icon if current user has the rights:
     $r = $Item->get_edit_link(array('before' => '', 'after' => ' ', 'text' => get_icon('edit'), 'title' => '#', 'class' => ''));
     if ($current_User->check_perm('item_post!CURSTATUS', 'edit', false, $Item)) {
         // Display the unlink icon if current user has the rights:
         $r .= action_icon(T_('Unlink this tag from post!'), 'unlink', regenerate_url('tag_ID,action,tag_filter', 'tag_ID=' . $edited_ItemTag->ID . '&item_ID=' . $Item->ID . '&action=unlink&' . url_crumb('tag')), NULL, NULL, NULL, array('onclick' => 'return confirm(\'' . format_to_output(sprintf(TS_('Are you sure you want to remove the tag "%s" from "%s"?'), $edited_ItemTag->dget('name'), $Item->dget('title')) . '\');', 'htmlattr')));
     }
     return $r;
 }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:11,代码来源:_itemtag.form.php

示例3: array_to_option_list

/**
 * Converts array to form option list
 *
 * @param integer|array selected key
 * @param boolean provide a choice for "none" with value ''
 * @return string
 */
function array_to_option_list($array, $default = '', $allow_none = false)
{
    if (!is_array($default)) {
        $default = array($default);
    }
    $r = '';
    if ($allow_none) {
        $r .= '<option value="' . $this->none_option_value . '"';
        if (empty($default)) {
            $r .= ' selected="selected"';
        }
        $r .= '>' . format_to_output($this->none_option_text) . '</option>' . "\n";
    }
    foreach ($array as $k => $v) {
        $r .= '<option value="' . format_to_output($k, 'formvalue') . '"';
        if (in_array($k, $default)) {
            $r .= ' selected="selected"';
        }
        $r .= '>';
        $r .= format_to_output($v, 'htmlbody');
        $r .= '</option>' . "\n";
    }
    return $r;
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_misc.funcs.php

示例4: regenerate_url

    echo '<li><a href="' . regenerate_url('action', 'action=utf8check&amp;' . url_crumb('tools')) . '">' . T_('Check/Convert/Normalize the charsets/collations used by the DB (UTF-8 / ASCII)') . '</a></li>';
    // echo '<li><a href="'.regenerate_url('action', 'action=backup_db').'">'.T_('Backup database').'</a></li>';
    echo '</ul>';
    $block_item_Widget->disp_template_raw('block_end');
    $block_item_Widget->title = T_('Cleanup tools');
    $block_item_Widget->disp_template_replaced('block_start');
    echo '<ul>';
    echo '<li><a href="' . $admin_url . '?ctrl=itemtags&amp;action=cleanup&amp;' . url_crumb('tag') . '">' . T_('Find and delete all orphan Tag entries (not used anywhere) - DB only.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=find_broken_posts&amp;' . url_crumb('tools')) . '">' . T_('Find all broken posts (with no matching Category) + Option to delete with related objects - DB only.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=find_broken_slugs&amp;' . url_crumb('tools')) . '">' . T_('Find all broken slugs (with no matching Item) + Option to delete - DB only.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=delete_orphan_comments&amp;' . url_crumb('tools')) . '">' . T_('Find and delete all orphan Comments (with no matching Item) - Disk &amp; DB.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=delete_orphan_comment_uploads&amp;' . url_crumb('tools')) . '">' . T_('Find and delete all orphan comment Uploads - Disk &amp; DB.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=delete_orphan_files&amp;' . url_crumb('tools')) . '">' . T_('Find and delete all orphan File objects (with no matching file on disk) - DB only.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=delete_orphan_file_roots&amp;' . url_crumb('tools')) . '">' . T_('Find and delete all orphan file roots (with no matching Collection or User) and all of their content recursively - Disk &amp; DB.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=prune_hits_sessions&amp;' . url_crumb('tools')) . '">' . T_('Prune old hits &amp; sessions (includes OPTIMIZE) - DB only.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=recreate_itemslugs&amp;' . url_crumb('tools')) . '">' . T_('Recreate all item Slugs (change title-[0-9] canonical slugs to a slug generated from current title). Old slugs will still work, but will redirect to the new ones - DB only.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=recreate_autogenerated_excerpts&amp;' . url_crumb('tools')) . '">' . T_('Recreate autogenerated excerpts - DB only.') . '</a></li>';
    echo '<li><a href="' . regenerate_url('action', 'action=convert_item_content_separators&amp;' . url_crumb('tools')) . '">' . T_('Convert item content separators to [teaserbreak] and [pagebreak] - DB only.') . '</a></li>';
    echo '</ul>';
    $block_item_Widget->disp_template_raw('block_end');
}
// We should load GeoIP plugin here even if it is disabled now, because action 'geoip_download' may be requested
$Plugins->load_plugin_by_classname('geoip_plugin');
// Event AdminToolPayload for each Plugin:
$tool_plugins = $Plugins->get_list_by_event('AdminToolPayload');
foreach ($tool_plugins as $loop_Plugin) {
    $block_item_Widget->title = format_to_output($loop_Plugin->name);
    $block_item_Widget->disp_template_replaced('block_start');
    $Plugins->call_method_if_active($loop_Plugin->ID, 'AdminToolPayload', $params = array());
    $block_item_Widget->disp_template_raw('block_end');
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_misc_tools.view.php

示例5: get_group_country_option_list

 /**
  * Returns form option list with cache contents grouped by country preference
  *
  * Load the cache if necessary
  *
  * @param integer|array selected ID(s) (list for multi-selects)
  * @param boolean provide a choice for "none" with ID ''
  * @param string Callback method name
  * @param array IDs to ignore.
  * @return string
  */
 function get_group_country_option_list($default = 0, $allow_none = false, $method = 'get_name', $ignore_IDs = array())
 {
     if (!is_array($default)) {
         $default = array($default);
     }
     if (!$this->all_loaded && $this->load_all) {
         // We have not loaded all items so far, but we're allowed to.
         if (empty($ignore_IDs)) {
             // just load all items
             $this->load_all();
         } else {
             // only load those items not listed in $ignore_IDs
             $this->load_list($ignore_IDs, true);
         }
     }
     $r = '';
     if ($allow_none) {
         // we set current value of a country if it is sent to function
         $r .= '<option value="' . $this->none_option_value . '"';
         if (empty($default)) {
             $r .= ' selected="selected"';
         }
         $r .= '>' . format_to_output(T_($this->none_option_text)) . '</option>' . "\n";
     }
     $pref_countries = array();
     //preferred countries.
     $rest_countries = array();
     // not preffered countries (the rest)
     foreach ($this->cache as $loop_Obj) {
         if (in_array($loop_Obj->ID, $ignore_IDs)) {
             // if we have ID of countries that we have to ignore we just do not include them here.
             //Ignore this ID
             continue;
         }
         if ($loop_Obj->preferred == 1) {
             // if the country is preferred we add it to selected array.
             $pref_countries[] = $loop_Obj;
         }
         $rest_countries[] = $loop_Obj;
     }
     if (count($pref_countries)) {
         // if we don't have preferred countries in this case we don't have to show optgroup
         // in option list
         $r .= '<optgroup label="' . T_('Frequent countries') . '">';
         foreach ($pref_countries as $loop_Obj) {
             $r .= '<option value="' . $loop_Obj->ID . '"';
             if (in_array($loop_Obj->ID, $default)) {
                 $r .= ' selected="selected"';
             }
             $r .= '>';
             $r .= format_to_output($loop_Obj->{$method}(), 'htmlbody');
             $r .= '</option>' . "\n";
         }
         $r .= '</optgroup>';
         if (count($rest_countries)) {
             // if we don't have rest countries we do not create optgroup for them
             $r .= '<optgroup label="' . T_('Other countries') . '">';
             foreach ($rest_countries as $loop_Obj) {
                 $r .= '<option value="' . $loop_Obj->ID . '"';
                 if (in_array($loop_Obj->ID, $default)) {
                     $r .= ' selected="selected"';
                 }
                 $r .= '>';
                 $r .= format_to_output($loop_Obj->{$method}(), 'htmlbody');
                 $r .= '</option>' . "\n";
             }
             $r .= '</optgroup>';
         }
     } else {
         // if we have only rest countries we get here
         foreach ($rest_countries as $loop_Obj) {
             $r .= '<option value="' . $loop_Obj->ID . '"';
             if (in_array($loop_Obj->ID, $default)) {
                 $r .= ' selected="selected"';
             }
             $r .= '>';
             $r .= format_to_output($loop_Obj->{$method}(), 'htmlbody');
             $r .= '</option>' . "\n";
         }
     }
     return $r;
 }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:93,代码来源:_dataobjectcache.class.php

示例6: skin_opengraph_tags

/**
 * Template tag
 *
 * Used to print out open graph tags
 */
function skin_opengraph_tags()
{
    global $Blog, $disp, $MainList;
    if (empty($Blog) || !$Blog->get_setting('tags_open_graph')) {
        // Open Graph tags are not allowed
        return;
    }
    // Get info for og:image tag
    $og_images = array();
    if (in_array($disp, array('single', 'page'))) {
        // Use only on 'single' and 'page' disp
        $Item =& $MainList->get_by_idx(0);
        if (is_null($Item)) {
            // This is not an object (happens on an invalid request):
            return;
        }
        $LinkOwner = new LinkItem($Item);
        if (!($LinkList = $LinkOwner->get_attachment_LinkList(1000))) {
            // Item has no linked files
            return;
        }
        while ($Link =& $LinkList->get_next()) {
            if (!($File =& $Link->get_File())) {
                // No File object
                global $Debuglog;
                $Debuglog->add(sprintf('Link ID#%d of item #%d does not have a file object!', $Link->ID, $Item->ID), array('error', 'files'));
                continue;
            }
            if (!$File->exists()) {
                // File doesn't exist
                global $Debuglog;
                $Debuglog->add(sprintf('File linked to item #%d does not exist (%s)!', $Item->ID, $File->get_full_path()), array('error', 'files'));
                continue;
            }
            if ($File->is_image()) {
                // Use only image files for og:image tag
                $og_images[] = $File->get_url();
            }
        }
    }
    if (!empty($og_images)) {
        // Display meta tags for image:
        // Open Graph type tag (This tag is necessary for multiple images on facebook share button)
        echo '<meta property="og:type" content="article" />' . "\n";
        foreach ($og_images as $og_image) {
            // Open Graph image tag
            echo '<meta property="og:image" content="' . format_to_output($og_image, 'htmlattr') . "\" />\n";
        }
    }
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:55,代码来源:_skin.funcs.php

示例7: get_excerpt

 /**
  * Template function: get excerpt
  *
  * @todo do we want excerpts in itemLight or not?
  *       dh> I'd say "no". I have added excerpt_autogenerated
  *           only to Item now. But makes sense in the same class.
  *           update_excerpt is also on in Item.
  *  fp> the issue is about display only. of course we don't want update code in ItemLight.
  *  The question is typically about being able to display excerpts in ItemLight list
  *  sitemaps, feed, recent posts, post widgets where the exceprt might be used as a title, etc.
  *
  * @param string filename to use to display more
  * @return string
  */
 function get_excerpt($format = 'htmlbody')
 {
     // Character conversions
     return format_to_output($this->excerpt, $format);
 }
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:19,代码来源:_itemlight.class.php

示例8: get_short_desc

 /**
  * Get a very short desc. Used in the widget list.
  */
 function get_short_desc()
 {
     return format_to_output($this->disp_params['title']);
 }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:7,代码来源:_coll_link_list.widget.php

示例9: antiTagInTag

function antiTagInTag($content = '', $format = 'htmlhead')
{
    if (!function_exists('format_to_output')) {
        // Use the external function if it exists, or fall back on just strip_tags.
        function format_to_output($content, $format)
        {
            return strip_tags($content);
        }
    }
    $contentwalker = 0;
    $length = strlen($content);
    $tagend = -1;
    for ($tagstart = strpos($content, '<', $tagend + 1); $tagstart !== false && $tagstart < strlen($content); $tagstart = strpos($content, '<', $tagend)) {
        // got the start of a tag.  Now find the proper end!
        $walker = $tagstart + 1;
        $open = 1;
        while ($open != 0 && $walker < strlen($content)) {
            $nextopen = strpos($content, '<', $walker);
            $nextclose = strpos($content, '>', $walker);
            if ($nextclose === false) {
                // ERROR! Open waka without close waka!
                // echo '<code>Error in antiTagInTag - malformed tag!</code> ';
                return $content;
            }
            if ($nextopen === false || $nextopen > $nextclose) {
                // No more opens, but there was a close; or, a close happens before the next open.
                // walker goes to the close+1, and open decrements
                $open--;
                $walker = $nextclose + 1;
            } elseif ($nextopen < $nextclose) {
                // an open before the next close
                $open++;
                $walker = $nextopen + 1;
            }
        }
        $tagend = $walker;
        if ($tagend > strlen($content)) {
            $tagend = strlen($content);
        } else {
            $tagend--;
            $tagstart++;
        }
        $tag = substr($content, $tagstart, $tagend - $tagstart);
        $tags[] = '<' . $tag . '>';
        $newtag = format_to_output($tag, $format);
        $newtags[] = '<' . $newtag . '>';
        $newtag = format_to_output($tag, $format);
    }
    if (isset($tags) && isset($newtags)) {
        $content = str_replace($tags, $newtags, $content);
    }
    return $content;
}
开发者ID:leowmjw,项目名称:twfy,代码行数:53,代码来源:wikipedia.php

示例10: cat_line

/**
 * Generate category line when it has children
 *
 * @param object Chapter we want to display
 * @param integer Level of the category in the recursive tree
 * @return string HTML
 */
function cat_line($Chapter, $level)
{
    global $line_class, $permission_to_edit, $current_User, $Settings;
    global $ChapterCache, $current_default_cat_ID;
    global $number_of_posts_in_cat;
    global $Session;
    $result_fadeout = $Session->get('fadeout_array');
    $line_class = $line_class == 'even' ? 'odd' : 'even';
    // ID
    $r = '<tr id="tr-' . $Chapter->ID . '"class="' . $line_class . ' chapter_parent_' . ($Chapter->parent_ID ? $Chapter->parent_ID : '0') . (isset($result_fadeout) && in_array($Chapter->ID, $result_fadeout) ? ' fadeout-ffff00' : '') . '">
					<td class="firstcol shrinkwrap">' . $Chapter->ID . '
				</td>';
    // Default
    if ($current_default_cat_ID == $Chapter->ID) {
        $makedef_icon = get_icon('enabled', 'imgtag', array('title' => format_to_output(T_('This is the default category'), 'htmlattr')));
    } else {
        $makedef_url = regenerate_url('action,cat_ID', 'cat_ID=' . $Chapter->ID . '&amp;action=make_default&amp;' . url_crumb('element'));
        $makedef_title = format_to_output(T_('Click to make this the default category'), 'htmlattr');
        $makedef_icon = '<a href="' . $makedef_url . '" title="' . $makedef_title . '">' . get_icon('disabled', 'imgtag', array('title' => $makedef_title)) . '</a>';
    }
    $r .= '<td class="center">' . $makedef_icon . '</td>';
    // Name
    if ($permission_to_edit) {
        // We have permission permission to edit:
        $edit_url = regenerate_url('action,cat_ID', 'cat_ID=' . $Chapter->ID . '&amp;action=edit');
        $r .= '<td>
						<strong style="padding-left: ' . $level . 'em;"><a href="' . $edit_url . '" title="' . T_('Edit...') . '">' . $Chapter->dget('name') . '</a></strong>
					 </td>';
    } else {
        $r .= '<td>
						 <strong style="padding-left: ' . $level . 'em;">' . $Chapter->dget('name') . '</strong>
					 </td>';
    }
    // URL "slug"
    $edit_url = regenerate_url('action,cat_ID', 'cat_ID=' . $Chapter->ID . '&amp;action=edit');
    $r .= '<td><a href="' . htmlspecialchars($Chapter->get_permanent_url()) . '">' . $Chapter->dget('urlname') . '</a></td>';
    // Order
    if ($Chapter->get_parent_subcat_ordering() == 'manual') {
        // Manual ordering
        $r .= '<td class="center cat_order_edit" rel="' . $Chapter->ID . '">' . '<a href="#">' . ($Chapter->get('order') === NULL ? '-' : $Chapter->dget('order')) . '</a>' . '</td>';
    } else {
        // Alphabetic ordering
        $r .= '<td class="center">' . T_('Alphabetic') . '</td>';
    }
    if ($permission_to_edit) {
        // We have permission permission to edit, so display these columns:
        if ($Chapter->meta) {
            $makemeta_icon = 'enabled';
            $makemeta_title = format_to_output(T_('Click to revert this from meta category'), 'htmlattr');
            $action = 'unset_meta';
        } else {
            $makemeta_icon = 'disabled';
            $makemeta_title = format_to_output(T_('Click to make this as meta category'), 'htmlattr');
            $action = 'set_meta';
        }
        // Meta
        $makemeta_url = regenerate_url('action,cat_ID', 'cat_ID=' . $Chapter->ID . '&amp;action=' . $action . '&amp;' . url_crumb('element'));
        $r .= '<td class="center"><a href="' . $makemeta_url . '" title="' . $makemeta_title . '">' . get_icon($makemeta_icon, 'imgtag', array('title' => $makemeta_title)) . '</a></td>';
        // Lock
        if ($Chapter->lock) {
            $makelock_icon = 'file_not_allowed';
            $makelock_title = format_to_output(T_('Unlock category'), 'htmlattr');
            $action = 'unlock';
        } else {
            $makelock_icon = 'file_allowed';
            $makelock_title = format_to_output(T_('Lock category'), 'htmlattr');
            $action = 'lock';
        }
        $makelock_url = regenerate_url('action,cat_ID', 'cat_ID=' . $Chapter->ID . '&amp;action=' . $action . '&amp;' . url_crumb('element'));
        $r .= '<td class="center"><a href="' . $makelock_url . '" title="' . $makelock_title . '">' . get_icon($makelock_icon, 'imgtag', array('title' => $makelock_title)) . '</a></td>';
    }
    // Posts
    if (isset($number_of_posts_in_cat[$Chapter->ID])) {
        $r .= '<td class="center">' . (int) $number_of_posts_in_cat[$Chapter->ID] . '</td>';
    } else {
        // no posts in this category
        $r .= '<td class="center"> - </td>';
    }
    // Actions
    $r .= '<td class="lastcol shrinkwrap">';
    if ($permission_to_edit) {
        // We have permission permission to edit, so display action column:
        $r .= action_icon(T_('Edit...'), 'edit', $edit_url);
        if ($Settings->get('allow_moving_chapters')) {
            // If moving cats between blogs is allowed:
            $r .= action_icon(T_('Move to a different blog...'), 'file_move', regenerate_url('action,cat_ID', 'cat_ID=' . $Chapter->ID . '&amp;action=move'), T_('Move'));
        }
        $r .= action_icon(T_('New...'), 'new', regenerate_url('action,cat_ID,cat_parent_ID', 'cat_parent_ID=' . $Chapter->ID . '&amp;action=new')) . action_icon(T_('Delete...'), 'delete', regenerate_url('action,cat_ID', 'cat_ID=' . $Chapter->ID . '&amp;action=delete&amp;' . url_crumb('element')));
    }
    $r .= '</td>';
    $r .= '</tr>';
    return $r;
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:100,代码来源:_chapter_list.view.php

示例11: foreach

        foreach ($uploadedFiles as $uploadedFile) {
            $success_msg = sprintf(T_('The file &laquo;%s&raquo; has been successfully uploaded to the server.'), $uploadedFile->dget('name'));
            // Allow to insert/link new upload into currently edited link object:
            if ($mode == 'upload' && !empty($link_object_ID) && !empty($link_type)) {
                // The filemanager has been opened from a link owner object, offer to insert an img tag into original object.
                $LinkOwner = get_link_owner($link_type, $link_object_ID);
                // TODO: Add plugin hook to allow generating JS insert code(s)
                $img_tag = format_to_output($uploadedFile->get_tag(), 'formvalue');
                if ($uploadedFile->is_image()) {
                    $link_msg = $LinkOwner->translate('Link this image to your owner');
                    $link_note = T_('recommended - allows automatic resizing');
                } else {
                    $link_msg = $LinkOwner->translate('Link this file to your owner');
                    $link_note = $LinkOwner->translate('The file will be linked for download at the end of the owner');
                }
                $success_msg .= '<ul>' . '<li>' . action_icon(T_('Link this file!'), 'link', regenerate_url('fm_selected,ctrl', 'ctrl=files&amp;action=link_inpost&amp;fm_selected[]=' . rawurlencode($uploadedFile->get_rdfp_rel_path()) . '&amp;' . url_crumb('file')), ' ' . $link_msg, 5, 5, array('target' => $iframe_name)) . ' (' . $link_note . ')</li>' . '<li>' . T_('or') . ' <a href="#" onclick="if( window.focus && window.opener ){' . 'window.opener.focus(); textarea_wrap_selection( window.opener.document.getElementById(\'' . $LinkOwner->type . 'form_post_content\'), \'' . format_to_output($uploadedFile->get_tag(), 'formvalue') . '\', \'\', 1, window.opener.document ); } return false;">' . $LinkOwner->translate('Insert the following code snippet into your owner') . '</a> : <input type="text" value="' . $img_tag . '" size="60" /></li>' . '</ul>';
            }
            $Messages->add($success_msg, 'success');
        }
    }
    if ($upload_quickmode && !empty($failedFiles)) {
        // Transmit file error to next page!
        $Messages->add($failedFiles[0], 'error');
        unset($failedFiles);
    }
    if (empty($failedFiles) && empty($renamedFiles)) {
        // quick mode or no failed files, Go back to Browsing
        // header_redirect( $dispatcher.'?ctrl=files&root='.$fm_FileRoot->ID.'&path='.rawurlencode($path) );
        header_redirect(regenerate_url('ctrl', 'ctrl=files', '', '&'));
    }
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:upload.ctrl.php

示例12: die

<?php

/**
 * This is the PLAIN TEXT template of email message for post by email report
 *
 * For more info about email skins, see: http://b2evolution.net/man/themes-templates-skins/email-skins/
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
 * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
// ---------------------------- EMAIL HEADER INCLUDED HERE ----------------------------
emailskin_include('_email_header.inc.txt.php', $params);
// ------------------------------- END OF EMAIL HEADER --------------------------------
// Default params:
$params = array_merge(array('Items' => NULL), $params);
$Items = $params['Items'];
echo T_('You just created the following posts:') . "\n\n";
foreach ($Items as $Item) {
    echo format_to_output($Item->title) . "\n";
    echo $Item->get_permanent_url('', '', '&') . "\n\n";
}
// ---------------------------- EMAIL FOOTER INCLUDED HERE ----------------------------
emailskin_include('_email_footer.inc.txt.php', $params);
// ------------------------------- END OF EMAIL FOOTER --------------------------------
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:28,代码来源:post_by_email_report.txt.php

示例13: T_

}
?>
			</ul>

			<p class="uploadfileinputs"><a href="#" onclick="addAnotherFileInput(); return false;" class="small"><?php 
echo T_('Add another file');
?>
</a></p>

			<div class="upload_foot">
				<input type="submit" value="<?php 
echo format_to_output(T_('Upload to server now'), 'formvalue');
?>
" class="ActionButton" >
				<input type="reset" value="<?php 
echo format_to_output(T_('Reset'), 'formvalue');
?>
" class="ResetButton">

				<p class="note">
					<?php 
$restrictNotes = array();
// Get list of recognized file types (others are not allowed to get uploaded)
// dh> because FiletypeCache/DataObjectCache has no interface for getting a list, this dirty query seems less dirty to me.
$allowed_extensions = $DB->get_col('SELECT ftyp_extensions FROM T_filetypes WHERE ftyp_allowed != 0');
$allowed_extensions = implode(' ', $allowed_extensions);
// implode with space, ftyp_extensions can hold many, separated by space
// into array:
$allowed_extensions = preg_split('~\\s+~', $allowed_extensions, -1, PREG_SPLIT_NO_EMPTY);
// readable:
$allowed_extensions = implode_with_and($allowed_extensions);
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:_file_upload.view.php

示例14: while

</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=<?php 
echo $app_version;
?>
"/>
		<ttl>60</ttl>
		<?php 
while ($Comment =& $CommentList->get_next()) {
    // Loop through comments:
    // Load comment's Item:
    $Comment->get_Item();
    ?>
		<item>
			<title><?php 
    echo format_to_output(T_('In response to:'), 'xml');
    ?>
 <?php 
    $Comment->Item->title(array('format' => 'xml', 'link_type' => 'none'));
    ?>
</title>
			<pubDate><?php 
    $Comment->time('r', true);
    ?>
</pubDate>
			<dc:creator><?php 
    $Comment->author('', '#', '', '#', 'xml');
    ?>
</dc:creator>
			<guid isPermaLink="false">c<?php 
    $Comment->ID();
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:comments.main.php

示例15: format_to_output

	<div class="clear"></div>
</div>

<?php 
if ($disp == 'single') {
    // ------------------- NAVIGATION BAR FOR ALBUM(POST) -------------------
    if ($single_Item =& mainlist_get_item()) {
        // Get Item here, because it can be not defined yet, e.g. in Preview mode
        ?>
<div class="nav_album">

	<a href="<?php 
        $Blog->disp('url', 'raw');
        ?>
" id="ios-arrow-left" title="<?php 
        echo format_to_output(T_('All Albums'), 'htmlattr');
        ?>
"></a>

	<span class="nav_album_title">
	<?php 
        $single_Item->title(array('link_type' => 'permalink'));
        $single_Item->edit_link(array('before' => ' ', 'after' => '', 'text' => get_icon('edit'), 'title' => T_('Edit title/description...')));
        if ($Skin->enabled_status_banner($single_Item->status)) {
            // Status banner
            $single_Item->format_status(array('template' => '<div class="post_status"><div class="floatright"><span class="note status_$status$"><span>$status_title$</span></span></div></div>'));
        }
        ?>
	</span>

<?php 
开发者ID:b2evolution,项目名称:photo_albums_skin,代码行数:31,代码来源:index.main.php


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