Linux 软件免费装
Banner图

Responsive Column Widgets

开发者 Michael Uno
miunosoft
更新时间 2018年6月10日 05:39
捐献地址: 去捐款
PHP版本: 3.3 及以上
WordPress版本: 4.9.6
版权: GPLv2 or later
版权网址: 版权信息

标签

widget sidebar responsive column grid layout magazine layout

下载

1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.4.1 1.0.4.2 1.0.4.3 1.0.4.4 1.0.4.5 1.0.4.6 1.0.4.7 1.0.4.8 1.0.4.9 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.7.1 1.0.8 1.0.8.1 1.0.8.2 1.0.8.3 1.0.8.4 1.0.8.5 1.0.8.6 1.0.8.7 1.0.9 1.1.0 1.1.1 1.1.1.1 1.1.1.2 1.1.10 1.1.11 1.1.12 1.1.2 1.1.2.1 1.1.3 1.1.4 1.1.4.1 1.1.4.2 1.1.4.3 1.1.5 1.1.5.1 1.1.5.2 1.1.5.3 1.1.5.4 1.1.5.5 1.1.5.6 1.1.6 1.1.7 1.1.7.1 1.1.7.2 1.1.7.3 1.1.7.4 1.1.7.5 1.1.8 1.1.8.1 1.1.8.2 1.1.8.3 1.1.8.4 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7

详情介绍:

