Title: Aside Widget
Author: preeve9534
Published: <strong>2010 年 12 月 20 日</strong>
Last modified: 2011 年 10 月 5 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/aside.svg)

# Aside Widget

 作者：[preeve9534](https://profiles.wordpress.org/preeve9534/)

[下载](https://downloads.wordpress.org/plugin/aside.0.9.zip)

 * [详情](https://cn.wordpress.org/plugins/aside/#description)
 * [评价](https://cn.wordpress.org/plugins/aside/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/aside/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/aside/#developers)

 [支持](https://wordpress.org/support/plugin/aside/)

## 描述

Aside widget allows a page or post to insert arbitrary content into a
 sidebar (
or other dynamic widget area), supporting something similar to the typographic notion
of a ‘pull-quote’.

Aside widget is triggered by the presence, in those pages which require it,
 of 
one or more ‘aside’ custom fields with values that specify the content of one or
more widgets. Shifting the locus of widget content control from the widget to the
page makes for more natural authoring of conditional content which needs to be associated
with just a small number of pages.

As well as text, an ‘aside’ custom field may contain HTML and/or PHP code.
 Of course,
any HTML should be crafted so as not to break the containing page structure. PHP
parsing must be explicitly enabled in the widget administration panel and any PHP
in the ‘aside’ field value must be enclosed in the usual tags for it to be recognised.

A little bit of short-form magic can be triggered by formatting the aside
 field
value in the following way.

    ```
    {#|!|!!}id[,prefix,suffix]
    ```

A value of the form #id (e.g. ‘#232’) causes the the page or post
 identified by
the integer id to be used as the widget content.

A value of the form !id (e.g. ‘!myasidediv’) causes the contents of the
 HTML DIV
identified by id to be used as the widget content. The selected DIV must reside 
withing the current page or post. Normally, the selected DIV is removed from display
within the page proper, but a value of the form !!id causes the DIV to remain in
the normal page flow. Processing of page content for the identified DIV is unsophisticated:
the DIV must not itself contain any other DIVs and the DIV id attribute must be 
the first attribute after the tag name.

Prefix and suffix can be used to specify arbitrary text/HTML which will
 be used
to bracket the selected widget content. PHP can also be used, but will only work
if parsing is enabled as described above.

### Examples

A few examples of the use of magic values in the ‘aside’ field.

    ```
    #232  
    ```

Display page 232 in the aside widget.

    ```
    !mydiv  
    ```

Remove the contents of `<div id='mydiv'>...</div>` from the current
 page and display
it in the aside widget.

    ```
    !!mydiv  
    ```

As above, but leave the content in the page.

    ```
    !!mydiv,<span style=”bigquote”>,</span>  
    ```

As above, but style the widget output in some special way.

## 屏幕截图

[⌊Widgets admin page showing aside widget in use.⌉⌊Widgets admin page showing aside
widget in use.⌉[

Widgets admin page showing aside widget in use.

## 安装

 1. Place the zip archive in /wp-content/plugins.
 2. Unzip the archive (and then delete it if you wish).
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Use the widget like any other widget.

## 常见问题

  There’s some kind of error on line 43!

That error means that your PHP code is incorrect or otherwise broken.

Bugs in this widget on line 43 are not possible. Any errors attributed to
 aside.
php at line 43 are errors in code you put into an aside value field. The reason 
that it shows the error being in aside.php is because that is where your code is
actually being run from. Please don’t email me about errors in aside.php on line
43.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Aside Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ preeve9534 ](https://profiles.wordpress.org/preeve9534/)

[帮助将「Aside Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/aside)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/aside/)，查看[SVN仓库](https://plugins.svn.wordpress.org/aside/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/aside/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/aside/)。

## 更新日志

#### 0.9

Release.

## 额外信息

 *  版本 **0.9**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/aside/)
 * 标签
 * [aside](https://cn.wordpress.org/plugins/tags/aside/)[conditional](https://cn.wordpress.org/plugins/tags/conditional/)
   [php](https://cn.wordpress.org/plugins/tags/php/)[pull-quote](https://cn.wordpress.org/plugins/tags/pull-quote/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/aside/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/aside/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/aside/reviews/)

## 贡献者

 *   [ preeve9534 ](https://profiles.wordpress.org/preeve9534/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/aside/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=preeve%40pdjr%2eu)