/** * Options Page * * Renders the options page contents. * * @since 1.0 * @global $quads_options Array of all the QUADS Options * @return void */ function quads_options_page() { global $quads_options; $active_tab = isset($_GET['tab']) && array_key_exists($_GET['tab'], quads_get_settings_tabs()) ? $_GET['tab'] : 'general'; ob_start(); ?> <div class="wrap quads_admin"> <h1 style="text-align:center;"> <?php echo __('WP <strong>QUADS</strong> (Quick AdSense Reloaded) ', 'quick-adsense-reloaded') . QUADS_VERSION; ?> </h1> <div class="about-text" style="font-weight: 400;line-height: 1.6em;text-align:center;"> <div class='quads-share-button-container'> <div class='quads-share-button quads-share-button-twitter' data-share-url="https://wordpress.org/plugins/quick-adsense-reloaded"> <div clas='box'> <a href="https://twitter.com/share?url=https://wordpress.org/plugins/quick-adsense-reloaded&text=Quick%20AdSense%20reloaded%20-%20a%20brand%20new%20fork%20of%20the%20popular%20AdSense%20Plugin%20Quick%20Adsense!" target='_blank'> <span class='quads-share'><?php echo __('Tweet', 'quick-adsense-reloaded'); ?> </span> </a> </div> </div> <div class="quads-share-button quads-share-button-facebook" data-share-url="https://wordpress.org/plugins/quick-adsense-reloaded"> <div class="box"> <a href="https://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/quick-adsense-reloaded" target="_blank"> <span class='quads-share'><?php echo __('Share', 'quick-adsense-reloaded'); ?> </span> </a> </div> </div> </div> <h2 class="nav-tab-wrapper"> <?php foreach (quads_get_settings_tabs() as $tab_id => $tab_name) { $tab_url = esc_url(add_query_arg(array('settings-updated' => false, 'tab' => $tab_id))); $active = $active_tab == $tab_id ? ' nav-tab-active' : ''; echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">'; echo esc_html($tab_name); echo '</a>'; } ?> </h2> <div id="quads_tab_container" class="quads_tab_container"> <?php quads_get_tab_header('quads_settings_' . $active_tab, 'quads_settings_' . $active_tab); ?> <div class="quads-panel-container"> <!-- new //--> <form method="post" action="options.php"> <?php settings_fields('quads_settings'); quads_do_settings_fields('quads_settings_' . $active_tab, 'quads_settings_' . $active_tab); ?> <!--</table>--> <?php settings_errors(); ?> <?php // do not show save button on add-on page if ($active_tab !== 'addons') { submit_button(); } ?> </form> <?php echo sprintf(__('This plugin is 100%% free. Please do us a BIG favor and give us a 5 star rating <a href="%1$s" target="_blank">here</a> . If you`re not happy, please get in touch with us at support@clickfraud-monitoring.com, so that we can sort it out. Thank you!', 'quick-adsense-reloaded'), 'http://wordpress.org/support/view/plugin-reviews/quick-adsense-reloaded'); ?> </div> <!-- new //--> <div class="quads-panel-sidebar" style="float:left;min-width: 100px;margin-left: 1px;margin-top:0px;"> <a href="http://demo.clickfraud-monitoring.com/?utm_source=wpquads&utm_medium=banner&utm_term=click&utm_campaign=wpquads" target="_blank"> <img src="<?php echo QUADS_PLUGIN_URL . '/assets/images/banner_250x400.png'; ?> "> </a></div> </div><!-- #tab_container--> </div><!-- .wrap --> <?php echo ob_get_clean(); }
/** * Options Page * * Renders the options page contents. * * @since 1.0 * @global $quads_options Array of all the QUADS Options * @return void */ function quads_options_page() { global $quads_options; $active_tab = isset($_GET['tab']) && array_key_exists($_GET['tab'], quads_get_settings_tabs()) ? $_GET['tab'] : 'general'; ob_start(); ?> <div class="wrap quads_admin"> <h1 style="text-align:center;"> <?php echo __('WP <strong>QUADS</strong> (Quick AdSense Reloaded) ', 'quick-adsense-reloaded') . QUADS_VERSION; ?> </h1> <div class="about-text" style="font-weight: 400;line-height: 1.6em;text-align:center;"> <div class='quads-share-button-container'> <div class='quads-share-button quads-share-button-twitter' data-share-url="https://wordpress.org/plugins/quick-adsense-reloaded"> <div clas='box'> <a href="https://twitter.com/share?url=https://wordpress.org/plugins/quick-adsense-reloaded&text=Quick%20AdSense%20reloaded%20-%20a%20brand%20new%20fork%20of%20the%20popular%20AdSense%20Plugin%20Quick%20Adsense!" target='_blank'> <span class='quads-share'><?php echo __('Tweet', 'quick-adsense-reloaded'); ?> </span> </a> </div> </div> <div class="quads-share-button quads-share-button-facebook" data-share-url="https://wordpress.org/plugins/quick-adsense-reloaded"> <div class="box"> <a href="https://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/quick-adsense-reloaded" target="_blank"> <span class='quads-share'><?php echo __('Share', 'quick-adsense-reloaded'); ?> </span> </a> </div> </div> </div> <h2 class="nav-tab-wrapper"> <?php foreach (quads_get_settings_tabs() as $tab_id => $tab_name) { $tab_url = esc_url(add_query_arg(array('settings-updated' => false, 'tab' => $tab_id))); $active = $active_tab == $tab_id ? ' nav-tab-active' : ''; echo '<a href="' . esc_url($tab_url) . '" title="' . esc_attr($tab_name) . '" class="nav-tab' . $active . '">'; echo esc_html($tab_name); echo '</a>'; } ?> </h2> <div id="quads_tab_container" class="quads_tab_container"> <?php quads_get_tab_header('quads_settings_' . $active_tab, 'quads_settings_' . $active_tab); ?> <div class="quads-panel-container"> <!-- new //--> <form method="post" action="options.php"> <?php settings_fields('quads_settings'); quads_do_settings_fields('quads_settings_' . $active_tab, 'quads_settings_' . $active_tab); ?> <!--</table>--> <?php settings_errors(); ?> <?php // do not show save button on add-on page if ($active_tab !== 'addons') { submit_button(); } ?> </form> </div> <!-- new //--> </div><!-- #tab_container--> </div><!-- .wrap --> <?php echo ob_get_clean(); }