function mm_facebook_connection_settings_section($args) { ?> <table class="form-table"> <tbody> <tr> <th colspan="2"> <label>Procedure:</label> <p class="description">1 - Create a Facebook Application here <a href="https://developers.facebook.com/apps/" target="_blank">https://developers.facebook.com/apps/</a>.</p> <p class="description">2 - Clicking on advanced setup in the bottom and then choose App name and Category.</p> <p class="description">3 - Go to Settings and click on Add Platform, choose Website and fill the field with this: <?php echo mm_github_connection_get_current_domain(); ?> </p> <p class="description">4 - Fill the Contact Email field and save de changes.</p> <p class="description">5 - Go to Status and Review and make it live.</p> <p class="description">6 - Take the App ID and App Secret from your recent created App, and complete the fields below..</p> </td> </tr> <?php do_settings_fields('mm_facebook_connection_settings_section', 'default'); ?> </tbody> </table> <?php }
function mm_github_connection_get_current_url() { return mm_github_connection_get_current_domain() . $_SERVER["PHP_SELF"]; }