[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

oik_bob_bing_wide_init() – Implement "oik_add_shortcodes" for oik-bob-bing-wide

Description

Implement "oik_add_shortcodes" for oik-bob-bing-wide

Note: as of version 2.1-alpha.1108 bwlink.css is no longer included in the oik base plugin. It's been moved to this plugin and has been stripped right down anyway; since people didn't like the CSS styling. The original styling is commented out. Only the styling for "bobbing wide" as a logo remains. In order to include it you can add it to your oik custom CSS file. If the oik_version is less than 2.2-alpha we load oik's shortcodes functions to prevent attempted redeclaration of functions. In fact, we have to load it for all versions since

  1. It contains functions needed by some of these shortcodes
  2. oik_version() currently only works in wp-admin
Note: But if that's the case then we won't even register our shortcodes so it doesn't matter once the new code for each version is correct. So this is definitely belt and braces code.

Usage

oik_bob_bing_wide_init();

Parameters

Returns

void

Source

File name: oik-bob-bing-wide/oik-bob-bing-wide.php
Lines:
1 to 61 of 61
function oik_bob_bing_wide_init() {
  // wp_enqueue_style( 'bwlinkCSS', WP_PLUGIN_URL . '/oik/bwlink.css', 'oikCSS' );
  //if ( version_compare( oik_version(), "2.2-alpha.0403", "<" ) ) {
  //oik_require( "shortcodes/oik-bob-bing-wide.php" );
  //  define( "OIK_WP_LOADED",  true );
  //}
  oik_require_lib( 'class-BW-');
 // Note: The bw_oik() & bw_oik_long() functions are actually delivered from oik's includes/bobbcomp.php
 // If includes/bobbcomp.php exists we reckon shortcodes/oik-bob-bing-wide.php will do too.
  $bobbcomp_file = oik_path( 'includes/bobbcomp.php' );
  if ( file_exists( $bobbcomp_file ) ) {
    bw_add_shortcode( 'oik', 'bw_oik', $bobbcomp_file, true );
    bw_add_shortcode( 'loik', 'bw_loik', oik_path( "shortcodes/oik-bob-bing-wide.php" ), false ); // Link to the plugin
    bw_add_shortcode( 'OIK', 'bw_oik_long', $bobbcomp_file, true ); // Spells out OIK Information kit
    bw_add_shortcode( 'lbw', 'bw_lbw', oik_path( "shortcodes/oik-bob-bing-wide.php" ), false ); // Link to Bobbing Wide or other websites
  }

  bw_add_shortcode( 'bw_page', 'bw_page', oik_path("shortcodes/oik-post-page.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( 'bw_post', 'bw_post', oik_path("shortcodes/oik-post-page.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( 'bw_plug', 'bw_plug', oik_path("shortcodes/oik-plug.php", "oik-bob-bing-wide" ), false );

  // Dropped support for bw_module as it didn't work anyway
  //bw_add_shortcode( 'bw_module',  'bw_module', oik_path("shortcodes/oik-bob-bing-wide.php"), false );

  bw_add_shortcode( 'bp', 'bw_bp', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true );   // BuddyPress
  bw_add_shortcode( 'lwp', 'bw_lwp', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), false ); // Link to WordPress.org
  bw_add_shortcode( 'lbp', 'bw_lbp', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), false ); // Link to BuddyPress.org
  bw_add_shortcode( 'wpms', 'bw_wpms', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true );   // WordPress Multisite
  bw_add_shortcode( 'lwpms', 'bw_lwpms', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), false ); // Link to WordPress multisite - .org
  bw_add_shortcode( 'drupal', 'bw_drupal', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true );   // Drupal
  bw_add_shortcode( 'ldrupal', 'bw_ldrupal', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), false ); // Link to Drupal.org
  bw_add_shortcode( 'artisteer', 'bw_art', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true ); // Artisteer
  bw_add_shortcode( 'lartisteer', 'bw_lart', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), false ); // Link to artisteer.com
  // This is just a bit of code to help determine if a fix to shortcodes (ticket #17657) has been implemented or not
  // whether or not a shortcode containing hyphen(s) is handled depends on when it's registered.
  // if it's registered before the shortcode that is the same as the prefix before the '-' it's OK
  // it it's registed after, then the shorter shortcode will take precedence
  // 2012/11/25 - Ticket has been fixed so no need to include these dummy shortcodes any more, just [wp]
  //bw_add_shortcode( 'wp-1', 'wp1', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true);
  //bw_add_shortcode( 'wp-2', 'wp2', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true);
  bw_add_shortcode( 'wp', 'bw_wp', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true );   // WordPress
  //bw_add_shortcode( 'wp-3', 'wp3', oik_path("shortcodes/oik-wp.php", "oik-bob-bing-wide"), true);
  bw_add_shortcode( "bw_csv", "bw_csv", oik_path( "shortcodes/oik-csv.php", "oik-bob-bing-wide" ), false );
  // Decided to put bw_related in oik-fields as it deals with noderef which are oik base/oik-fields related
  //bw_add_shortcode( "bw_related", "bw_related", oik_path( "shortcodes/oik-related.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( "bw_search", "bw_search", oik_path( "shortcodes/oik-search.php", "oik-bob-bing-wide" ), true );
  // bw_navi added briefly before put into the oik base plugin as there were other changes required to the base.
  bw_add_shortcode( "bw_dash", "bw_dash", oik_path( "shortcodes/oik-dash.php", "oik-bob-bing-wide" ), true );
  bw_add_shortcode( "bw_action", "bw_action", oik_path( "shortcodes/oik-action.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( "bw_rpt", "bw_rpt", oik_path( "shortcodes/oik-pricing-table.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( "bw_graphviz", "bw_graphviz", oik_path( "shortcodes/oik-graphviz.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( "bw_crumbs", "bw_crumbs", oik_path( "shortcodes/oik-crumbs.php", "oik-bob-bing-wide"), false );
  bw_add_shortcode( "bw_option", "bw_option", oik_path( "shortcodes/oik-option.php", "oik-bob-bing-wide"), false );
  bw_add_shortcode( "bw_text", "bw_text", oik_path( "shortcodes/oik-text.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( "github", "bw_github", oik_path( "shortcodes/oik-github.php", "oik-bob-bing-wide" ), false );
  bw_add_shortcode( "bw_archive", "bw_archive", oik_path( "shortcodes/oik-archive.php", "oik-bob-bing-wide" ), false );



  add_filter( "_sc__help", oik_bob_bing_wide_sc__help, 10, 2 );
}
 
 View on GitHub

Called by

    Invoked by

      Calls

        Call hooks

        Function name: oik_bob_bing_wide_init
        Plugin ref: oik-bob-bing-wide – more blocks and lazy smart shortcodes
        Version: 2.3.0
        Sourcefile: oik-bob-bing-wide.php
        File ref: oik-bob-bing-wide.php
        API type: for
        Deprecated?: No
        API Letters:

        Published: March 5, 2013 | Last updated: September 14, 2015

        Information

        Function name: oik_bob_bing_wide_init
        Plugin ref: oik-bob-bing-wide – more blocks and lazy smart shortcodes
        Version: 2.3.0
        Sourcefile: oik-bob-bing-wide.php
        File ref: oik-bob-bing-wide.php
        API type: for
        Deprecated?: No
        API Letters:

        Recent plugin updates

        oik-weight-zone-shipping v0.2.13 oik-weight-zone-shipping v0.2.13 has been tested with WooCommerce 10.1.2 and WordPress 6.8.2 ...
        SB Children Block v1.3.0 Upgrade to SB Children Block v1.3.0 for support for PHP 8.3 and PHP 8.4  ...
        oik v4.15.3 Update to oik v4.15.3 for a couple of security fixes. Tested with WordPress 6.8.2 ...
        oik-privacy-policy v1.4.9 Update to oik-privacy-policy v1.4.9 for a security fix. Tested with WordPress 6.8.2 and PHP 8.3 and PHP 8.4 ...
        oik-nivo-slider v1.17.0 oik-nivo-slider v1.17.0 introduces the Nivo slider block - oik-nivo-slider/nivo. ...

        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: oikplug@oik-plugins.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-2025. All rights reserved.


        Website designed and developed by Herb Miller of Bobbing Wide
        Proudly powered by WordPress and oik-plugins

        WordPress version: 6.8.3

        Gutenberg version: 21.7.0

        PHP version: 8.2.29