' . "\n"; echo '

Thank you very much for downloading MH Magazine lite - WordPress Theme! For support, general questions and more information please have a look at the:

' . "\n"; echo '' . "\n"; echo '

Upgrade: If you want your magazine to be fully responsive with a lot more features and options, you can purchase the premium version of MH Magazine. To stay up-to-date you can follow us on Facebook, Twitter and/or Google+.

' . "\n"; } function mh_dashboard_widgets() { global $wp_meta_boxes; add_meta_box('mh_info_widget', 'Theme Support: Get started!', 'mh_info_widget', 'dashboard', 'normal', 'high'); } add_action('wp_dashboard_setup', 'mh_dashboard_widgets'); /***** Custom Meta Boxes *****/ if (!function_exists('mh_add_meta_boxes')) { function mh_add_meta_boxes() { global $options; add_meta_box('mh_post_details', __('Post Options', 'mh'), 'mh_post_options', 'post', 'normal', 'high'); } } add_action('add_meta_boxes', 'mh_add_meta_boxes'); if (!function_exists('mh_post_options')) { function mh_post_options() { global $post; wp_nonce_field('mh_meta_box_nonce', 'meta_box_nonce'); echo '

'; echo ''; echo '
'; echo ''; echo '

'; } } if (!function_exists('mh_save_meta_boxes')) { function mh_save_meta_boxes($post_id, $post) { if (!isset($_POST['meta_box_nonce']) || !wp_verify_nonce($_POST['meta_box_nonce'], 'mh_meta_box_nonce')) { return $post->ID; } if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return $post->ID; } if ('page' == $_POST['post_type']) { if (!current_user_can('edit_page', $post_id)) { return $post->ID; } } elseif (!current_user_can('edit_post', $post_id)) { return $post->ID; } if ('post' == $_POST['post_type']) { $meta_data['mh-subheading'] = esc_attr($_POST['mh-subheading']); } foreach ($meta_data as $key => $value) { if ($post->post_type == 'revision') return; $value = implode(',', (array)$value); if (get_post_meta($post->ID, $key, FALSE)) { update_post_meta($post->ID, $key, $value); } else { add_post_meta($post->ID, $key, $value); } if (!$value) delete_post_meta($post->ID, $key); } } } add_action('save_post', 'mh_save_meta_boxes', 10, 2 ); ?>