| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/engineering/iimec/wp-content/themes/graphene/admin/ |
Upload File : |
<?php
/*
* Add admin feature pointers
*/
function graphene_feature_pointers( $hook_suffix ) {
global $graphene_settings;
if ( $graphene_settings['hook_suffix'] != $hook_suffix ) return;
$pointer_content = '<h3>' . esc_js( __( 'Where are all the options?!', 'graphene' ) ) . '</h3>';
$pointer_content .= '<p>' . esc_js( __( "We've decided to clean things up!", 'graphene' ) ) . '</p>';
$pointer_content .= '<p>' . esc_js( __( "We know how too many options can really be daunting to new users, so we've hidden them.", 'graphene' ) ) . '</p>';
$pointer_content .= '<p>' . esc_js( __( "But no worries! If you're a seasoned user of the Graphene theme, or whenever you feel ready to further customise your site, just click on the \"Show all options\" link, and they will magically appear to you.", 'graphene' ) ) . '</p>';
?>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready( function($) {
var pointer_hide = grapheneGetCookie('graphene-p0');
if (pointer_hide != 'true' ){
$('.toggle-options-wrapper').pointer({
content: '<?php echo $pointer_content; ?>',
position: 'top',
close: function() {
grapheneSetCookie('graphene-p0', true, 100);
}
}).pointer('open');
$('.appearance_page_graphene_options #wp-pointer-0').css('margin-left', '-95px');
}
});
//]]>
</script>
<?php
}
add_action( 'admin_footer', 'graphene_feature_pointers' );
?>