이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Compact Monthly Archive

설명

If your blog is over a year or two old, you may have noticed the list of archive pages is getting unwieldy.

This plugin is a widget that compresses the size of the arcgives list to two lines per year (three if the lines are narrow) rather than one line per per month.

More information

This widget is licensed under GPLv3.

Grateful thanks to Alan Morgan whose widget_archives2 I used as a template.

Potential developers should check out the development history.

Finally, an obligatory plug for my blog, OddThinking.

스크린샷

설치

  1. Upload plugin-name.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Find the Widgets page (under Presentation in WordPress 2.0-2.3, but there are rumours that it is moving in WordPress 2.4.)
  4. Drag the Compact Monthly Archives into your preferred location.
  5. Click on the icon on the right on the Compact Monthly Archives and set the title. (Default is “Archives”.)
  6. Modify the CSS of the theme to taste, using any of the following styles:
    • STO_cma_archive_list – this is applied to the ul tag that covers the entire calendar, apart from the title.
    • STO_cma_line – this applies to the li tag that represents each year.
    • STO_cma_month – this applies to each letter that represents a month.
    • STO_cma_link – this applies to each month that includes an article (and is, hence, a link.)
    • STO_cma_empty – this applies to each month that is empty (and is, hence, not a link)
    • STO_cma_zwsp – this applies to the whitespace gap between June and July. You may like to make it narrow.

Here is an example:

.STO_cma_month a {
    line-height: 1.2em;
    padding: 0.2em;
}

.STO_cma_empty{
    color: #4984E3;
    line-height: 1.2em;
    padding: 0.2em;

}

You almost certainly will want to change the example style to fit your theme.

FAQ

When would I use this?

The default WordPress archive listing takes one line for every month. Once your blog gets over about a one or two years old, this becomes unwieldy. That’s the point where you should consider this plug-in instead. This plug-in only takes two or three lines per year.

When your blog gets to be about 4-6 years old, it will start to get unwieldy again. Hopefully, by then, we will have a solution for that too.

How do I localise it for my language?

The widget automatically uses the first character from each month based on your locale. So all you need to is override the default title to a word meaning ‘archives’ in your language.

I haven’t tested it on any right-to-left languages. If this doesn’t work, let me know, and I will come up with a workaround.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Compact Monthly Archive”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Compact Monthly Archive”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.