Description
Create a link to download the latest theme version
Usage
_oikth_download_version( $version, $post, $class, $slug );Parameters
- $version
- ( mixed ) required –
- $post
- ( mixed ) required –
- $class
- ( mixed ) required –
- $slug
- ( mixed ) required –
Returns
voidSource
File name: oik-themes/shortcodes/oik-themes.phpLines:
1 to 29 of 29
function _oikth_download_version( $version, $post, $class, $slug ) { if ( $version->post_type == "oik_premiumversion" ) { _oikth_purchase_premiumversion( $version, $post, $class ); } else { $theme_type = get_post_meta( $post->ID, "_oikth_type", true ); bw_trace2( $theme_type, "theme_type" ); switch ( $theme_type ) { case 0: // No theme type specified - do not create a download link break; case 1: _oikth_download_wordpressversion( $post, $slug ); break; case 2: _oikth_download_freeversion( $version, $post, $class ); break; case 6: _oikth_download_wordpressversion( $post, $slug ); br(); _oikth_download_freeversion( $version, $post, $class ); break; default: // Do nothing for premium or other versions } } }View on GitHub
Called by
1 to 1 of 1
Invoked by
Calls
1 to 4 of 4
- br() – Produce a break tag with optional text to follow
- _oikth_download_freeversion() – Create a link to download the FREE version
- _oikth_download_wordpressversion() – Create a link to download the WordPress theme Note: For the download to actually work this now requires the theme version, which we may not have.
- _oikth_purchase_premiumversion() –
Call hooks
API Letters:
