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

Enhanced-Calendar

外掛說明

Enhanced-Calendar (previously known as Calendar-Plus) enhances
Kieran O’Shea’s Calendar plugin
by removing several limitations and adding the ability to instantiate
the calendar in a sidebar widget.

Enhanced-Calendar requires the original
Calendar plugin to be installed and activated.
Enhanced-Calendar introduces a proper shortcode which can also be used to display the calendar in a sidebar
by using the Sidebar Shortcode plugin.

Usage

Usage of Enhanced-Calendar is primarily driven by shortcodes. Enhanced-Calendar does not change the way
in which Calendar adds and manages calendar events. The [calendar] shortcode has several arguments. You
could create a post that contains the following content to see how the various options affect the Calendar
output:

[calendar]

[calendar weekday=1]

[calendar weekday=3 descriptions='off']

[calendar dateswitcher='off']

[calendar weekday=3 dateswitcher='off' descriptions='off']

Styling

Enhanced-Calendar moves the CSS styling from a plugin setting which is stored in the database to a separate CSS
file which makes it easy to style Calendar with your own WordPress theme. The default CSS file shipped with
Enhanced-Calendar is the same as the default settings from the Calendar plugin.

You can see Enhanced-Calendar in action on the CASL Shocks web site.

安裝方式

To install Enhanced-Calendar, download it, unzip it, upload it to your
WordPress installation and activate like a standard plugin.

  1. Upload enhanced-calendar to the /wp-content/plugins/ directory
  2. Activate Enhanced-Calendar through the ‘Plugins’ menu in WordPress

常見問題集

Does this plugin replace the Calendar plugin?

No it does not. It “enhances” the Calendar plugin hence the name. The Enhanced-Calendar plugin requires the
original Calendar plugin to be installed and be active. Management of calendar events continues to be done
using the Calendar plugin. Enhanced-Calendar provides a way to present the calendar differently and more control
over styling it as part of a theme.

How did you achieve the styling on the CASL Shocks web site?

By default Enhanced-Calendar uses the same CSS as calendar but it is loaded via a style sheet included with the
plugin instead of from the database plugin option setting which is the standard plugin operation.

By using style sheets, the CSS can be styled as part of the theme which is exactly what I have done for styling
the Calendar on the CASL Shocks web site. The calendar is styled by adding
the following CSS to my theme CSS file:

/*
* Calendar styling
*
*/
.calendar-heading {
background-color: #EFEFEF !important;
}

.current-day {
background-color: #EFEFEF !important;
}

.normal-day-heading, .weekend-heading, .calendar-date-switcher {
background-color: #EFEFEF !important;
}

.current-day, .day-with-date, .day-without-date {
/*
width: 30px !important;
height: 50px !important;
*/
overflow: hidden;
}

.events {
background: url(../images/soccer/SoccerBallSidebar.png) no-repeat -10px 115%;
}

.event-dagger {
display: inline !important;
font-weight: bold;
font-size: 1.2em;
}

.kjo-link {
display: none !important;
}

.widget_calendar_upcoming, .widget_calendar_today {
border-top: 0px;
padding-top: 10px;
}

.widget_calendar_upcoming ul li, .widget_calendar_today ul li {
border-width: 0px;
padding-bottom: 5px;
padding-left: 5px;
}



.widget_calendar_upcoming ul li a, .widget_calendar_today ul li a {
padding: 0.3em 0em;
}

使用者評論

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

參與者及開發者

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

參與者

將〈Enhanced-Calendar〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.0.1

  • First release as “Calendar-Plus”.

0.0.2

  • Minor jQuery fixes to addresses widget display issues.

0.0.3

  • Renamed Enhanced-Calendar
  • Added to WordPress plugin repository

0.0.4

  • ReadMe.txt content and cleanup.

0.0.5

  • More ReadMe.txt content and cleanup.

0.0.6

  • Yet more ReadMe.txt content and cleanup.

0.0.7

  • Fixed CSS issues introduced by renaming plugin.