public static function ShareaholicAdmin::show_terms_of_service_notice in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 admin.php \ShareaholicAdmin::show_terms_of_service_notice()
Show the terms of service notice on admin pages except for shareaholic admin settings page
1 call to ShareaholicAdmin::show_terms_of_service_notice()
- shareaholic_process_html in ./
shareaholic.module - Implements hook_process_html()
File
- ./
admin.php, line 57
Class
- ShareaholicAdmin
- This class takes care of all of the admin interface.
Code
public static function show_terms_of_service_notice(&$vars) {
if (ShareaholicUtilities::is_admin_page() && !ShareaholicUtilities::is_shareaholic_settings_page() && !ShareaholicUtilities::has_accepted_terms_of_service() && user_access('administer modules')) {
$link = l('Get started now >>', 'admin/config/shareaholic/settings', array(
'attributes' => array(
'style' => 'background: #f3f3f3; border-color: #bbb; color: #333; display: inline-block; text-decoration: none; cursor: pointer; border-radius: 3px; padding: 0 10px; 1px; font-size: 12px; height: 20px;',
),
));
$message = sprintf(t('Action required: You\'ve installed Shareaholic for Drupal. We\'re ready when you are. %s'), $link);
$vars['page'] = self::header_message_html($message) . $vars['page'];
}
}