[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

bw_accordion() – Display pages styled for jQuery accordion

You appear to be a bot. Output may be restricted

Description

Display pages using modern accordion methods.

Uses detail and summary tags. No jQuery

Usage

bw_accordion( $atts, $content, $tag );

Parameters

$atts
( mixed ) optional –
$content
( mixed ) optional –
$tag
( mixed ) optional –

Returns

void

Source

File name: oik/shortcodes/oik-accordion.php
Lines:
1 to 24 of 24
function bw_accordion( $atts=null, $content=null, $tag=null ) {
    oik_require( "includes/bw_posts.php" );
    $posts = bw_get_posts( $atts );
    if ( $posts ) {
        //oik_require( "shortcodes/oik-jquery.php" );
        $debug = bw_array_get( $atts, "debug", false );
        //bw_jquery_enqueue_script( "jquery-ui-accordion", $debug );
        //bw_jquery_enqueue_style( "jquery-ui-accordion" );
        $selector = bw_accordion_id();
        //bw_jquery( "#$selector", "accordion" );
        $class = bw_array_get( $atts, "class", "bw_accordion" );
        sdiv( $class, $selector );

        $cp = bw_current_post_id();
        foreach ( $posts as $post ) {
            bw_current_post_id( $post->ID );
            bw_format_accordion( $post, $atts );
        }
        ediv( $class );
        bw_current_post_id( $cp );
        bw_clear_processed_posts();
    }
    return( bw_ret() );
}
 
 View on GitHub View on Trac

Published: February 2, 2018 | Last updated: February 2, 2018

Information

Function name: bw_accordion
Plugin ref: oik – oik information kit
Version: 4.10.0
Sourcefile: shortcodes/oik-accordion.php
File ref: shortcodes/oik-accordion.php
API type: shortcode
Deprecated?: No
API Letters: A,B

Recent plugin updates

sb-post-edit-block v0.3.2 Update to sb-post-edit-block v0.3.2 for support for PHP 8.1, 8.2 and 8.3 ...
oik-user v0.9.0 Update to oik-user v0.9.0 for support for PHP 8.1, PHP 8.2 and PHP 8.3  ...
oik-weight-zone-shipping v0.2.11 Update to oik-weight-zone-shipping v0.2.11 for WooCommerce High-Performance order storage compatibility ...
sb-breadcrumbs-block v0.6.1 Update to sb-breadcrumbs-block v0.6.1 for support for PHP 8.1 and PHP 8.2 ...
slog v1.5.1 Update to slog v1.5.1 for support for PHP 8.1 and PHP 8.2 ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: herb@bobbingwide.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2023. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 6.4.1. PHP: 7.4.33. Memory limit: 768M