Show Responsive Columns in Posts with Widgets Do you want to arrange widgets horizontally? If so, this plugin may be the solution for you. Add desired widgets to the custom sidebar the plugin creates and set up an auto-insert. If you are a developer and looking for an easy way to render some outputs in responsive columns, this plugin will be handy. Pass your arrays to the plugin filter. Then the plugin will take care of it for you. How It Works [youtube http://www.youtube.com/watch?v=vo36sW7W35Y] Steps Displays Widgets in Columns The plugin will let you display widgets horizontally with a grid system. This is the main feature of the plugin. Responsive Design for Mobile Visitors When the browser width changes, it automatically adjusts the layout. This is important for tablet and mobile visitors. Set Number of Columns per Row You can flexibly set the number of columns in each row. Set Number of Columns by Screen Width Flexibly set the number of columns by browser width. In other words, you can control the number of columns for particular screen widths. Show Responsive Columns Everywhere Auto-insert Take advantage of the Auto-insert feature which automatically inserts the defined widget box to your desired location. You don't have to use the shortcode. PHP code and Shortcode Use PHP code in the theme template or the shortcode in posts. Default Sidebars Integration Sidebars defined by your theme also can be displayed in columns. Create Complex Columns Achieve more advanced complex design by taking advantage of the options that the plugin provides. Nesting Sidebars This is widgets in widget functionality. With the widget that the plugin provides, the whole sidebar contents can be embedded as a widget item into another sidebar. Column Span Column spans are configurable so that you can set wider widget areas. For Developers Custom Array If you can code, you can pass an array to the plugin's filter so that your array contents can be rendered in multiple columns instead of widgets. See more.

屏幕截图:

  • ***Adding Widgets***
  • ***Three-Two-Five Columns Combination Example***
  • ***Four Column Example***
  • ***Responsiveness***
  • ***Example of the columns Parameter by Screen Width***
  • ***Column Spans***
  • ***Sidebar Encapsulation***

其他记录:

Basic Three Steps
  1. Go to Appearance > Widgets. You'll see a new custom sidebar box named Responsive Custom Widgets.
  2. Add widgets to it.
  3. To display the added widgets in a post, there are mainly two different means.
  4. Option A: add the shortcode in the post.
[responsive_column_widgets] Specify Different Number of Columns in Each Row By default, the widgets are displayed in 3 columns. It can be changed by setting the columns parameter. [responsive_column_widgets columns="4"] will display the widgets in 4 columns. Optionally, if you like to change the number of columns in each row, use sequential numbers separated by commas. For instance, [responsive_column_widgets columns="3,2,5"] will show the widgets in 3 columns in the first row, 2 columns in the second, and 5 to the third. Change the numbers accordingly for your needs. To set the number of columns for each screen max-width, use the pipe (|) character as the delimiter and place the width in pixel followed by a colon (:). Omit the width for no limitation. For instance, [responsive_column_widgets columns="5 | 800: 4 | 600 : 2 | 480: 1"] will show the widgets in 5 columns when the browser widths is greater than 800, and 4 when the browser width is 800 to 601, and 2 when the browser width is 600 to 481, and 1 when the browser width is less than or equal to 480. Use PHP code for Themes The widget box can be displayed outside post/pages. Putting a PHP code into the theme is one way of doing it. Use the ResponsiveColumnWidgets() function. For instance, <?php if ( function_exists( 'ResponsiveColumnWidgets' ) ) ResponsiveColumnWidgets( array( 'columns' => 5 ) ); ?> will display the widgets in 5 columns. = 参数 =\ There are other parameters besides columns. Format: column value | pixel: column value | pixel: column value | ... The following example displays widgets in 5 column when the browser width is greater than 800, and four when the width is 601 to 800, and three when the width is 481 to 600, and one when the width is 1 to 480. 5 | 800: 4 | 600: 3 |480: 1 Format: widget index - column span, widget index - column span, widget index - column span, ... The following parameter value of colspans will set the first widget with 3 column space and the fourth widget with two column space and the seventh takes four column space. Unspecified widget items will have one column span. 1-3, 4-2, 7-4 To set them by screen max-width, like the columns parameter, use the colon(:) character after the width in pixel, and use the pipe (|) character to delimit each set of column spans. If the pixel is omitted, it is considered no limit. These widths need to correspond to the value passed to the columns parameter. e.g. 1-3, 4-2, 7-4 | 600: 1-2, 3-2, 7-3 | 480: 1-2 If the column span exceeds the set number of max column, the column span will follow the max column. Note that the widget index of omitted widgets will not be considered(counted) in the widget index of this parameter. Render Custom Array in Multiple Columns If you are a developer, you can render array contents that hold string values in multiple columns with responsive design. Let's take a look at an example. First, insert this shortcode in a post or a page. [responsive_column_widgets call_id="days" columns="7"] The value for the call_id parameter can be any string that identifies the call. Now we need to hook into the RCW_filter_widget_output_array filter so that we can intervene the process of plugin's rendering widgets. It accepts two parameters. The first one will be the output array and the second one is the parameter array. In the callback function for the filter, we check if the parameter call_id holds the correct value. You should change the value to suite your needs, which should be unique and not conflict with others. ` add_filter( 'RCW_filter_widget_output_array', 'RCW_CustomArrayOutput', 10, 2 ); function RCW_CustomArrayOutput( $aOutput, $aParams ) { if ( ! isset( $aParams['call_id'] ) ) { return $aOutput; } if ( 'days' === $aParams['call_id'] ) { return array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ); } return $aOutput; } ` This will display the days in 7 columns. The plugin will generate the CSS rules based on the parameter values. And the rules will be inserted inside the body tag. If you like to insert the style in the head tag, use the ResponsiveColumnWidgets_EnqueueStyle function. Tell the function that which parameters are going to be used. add_filter( 'wp_loaded', 'RCW_CustomArrayAddStyle' ); function RCW_CustomArrayAddStyle() { if ( function_exists( 'ResponsiveColumnWidgets_EnqueueStyle' ) ) { ResponsiveColumnWidgets_EnqueueStyle( array( 'columns' => "7" ) ); } } Note that 'call_id' => 'days' can be omitted. The other parameters should not be omitted. For cases that the shortcode is not used, you can use the ResponsiveColumnWidets() function. $aYourArray = array( 'a', 'b', 'c', 'd' ); if ( function_exists( 'ResponsiveColumnWidets' ) ) { ResponsiveColumnWidets( array( 'columns' => 4 ), $aYourArray ); } This will output a, b, c, d in four columns. Video Tutorials http://en.michaeluno.jp/responsive-column-widgets/tutorials/

常见问题:

How do I get started?

Go to Appearance > Widgets and add widgets to the plugin's custom sidebar box. Then use the shortcode in a post. That's it. If you still cannot figure it out, take the screenshots of the wp-admin/widgets.php page and the page of the post you added the shortcode. And request a support with the screenshots.

How do I customize the style?

You can add your rules to the classes named .responsive_column_widget_box .widget. Go to the widget box's edit page and enter your custom rules in the Custom CSS section or define it in your theme's style.css. e.g. .responsive_column_widget_box .widget { padding: 4px; line-height: 1.5em; background-color: #EEE; }

Are there video instructions?

Yes. Hope this helps.

Is it possible to create multiple widget boxes?

Yes, with Pro.

It seems the plugin conflicts with my theme. Can you help?

It happens occasionally. Please ask for support with a link to your live site and the screenshots. In most cases, it can be solved by adjusting CSS rules causing the conflicts.

Up to how many columns can I create

You can set up to 12 columns.

I have a feature request. Would you listen?

Sure. Please post it in the forum or the comment section of the plugin page.

更新日志:

1.2.7 - 06/10/2018 1.2.6 - 12/16/2016 1.2.5 - 12/22/2015 1.2.4 - 11/29/2015 1.2.3 - 05/06/2015 1.2.2 - 04/25/2015 1.2.1 - 03/09/2015 1.2.0 - 01/14/2015 1.1.12 - 10/13/2014 1.1.11 - 04/22/2014 1.1.10 - 04/19/2014 1.1.9 - 02/21/2014 1.1.8.4 - 01/08/2013 1.1.8.3 - 10/01/2013 1.1.8.2 - 09/14/2013 1.1.8.1 - 09/09/2013 1.1.8 - 09/05/2013 1.1.7.5 - 08/18/2013 1.1.7.4 - 08/17/2013 1.1.7.3 - 08/06/2013 1.1.7.2 - 08/01/2013 1.1.7.1 - 07/30/2013 1.1.7 - 07/30/2013 1.1.6 - 06/29/2013 1.1.5.6 - 06/27/2013 1.1.5.5 - 06/26/2013 1.1.5.4 - 06/25/2013 1.1.5.3 - 06/25/2013 1.1.5.2 - 06/23/2013 1.1.5.1 - 06/16/2013 1.1.5 - 06/14/2013 1.1.4.3 - 06/03/2013 1.1.4.2 - 05/18/2013 1.1.4.1 - 05/17/2013 1.1.4 - 05/13/2013 1.1.3 - 05/10/2013 1.1.2.1 - 04/29/2013 1.1.2 - 04/27/2013 1.1.1.2 - 04/23/2013 1.1.1.1 - 04/22/2013 1.1.1 - 04/21/2013 1.1.0 - 04/14/2013 1.0.9 - 04/07/2013 1.0.8.7 - 04/05/2013 1.0.8.6 - 04/04/2013 1.0.8.5 - 04/01/2013 1.0.8.4 - 03/25/2013 1.0.8.3 - 03/24/2013 1.0.8.2 - 03/23/2013 1.0.8.1 - 03/21/2013 1.0.8 - 03/20/2013 1.0.7.1 - 03/19/2013 1.0.7 - 03/18/2013 1.0.6.1 - 03/13/2013 1.0.6 - 03/11/2013 1.0.5 - 03/09/2013 1.0.4.9 - 03/04/2013 1.0.4.8 - 03/04/2013 1.0.4.7 - 03/04/2013 1.0.4.6 - 03/04/2013 1.0.4.5 - 03/04/2013 1.0.4.4 - 03/03/2013 1.0.4.3 - 03/03/2013 1.0.4.2 - 03/03/2013 1.0.4.1 - 03/03/2013 1.0.4 - 03/03/2013 1.0.3 - 02/28/2013 1.0.2 - 02/23/2013 1.0.1 1.0.0