?> </h2> <?php echo JM_TC_Tabs::admin_tabs(); ?> <?php /** * Fields for admin page multi-options * @return array */ function jm_tc_multi_author_options() { $plugin_options = array('id' => 'jm_tc', 'show_on' => array('key' => 'options-page', 'value' => array('jm_tc_multi_author')), 'show_names' => true, 'fields' => array(array('name' => __('Add a field in profiles for author', JM_TC_TEXTDOMAIN), 'desc' => __('This would add a field in profiles if user can publish posts. In this case his Twitter username will be set as meta creator.', JM_TC_TEXTDOMAIN), 'id' => 'twitterProfile', 'type' => 'select', 'options' => array('no' => __('No', JM_TC_TEXTDOMAIN), 'yes' => __('Yes', JM_TC_TEXTDOMAIN))), array('name' => __('Meta key Twitter', JM_TC_TEXTDOMAIN), 'desc' => __('If the above option is set to "no", just modify user meta key associated with Twitter Account in profiles to get Twitter usernames from your own fields:', JM_TC_TEXTDOMAIN), 'id' => 'twitterUsernameKey', 'type' => 'text_medium'))); return $plugin_options; } ?> <?php cmb_metabox_form(jm_tc_multi_author_options(), JM_TC_Admin::key()); ?> <div class="doc-valid"> <?php echo JM_TC_Admin::docu_links(0); ?> </div> </div>
?> </h2> <?php echo JM_TC_Tabs::admin_tabs(); ?> <?php /** * Fields for admin page robots * @return array */ function jm_tc_robots_options() { $plugin_options = array('id' => 'jm_tc', 'show_on' => array('key' => 'options-page', 'value' => array('jm_tc_robots')), 'show_names' => true, 'fields' => array(array('name' => __('Twitter\'s bot', JM_TC_TEXTDOMAIN), 'desc' => __('Add required rules in robots.txt', JM_TC_TEXTDOMAIN), 'id' => 'twitterCardRobotsTxt', 'type' => 'select', 'options' => array('yes' => __('Yes', JM_TC_TEXTDOMAIN), 'no' => __('No', JM_TC_TEXTDOMAIN))))); return $plugin_options; } ?> <?php cmb_metabox_form(jm_tc_robots_options(), JM_TC_Admin::key()); ?> <div class="doc-valid"> <?php echo JM_TC_Admin::docu_links(7); ?> </div> </div>
?> </h2> <?php echo JM_TC_Tabs::admin_tabs(); ?> <?php /** * Fields for admin page home (page for posts/front page) * @return array */ function jm_tc_home_options() { $plugin_options = array('id' => 'jm_tc', 'show_on' => array('key' => 'options-page', 'value' => array('jm_tc_home')), 'show_names' => true, 'fields' => array(array('name' => __('Home meta desc', JM_TC_TEXTDOMAIN), 'desc' => __('Enter desc for Posts Page (max: 200 characters)', JM_TC_TEXTDOMAIN), 'id' => 'twitterPostPageDesc', 'type' => 'textarea_small'))); return $plugin_options; } ?> <?php cmb_metabox_form(jm_tc_home_options(), JM_TC_Admin::key()); ?> <div class="doc-valid"> <?php echo JM_TC_Admin::docu_links(2); ?> </div> </div>
?> </h2> <?php echo JM_TC_Tabs::admin_tabs(); ?> <?php /** * Fields for admin page deep linking * @return array */ function jm_tc_deep_linking_options() { $plugin_options = array('id' => 'jm_tc', 'show_on' => array('key' => 'options-page', 'value' => array('jm_tc_deep_linking')), 'show_names' => true, 'fields' => array(array('name' => __('Deep linking? ', JM_TC_TEXTDOMAIN), 'desc' => __('For all the following fields, if you do not want to use leave it blank but be careful with the required markup for your app. Read the documentation please.', JM_TC_TEXTDOMAIN), 'id' => 'deep_linking_title', 'type' => 'title'), array('name' => __('iPhone Name', JM_TC_TEXTDOMAIN), 'desc' => __('Enter iPhone Name ', JM_TC_TEXTDOMAIN), 'id' => 'twitteriPhoneName', 'type' => 'text_medium'), array('name' => __(' iPhone URL', JM_TC_TEXTDOMAIN), 'desc' => __('Enter iPhone URL ', JM_TC_TEXTDOMAIN), 'id' => 'twitteriPhoneUrl', 'type' => 'text_medium'), array('name' => __('iPhone ID', JM_TC_TEXTDOMAIN), 'desc' => __('Enter iPhone ID ', JM_TC_TEXTDOMAIN), 'id' => 'twitteriPhoneId', 'type' => 'text_medium'), array('name' => __('iPad Name', JM_TC_TEXTDOMAIN), 'desc' => __('Enter iPad Name ', JM_TC_TEXTDOMAIN), 'id' => 'twitteriPadName', 'type' => 'text_medium'), array('name' => __('iPad URL', JM_TC_TEXTDOMAIN), 'desc' => __('Enter iPad URL ', JM_TC_TEXTDOMAIN), 'id' => 'twitteriPadUrl', 'type' => 'text_medium'), array('name' => __('iPad ID', JM_TC_TEXTDOMAIN), 'desc' => __('Enter iPad ID ', JM_TC_TEXTDOMAIN), 'id' => 'twitteriPadId', 'type' => 'text_medium'), array('name' => __('Google Play Name', JM_TC_TEXTDOMAIN), 'desc' => __('Enter Google Play Name ', JM_TC_TEXTDOMAIN), 'id' => 'twitterGooglePlayName', 'type' => 'text_medium'), array('name' => __('Google Play URL', JM_TC_TEXTDOMAIN), 'desc' => __('Enter Google Play URL ', JM_TC_TEXTDOMAIN), 'id' => 'twitterGooglePlayUrl', 'type' => 'text_medium'), array('name' => __('Google Play ID', JM_TC_TEXTDOMAIN), 'desc' => __('Enter Google Play ID ', JM_TC_TEXTDOMAIN), 'id' => 'twitterGooglePlayId', 'type' => 'text_medium'), array('name' => __('App Country code', JM_TC_TEXTDOMAIN), 'desc' => __('Enter 2 letter App Country code in case your app is not available in the US app store', JM_TC_TEXTDOMAIN), 'id' => 'twitterAppCountry', 'type' => 'text_medium'))); return $plugin_options; } ?> <?php cmb_metabox_form(jm_tc_deep_linking_options(), JM_TC_Admin::key()); ?> <div class="doc-valid"> <?php echo JM_TC_Admin::docu_links(5); ?> </div> </div>