Title: JB Common
Author: Joan Botella
Published: <strong>2013 年 4 月 5 日</strong>
Last modified: 2013 年 4 月 5 日

---

搜尋外掛

![](https://ps.w.org/jb-common/assets/banner-772x250.png?rev=692088)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# JB Common

 由 [Joan Botella](https://profiles.wordpress.org/joanbotella/) 開發

[下載](https://downloads.wordpress.org/plugin/jb-common.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/jb-common/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/jb-common/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/jb-common/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/jb-common/#developers)

 [技術支援](https://wordpress.org/support/plugin/jb-common/)

## 外掛說明

A plugin with common features missed in WordPress, like favicon, meta tags, adding
HTML to head and footer, WordPress e-mail from header filter, etc.

I’ve developed this plugin for my own job. I’ve realized that when I create a
 new
WordPress project, there are some features I have to plugin every time. I decided
to bundle they all into a single plugin, and I’m publishing it for other creators
who may find it useful too.

Take a look to the [Changelog](https://wordpress.org/extend/plugins/jb-common/changelog/)

for a complete feature list, you may be interested in some of them.

## 螢幕擷圖

[⌊Detail of the popping group on the admin bar. Mind the users and plugins 
shortcuts,
and the W3C validator link for the current URL.⌉⌊Detail of the popping group on 
the admin bar. Mind the users and plugins 
shortcuts, and the W3C validator link
for the current URL.⌉[

Detail of the popping group on the admin bar. Mind the users and plugins shortcuts,
and the W3C validator link for the current URL.

[⌊The JB Common Configuration admin section. Each option is listed as name, description,
custom value and default value.⌉⌊The JB Common Configuration admin section. Each
option is listed as name, description, custom value and default value.⌉[

The JB Common Configuration admin section. Each option is listed as name, description,
custom value and default value.

[⌊The section for viewing the JB Common log contents. If you integrate the 
log 
system with your software, you can view your outputs here.⌉⌊The section for viewing
the JB Common log contents. If you integrate the 
log system with your software,
you can view your outputs here.⌉[

The section for viewing the JB Common log contents. If you integrate the log system
with your software, you can view your outputs here.

[⌊The info admin section. A complete reference for all functions, 
shortcodes, widgets
and features.⌉⌊The info admin section. A complete reference for all functions, 

shortcodes, widgets and features.⌉[

The info admin section. A complete reference for all functions, shortcodes, widgets
and features.

## 安裝方式

 1. Unzip `jb-common.zip` inside the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Customize the plugin options for your own site.

## 常見問題集

#### Why not writting a plugin for each feature?

This plugin was designed for creating new WordPress sites faster, and managing one
plugin is faster than managing many.

#### I need only one of your features and I don’t want to install them all

Feel free to copy the code from that feature to your own plugin, but remember the
GNU/GPLv3 or later license!

#### Will you add new features in the next version?

Maybe. I accept suggestions, tell me on [the plugin’s WordPress Extend support section](https://wordpress.org/support/plugin/jb-common)

if you have one. Only features useful on most blogs will be included.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈JB Common〉的開發相關工作。

參與者

 *   [ Joan Botella ](https://profiles.wordpress.org/joanbotella/)

[將〈JB Common〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/jb-common)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/jb-common/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/jb-common/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/jb-common/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/jb-common/)。

## 變更記錄

#### 1.0

 * Available languages: english (default), castillian (spanish) (es_ES).
 * Some integration with the [Attachments plugin](https://wordpress.org/extend/plugins/attachments/)
   
   by [Jonathan Christopher](https://github.com/jchristopher/attachments). (Option`
   jbcommon_attachments_meta_key`)
 * Disable the WordPress auto format feature for exact HTML editing. (Option `jbcommon_auto_format`)
 * W3C Validator link on Admin Bar for entries code validation. (Option `jbcommon_show_validator_link`)
 * Maintenance mode for redirecting your visitors to a custom “under maintenance”
   page. (Options `jbcommon_maintenance_mode` , `jbcommon_maintenance_url` , jbcommon_maintenance_key
   and `jbcommon_maintenance_value`)
 * Enable the WordPress debug mode without modifying the wp-config.php (Option `
   jbcommon_debug_mode`)
 * Text box for inserting custom text on footer, using the wp_footer hook. (Option`
   jbcommon_footer`)
 * Filter the WordPress e-mails name and address, for avoiding the default “WordPress
   wordpress@your.domain” header. (Options `jbcommon_email_from_address` and `jbcommon_email_from_name`)
 * Add your custom favicon by URL. (Options `jbcommon_favicon_mime` and `jbcommon_favicon_url`)
 * Text box for inserting custom text on head, using the wp_head hook. (Option `
   jbcommon_head`)
 * Text boxes for some common meta tags like keywords and description, and override
   the WordPress generator meta tag for avoid version echoing. (Options `jbcommon_meta_tag_author`,`
   jbcommon_meta_tag_description` , jbcommon_meta_tag_generator , `jbcommon_meta_tag_keywords`)
 * Log features that you can integrate on your own code, with multiple verbose levels
   for displaying on screen and writting to a file. (Options `jbcommon_log` , `jbcommon_log_session_key`,
   jbcommon_log_file , `jbcommon_log_file_max_lines` , jbcommon_log_level_file ,`
   jbcommon_log_level_display_admin` , jbcommon_log_level_display )
 * Author bio echoing. (Widget `JBCommon_Bio_Widget` and shortcode `jbcommon_sc_bio`)
 * Contexted feeds, for example, echoing only the category feed link on category
   pages. (Widget `JBCommon_Feeds_Widget` and shortcode `jbcommon_sc_feeds`)
 * Shortcode for calling PHP functions. (Shortcode `jbcommon_sc_call_function`)
 * Shortcode for echoing PHP constants. (Shortcode `jbcommon_sc_get_constant`)
 * Add an admin menu separator. (Function `jbcommon_add_admin_menu_separator($position)`)
 * Echo the attachments from the Attachments plugin. (Function `jbcommon_echo_attachments(
   $header_level=4)` )
 * Retrieve an admin page URL. (Function `jbcommon_get_admin_page_url($page)` )
 * Retrieve the current admin page permalink. (Function `jbcommon_get_admin_permalink()`)
 * Retrieve the current URL, not only inside The Loop like get_permalink requires.(
   Function `jbcommon_get_current_url()` )
 * Retrieve the current category for the pre_get_posts hook. (Function `jbcommon_get_query_category(
   $wp_query=false)` )
 * Retrieve the URL for the W3C validation for the current URL. (Function `jbcommon_get_validator_url(
   $url=false)` )
 * Check if all elements inside an array are of a specified type. (Function `jbcommon_is_array_of(
   $a,$class)` )
 * Check if the current page is the login one. (Function `jbcommon_is_login_page()`)
 * Check if the current page is the register one. (Function `jbcommon_is_register_page()`)
 * Echo the print_r PHP function wrapped between `<pre>` and `</pre>`. (Function`
   jbcommon_print_r($var)` )
 * Retrieve an URL with some vars appended. (Function `jbcommon_url_append_vars(
   $vars,$url=false,$entity=true)` )

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **13 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 3.5.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/jb-common/)
 * 標籤:
 * [attachments](https://tw.wordpress.org/plugins/tags/attachments/)[bio](https://tw.wordpress.org/plugins/tags/bio/)
   [common](https://tw.wordpress.org/plugins/tags/common/)[debug](https://tw.wordpress.org/plugins/tags/debug/)
   [e-mail](https://tw.wordpress.org/plugins/tags/e-mail/)[favicon](https://tw.wordpress.org/plugins/tags/favicon/)
   [feature](https://tw.wordpress.org/plugins/tags/feature/)[feeds](https://tw.wordpress.org/plugins/tags/feeds/)
   [footer](https://tw.wordpress.org/plugins/tags/footer/)[head](https://tw.wordpress.org/plugins/tags/head/)
   [log](https://tw.wordpress.org/plugins/tags/log/)[maintenance](https://tw.wordpress.org/plugins/tags/maintenance/)
   [meta tag](https://tw.wordpress.org/plugins/tags/meta-tag/)[shorcode](https://tw.wordpress.org/plugins/tags/shorcode/)
   [validator](https://tw.wordpress.org/plugins/tags/validator/)[w3c](https://tw.wordpress.org/plugins/tags/w3c/)
   [widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/jb-common/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/jb-common/reviews/)

## 參與者

 *   [ Joan Botella ](https://profiles.wordpress.org/joanbotella/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/jb-common/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.joanbotella.com/)