Description
Load the theme by $slugLoad the theme given the main theme's folder name e.g. for the original version of oik we load the oik theme even when the theme name is oik/oik-bbpress.php
Usage
$post|null = oikth_load_theme( $slug );Parameters
- $slug
- ( string ) required – the theme slug = folder
Returns
post|nullSource
File name: oik-themes/feed/oik-themes-feed.phpLines:
1 to 15 of 15
function oikth_load_theme( $slug ) { oik_require( "includes/bw_posts.php" ); $atts = array(); $atts['post_type'] = "oik-themes"; // $atts['name'] = $slug; $atts['meta_key'] = '_oikth_slug'; $atts['meta_value'] = $slug; $atts['numberposts'] = 1; $atts['exclude'] = -1; $posts = bw_get_posts( $atts ); $post = bw_array_get( $posts, 0, null ); bw_trace2( $post ); return( $post ); }View on GitHub
Called by
1 to 4 of 4
- oiksc_load_component() – Load the post for the selected plugin/theme
- oikth_download() – Provide a download button for the zip attachment to this content or a selected theme ( theme="oik-fum" )
- oikth_theme_information() – https://spreadsheets.google.com/pub?key=0AqP80E74YcUWdEdETXZLcXhjd2w0cHMwX2U1eDlWTHc&authkey=CK7h9toK&hl=en&single=true&gid=0&output=html
- oikth_update_check() –
Invoked by
Call hooks
API Letters:
