Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // Check for platforms
- if ( genesis_get_custom_field( '_cmb_additional_platforms_available' ) ) {
- $platforms = get_post_custom_values('_cmb_additional_platforms_available', false); // Get available platforms
- $result = array_reverse($platforms); // Reverse the array
- foreach ( $result as $platform => $pname ) {
- if ( $pname == 'windows' ) { echo '<img src="' . CHILD_URL . '/images/windows.png" height="24" width="24" alt="Windows" title="Windows" class="platform-ico">'; }
- if ( $pname == 'bsd' ) { echo '<img src="' . CHILD_URL . '/images/bsd.png" height="24" width="24" alt="BSD" title="BSD" class="platform-ico">'; }
- if ( $pname == 'mac' ) { echo '<img src="' . CHILD_URL . '/images/mac.png" height="24" width="24" alt="Mac" title="Mac" class="platform-ico">'; }
- if ( $pname == 'linux' ) { echo '<img src="' . CHILD_URL . '/images/linux.png" height="24" width="24" alt="Linux" title="Linux" class="platform-ico">'; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement