Changeset 580792
- Timestamp:
- 08/02/2012 01:30:34 PM (14 years ago)
- Location:
- wp-auto-columns/trunk
- Files:
-
- 1 added
- 5 edited
- 1 copied
-
languages/wp-auto-columns-en_US.mo (added)
-
languages/wp-auto-columns-en_US.po (copied) (copied from wp-auto-columns/trunk/languages/wp-auto-columns-ru_RU.po) (2 diffs)
-
languages/wp-auto-columns-ru_RU.mo (modified) (previous)
-
languages/wp-auto-columns-ru_RU.po (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
templates/settings.phtml (modified) (1 diff)
-
wp-auto-columns.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-auto-columns/trunk/languages/wp-auto-columns-en_US.po
r561575 r580792 3 3 "Project-Id-Version: WP Auto Colums\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2012-0 6-20 15:56+0300\n"6 "PO-Revision-Date: 2012-0 6-20 15:57+0300\n"5 "POT-Creation-Date: 2012-08-02 17:27+0400\n" 6 "PO-Revision-Date: 2012-08-02 17:28+0400\n" 7 7 "Last-Translator: Andrey Ovcharov <andrew.ovcharov@gmail.com>\n" 8 8 "Language-Team: Spectraweb s.r.o. <info@spectraweb.cz>\n" 9 "Language: en_US\n" 9 10 "MIME-Version: 1.0\n" 10 11 "Content-Type: text/plain; charset=UTF-8\n" … … 12 13 "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_x\n" 13 14 "X-Poedit-Basepath: .\n" 14 "X-Poedit-Language: Russian\n" 15 "X-Poedit-Country: RUSSIAN FEDERATION\n" 16 "X-Poedit-SourceCharset: utf-8\n" 15 "X-Poedit-SourceCharset: UTF-8\n" 17 16 "X-Poedit-SearchPath-0: ..\n" 18 17 19 18 #: ../wp-auto-columns.php:32 20 msgid "This plugin requires DOM API (<a href=\"http://www.php.net/manual/en/dom.setup.php\" target=\"_blank\">more info</a>)" 21 msgstr "Плагин требует установки DOM API (<a href=\"http://www.php.net/manual/ru/dom.setup.php\" target=\"_blank\">подробнее</a>)" 19 msgid "" 20 "This plugin requires Tidy (<a href=\"http://www.php.net/manual/en/book.tidy." 21 "php\" target=\"_blank\">more info</a>)" 22 msgstr "" 22 23 24 #: ../wp-auto-columns.php:37 25 msgid "" 26 "This plugin requires DOM API (<a href=\"http://www.php.net/manual/en/book." 27 "dom.php\" target=\"_blank\">more info</a>)" 28 msgstr "" 29 30 #: ../wp-auto-columns.php:97 31 msgid "Auto Columns Options" 32 msgstr "" 33 34 #: ../wp-auto-columns.php:97 35 msgid "Auto Columns" 36 msgstr "" 37 38 #: ../templates/settings.phtml:2 39 msgid "Auto Columns Settings" 40 msgstr "" 41 42 #: ../templates/settings.phtml:14 43 msgid "Default split style" 44 msgstr "" 45 46 #: ../templates/settings.phtml:19 47 msgid "Div" 48 msgstr "" 49 50 #: ../templates/settings.phtml:20 51 msgid "Table" 52 msgstr "" 53 54 #: ../templates/settings.phtml:32 55 msgid "Line height in pixels" 56 msgstr "" 57 58 #: ../templates/settings.phtml:41 59 msgid "Header tags" 60 msgstr "" 61 62 #: ../templates/settings.phtml:46 63 msgid "Comma separated list of header tags" 64 msgstr "" 65 66 #: ../templates/settings.phtml:51 67 msgid "Splittable tags" 68 msgstr "" 69 70 #: ../templates/settings.phtml:56 71 msgid "Comma separated list of tags allowed to split between columns" 72 msgstr "" 73 74 #: ../templates/settings.phtml:64 75 msgid "Splitter fine tuning" 76 msgstr "" 77 78 #: ../templates/settings.phtml:70 79 msgid "Chars in line" 80 msgstr "" 81 82 #: ../templates/settings.phtml:71 83 msgid "line-height" 84 msgstr "" 85 86 #: ../templates/settings.phtml:72 87 msgid "margin-bottom" 88 msgstr "" 89 90 #: ../templates/settings.phtml:119 91 msgid "These settings are for real experts. Use on your own risk" 92 msgstr "" 93 94 #: ../templates/settings.phtml:126 95 msgid "Save Changes" 96 msgstr "" -
wp-auto-columns/trunk/languages/wp-auto-columns-ru_RU.po
r561063 r580792 3 3 "Project-Id-Version: WP Auto Colums\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2012-0 6-20 15:56+0300\n"6 "PO-Revision-Date: 2012-0 6-20 15:57+0300\n"5 "POT-Creation-Date: 2012-08-02 17:24+0300\n" 6 "PO-Revision-Date: 2012-08-02 17:26+0300\n" 7 7 "Last-Translator: Andrey Ovcharov <andrew.ovcharov@gmail.com>\n" 8 8 "Language-Team: Spectraweb s.r.o. <info@spectraweb.cz>\n" … … 18 18 19 19 #: ../wp-auto-columns.php:32 20 msgid "This plugin requires DOM API (<a href=\"http://www.php.net/manual/en/dom.setup.php\" target=\"_blank\">more info</a>)"20 msgid "This plugin requires Tidy (<a href=\"http://www.php.net/manual/en/book.tidy.php\" target=\"_blank\">more info</a>)" 21 21 msgstr "Плагин требует установки DOM API (<a href=\"http://www.php.net/manual/ru/dom.setup.php\" target=\"_blank\">подробнее</a>)" 22 22 23 #: ../wp-auto-columns.php:37 24 msgid "This plugin requires DOM API (<a href=\"http://www.php.net/manual/en/book.dom.php\" target=\"_blank\">more info</a>)" 25 msgstr "Плагин требует установки DOM API (<a href=\"http://www.php.net/manual/ru/dom.setup.php\" target=\"_blank\">подробнее</a>)" 26 27 #: ../wp-auto-columns.php:97 28 msgid "Auto Columns Options" 29 msgstr "Настройки Auto Columns" 30 31 #: ../wp-auto-columns.php:97 32 msgid "Auto Columns" 33 msgstr "Auto Columns" 34 35 #: ../templates/settings.phtml:2 36 msgid "Auto Columns Settings" 37 msgstr "Настройки Auto Columns" 38 39 #: ../templates/settings.phtml:14 40 msgid "Default split style" 41 msgstr "Способ разбивки по умолчанию" 42 43 #: ../templates/settings.phtml:19 44 msgid "Div" 45 msgstr "Div" 46 47 #: ../templates/settings.phtml:20 48 msgid "Table" 49 msgstr "Таблица" 50 51 #: ../templates/settings.phtml:32 52 msgid "Line height in pixels" 53 msgstr "Высота строки в пикселях" 54 55 #: ../templates/settings.phtml:41 56 msgid "Header tags" 57 msgstr "Тэги заголовков" 58 59 #: ../templates/settings.phtml:46 60 msgid "Comma separated list of header tags" 61 msgstr "Список тэгов, используемых в качестве заголовков" 62 63 #: ../templates/settings.phtml:51 64 msgid "Splittable tags" 65 msgstr "" 66 67 #: ../templates/settings.phtml:56 68 msgid "Comma separated list of tags allowed to split between columns" 69 msgstr "Список тэгов, которые можно разносить по разным колонкам" 70 71 #: ../templates/settings.phtml:64 72 msgid "Splitter fine tuning" 73 msgstr "Тонкие настройки разбивщика" 74 75 #: ../templates/settings.phtml:70 76 msgid "Chars in line" 77 msgstr "Символов в строке" 78 79 #: ../templates/settings.phtml:71 80 msgid "line-height" 81 msgstr "" 82 83 #: ../templates/settings.phtml:72 84 msgid "margin-bottom" 85 msgstr "" 86 87 #: ../templates/settings.phtml:119 88 msgid "These settings are for real experts. Use on your own risk" 89 msgstr "Эти настройки требуют опыта. Используйте их на свой риск." 90 91 #: ../templates/settings.phtml:126 92 msgid "Save Changes" 93 msgstr "Сохранить изменения" 94 -
wp-auto-columns/trunk/readme.txt
r564020 r580792 5 5 Requires at least: 3.1.0 6 6 Tested up to: 3.3.1 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 9 9 Wrap block of text with shortcode. It will be split into columns. Automagically. … … 11 11 == Description == 12 12 13 I needed automated, tag-aware column splitter for one of my projects. So I have created one. 13 You need to display your articles in magazine or newspaper style. Use this plugin. You don't have 14 to change your theme files or add styles - just use "table" splitter. 14 15 15 16 = Features = 16 17 17 18 * fully automatic splitter; 19 * create columns in table or div's; 18 20 * tag-aware; 19 21 * splits long paragraphs and unordered lists; … … 58 60 == Changelog == 59 61 62 = 1.0.6 = 63 * Added parameter `style="table|div"` to define desired split style. 64 60 65 = 1.0.5 = 61 66 * Added processing of "height" attribute for IMG tags -
wp-auto-columns/trunk/templates/settings.phtml
r564020 r580792 11 11 <?php settings_fields('wp_auto_columns'); ?> 12 12 <table class="form-table"> 13 <tr valign="top"> 14 <th scope="row"><?php _e('Default split style', 'wp-auto-columns') ?></th> 15 <td> 16 <?php 17 $split_style = get_option('wp_auto_columns_split_style', 'div'); 18 $styles = array( 19 'div' => __('Div', 'wp-auto-columns'), 20 'table' => __('Table', 'wp-auto-columns'), 21 ); 22 ?> 23 <select name="wp_auto_columns_split_style"> 24 <?php foreach ($styles as $id => $name) : ?> 25 <option value="<?php echo $id ?>" <?php if ($id == $split_style) echo 'selected="selected"' ?>><?php echo $name ?></option> 26 <?php endforeach; ?> 27 </select> 28 </td> 29 </tr> 30 13 31 <tr valign="top"> 14 32 <th scope="row"><?php _e('Line height in pixels', 'wp-auto-columns') ?></th> -
wp-auto-columns/trunk/wp-auto-columns.php
r564020 r580792 7 7 Author: Spectraweb s.r.o. 8 8 Author URI: http://www.spectraweb.cz 9 Version: 1.0. 59 Version: 1.0.6 10 10 */ 11 11 … … 72 72 73 73 add_shortcode('auto_columns', array('WPAutoColumns', 'shortcode')); 74 add_shortcode('auto-columns', array('WPAutoColumns', 'shortcode')); 74 75 } 75 76 } … … 80 81 public static function on_admin_init() 81 82 { 83 register_setting('wp_auto_columns', 'wp_auto_columns_split_style'); 82 84 register_setting('wp_auto_columns', 'wp_auto_columns_line_height'); 83 85 … … 103 105 public static function shortcode($atts, $content = '') 104 106 { 105 extract(shortcode_atts(array('columns' => 2 ), $atts));107 extract(shortcode_atts(array('columns' => 2, 'style' => ''), $atts)); 106 108 107 109 $config = array( … … 124 126 } 125 127 128 if ($style == '') 129 { 130 $style = get_option('wp_auto_columns_split_style', 'div'); 131 } 132 133 126 134 // construct container 127 135 $class = array('auto-columns-container', 'columns-' . $columns); 128 $ret = '<div class="' . implode(' ', $class) . '">'; 136 137 $ret = ''; 138 139 if ($style == 'div') 140 { 141 $ret .= '<div class="' . implode(' ', $class) . '">'; 142 } 143 else if ($style == 'table') 144 { 145 $ret .= '<table class="' . implode(' ', $class) . '"><tbody><tr>'; 146 } 129 147 130 148 for ($i = 0; $i < count($col_array); $i++) … … 140 158 $class[] = 'last-column'; 141 159 } 160 142 161 // add column 143 $ret .= '<div class="' . implode(' ', $class) . '">'; 162 if ($style == 'div') 163 { 164 $ret .= '<div class="' . implode(' ', $class) . '">'; 165 } 166 else if ($style == 'table') 167 { 168 $ret .= '<td class="' . implode(' ', $class) . '">'; 169 } 170 171 // 144 172 foreach ($col_array[$i] as $tag) 145 173 { 146 174 $ret .= $tag; 147 175 } 176 177 if ($style == 'div') 178 { 179 $ret .= '</div>'; 180 } 181 else if ($style == 'table') 182 { 183 $ret .= '</td>'; 184 } 185 } 186 187 if ($style == 'div') 188 { 189 $ret .= '<div class="auto-columns-clear"></div>'; 148 190 $ret .= '</div>'; 149 191 } 150 151 $ret .= '<div class="auto-columns-clear"></div>'; 152 $ret .= '</div>'; 192 else if ($style == 'table') 193 { 194 $ret .= '</tr></tbody></table>'; 195 } 196 197 153 198 154 199 return $ret;
Note: See TracChangeset
for help on using the changeset viewer.