/**
 * Return ad locations HTML based on new API.
 *
 * @param $html
 * @return string   Locations HTML
 */
function quads_render_ad_locations($html)
{
    global $_quads_registered_ad_locations;
    global $quads_options;
    if (isset($_quads_registered_ad_locations) && is_array($_quads_registered_ad_locations)) {
        foreach ($_quads_registered_ad_locations as $location => $location_args) {
            $location_settings = quads_get_ad_location_settings($location);
            $html .= QUADS()->html->checkbox(array('name' => 'quads_settings[location_settings][' . $location . '][status]', 'current' => !empty($location_settings['status']) ? $location_settings['status'] : null, 'class' => 'quads-checkbox'));
            $html .= ' ' . __('Assign', 'quick-adsense-reloaded') . ' ';
            $html .= QUADS()->html->select(array('options' => quads_get_ads(), 'name' => 'quads_settings[location_settings][' . $location . '][ad]', 'selected' => !empty($location_settings['ad']) ? $location_settings['ad'] : null, 'show_option_all' => false, 'show_option_none' => false));
            $html .= ' ' . $location_args['description'] . '</br>';
        }
    }
    return $html;
}
                load_textdomain('quick-adsense-reloaded', $mofile_global);
            } elseif (file_exists($mofile_local)) {
                // Look in local /wp-content/plugins/quick-adsense-reloaded/languages/ folder
                load_textdomain('quick-adsense-reloaded', $mofile_local);
            } else {
                // Load the default language files
                load_plugin_textdomain('quick-adsense-reloaded', false, $quads_lang_dir);
            }
        }
    }
}
// End if class_exists check
/**
 * The main function responsible for returning the one true QuickAdsenseReloaded
 * Instance to functions everywhere.
 *
 * Use this function like you would a global variable, except without needing
 * to declare the global.
 *
 * Example: $QUADS = QUADS();
 *
 * @since 2.0.0
 * @return object The one true QuickAdsenseReloaded Instance
 */
function QUADS()
{
    return QuickAdsenseReloaded::instance();
}
// Get QUADS Running
QUADS();