sanitize_website_url( $url );
}
public function render_settings_page() {
if (!current_user_can('manage_options')) {
return;
}
if (isset($_GET['settings-updated'])) {
add_settings_error('adsrevshare_messages', 'adsrevshare_message', __('Settings saved successfully.', 'adsense-revenue-sharing'), 'updated');
}
settings_errors('adsrevshare_messages');
?>
__('Top of the article', 'adsense-revenue-sharing'),
'custom1' => __('Custom Ad 1', 'adsense-revenue-sharing'),
'custom2' => __('Custom Ad 2', 'adsense-revenue-sharing'),
'custom3' => __('Custom Ad 3', 'adsense-revenue-sharing'),
'custom4' => __('Custom Ad 4', 'adsense-revenue-sharing'),
'bottom' => __('Bottom of the article', 'adsense-revenue-sharing'),
'footer' => __('Footer Ad', 'adsense-revenue-sharing'),
];
foreach ($positions as $position => $label) :
?>
$label) :
$enabled_option = "adsrevshare_ad_{$position}_enabled";
$type_option = "adsrevshare_ad_{$position}_type";
$custom_code_option = "adsrevshare_ad_{$position}_custom_code";
$paragraph_option = "adsrevshare_ad_{$position}_paragraph";
?>