function mtd_list() { ?> <?php $response = mtd_update_settings($_POST); ?> <div class="wrap my-tickets" id="mt_donations"> <div id="icon-options-general" class="icon32"><br/></div> <h2><?php _e('Donations', 'my-tickets-donations'); ?> </h2> <div class="postbox-container jcd-wide"> <div class="metabox-holder"> <div class="ui-sortable meta-box-sortables"> <div class="postbox"> <h3><?php _e('Contributions made at Ticket Purchase', 'my-tickets-donations'); ?> </h3> <div class="inside"> <?php mtd_donations_list(); ?> </div> </div> </div> </div> <div class="metabox-holder"> <div class="ui-sortable meta-box-sortables"> <div class="postbox"> <h3><?php _e('Donations Settings', 'my-tickets-donations'); ?> </h3> <div class="inside"> <?php echo $response; ?> <form method="post" action="<?php echo admin_url("admin.php?page=my-tickets-donations"); ?> "> <div><input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('my-tickets-donations'); ?> "/></div> <p> <label for="mtd_cta"><?php _e('Donation label:', 'my-tickets-donations'); ?> </label> <input type="text" class="widefat" name="mtd_cta" id="mtd_cta" value="<?php esc_attr_e(stripslashes(get_option('mtd_cta'))); ?> " /> </p> <p><input type="submit" name="mtd-settings" class="button-primary" value="<?php _e('Save Settings', 'my-tickets-donations'); ?> " /></p> </form> </div> </div> </div> </div> </div> <?php mt_show_support_box(); ?> </div> <?php }
function mts_list() { ?> <?php $response = mts_update_settings($_POST); ?> <div class="wrap my-tickets" id="mt_sharing"> <div id="icon-options-general" class="icon32"><br/></div> <h2><?php _e('Social Sharing Options', 'my-tickets-sharing'); ?> </h2> <div class="postbox-container jcd-wide"> <div class="metabox-holder"> <div class="ui-sortable meta-box-sortables"> <div class="postbox"> <h3><?php _e('Social Sharing Settings', 'my-tickets-sharing'); ?> </h3> <div class="inside"> <?php echo $response; ?> <?php mts_settings_fields(); ?> </div> </div> </div> </div> </div> <?php mt_show_support_box(); ?> </div> <?php }