plugin-icon

WP Auto Columns

제작자: Andrey Ovcharov·
Wrap block of text with shortcode. It will be split into columns. Automagically.
버전
1.0.6
활성화된 설치 항목
10
최근 업데이트일
Aug 2, 2012
WP Auto Columns

You need to display your articles in magazine or newspaper style. Use this plugin. You don’t have to change your theme files or add styles – just use “table” splitter.

Features

  • fully automatic splitter;
  • create columns in table or div’s;
  • tag-aware;
  • splits long paragraphs and unordered lists;
  • keeps text with headers;

Requirements

The plugin requires DOM API (http://www.php.net/manual/en/book.dom.php) and Tidy (http://www.php.net/manual/en/book.tidy.php)

Usage

Wrap block of text with [auto_columns]...[/auto_columns] shortcode. It will produce markup like

<div class="auto-columns-container columns-2"> <div class="auto-columns-column column-1 first-column">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div> <div class="auto-columns-column column-2 last-column">Nam tincidunt gravida dui, at bibendum nisl lacinia nec.</div> <div class="auto-columns-clear"></div> </div>

In your theme use do_shortcode function:

<?php echo do_shortcode('[auto_columns]' . $content . '[/auto_columns]'); ?>

You will have to define width for .auto-columns-column class in your theme, of course.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 3.3.2
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.