Description
Implement "oik_add_shortcodes" for oik-bob-bing-wideNote: 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
- It contains functions needed by some of these shortcodes
- oik_version() currently only works in wp-admin
Usage
oik_bob_bing_wide_init();Parameters
Returns
voidSource
File name: oik-bob-bing-wide/oik-bob-bing-wide.phpLines:
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
API Letters:
