Description
Usage
oikth_load_themeversion( $post );Parameters
- $post
- ( mixed ) required –
Returns
voidSource
File name: oik-themes/feed/oik-themes-feed.phpLines:
1 to 26 of 26
function oikth_load_themeversion( $post ) { oik_require( "includes/bw_posts.php" ); $post_types = array( 2 => "oik_themeversion" , 3 => "oik_themiumversion" ); $theme_type = get_post_meta( $post->ID, "_oikth_type", true ); bw_trace2( $theme_type, "theme_type" ); if ( $theme_type ) { $atts = array(); $atts['post_type'] = bw_array_get( $post_types, $theme_type, "oik_themeversion" ); $atts['meta_key'] = "_oiktv_theme"; $atts['meta_value'] = $post->ID; $atts['numberposts'] = 1; $atts['orderby'] = "post_date"; $atts['order'] = "desc"; $posts = bw_get_posts( $atts ); $version = bw_array_get( $posts, 0, null ); } else { //gobang(); // None - so we don't have a theme type - this is how the WordPress core is catalogued $version = null; } return( $version ); }View on GitHub
Called by
1 to 3 of 3
- 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:
