| Server IP : 51.91.236.255 / Your IP : 216.73.217.120 Web Server : Apache System : Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : laureet ( 1012854) PHP Version : 8.0.30 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/laureet/www/wp-content/themes/rock-singer/inc/hook/ |
Upload File : |
<?php
/**
* Theme functions related to structure.
*
* This file contains structural hook functions.
*
* @package Rock Singer
*/
if ( ! function_exists( 'rock_singer_doctype' ) ) :
/**
* Doctype Declaration.
*
* @since 1.0.0
*/
function rock_singer_doctype() {
?><!DOCTYPE html> <html <?php language_attributes(); ?>><?php
}
endif;
add_action( 'rock_singer_action_doctype', 'rock_singer_doctype', 10 );
if ( ! function_exists( 'rock_singer_head' ) ) :
/**
* Header Codes.
*
* @since 1.0.0
*/
function rock_singer_head() {
?>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<?php endif;
}
endif;
add_action( 'rock_singer_action_head', 'rock_singer_head', 10 );
if ( ! function_exists( 'rock_singer_page_start' ) ) :
/**
* Add Skip to content.
*
* @since 1.0.0
*/
function rock_singer_page_start() {
?><div id="page" class="site"><a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'rock-singer' ); ?></a><?php
}
endif;
add_action( 'rock_singer_action_before', 'rock_singer_page_start', 10 );
if ( ! function_exists( 'rock_singer_header_start' ) ) :
/**
* Header Start.
*
* @since 1.0.0
*/
function rock_singer_header_start() { ?>
<header id="masthead" class="site-header" role="banner"><?php
}
endif;
add_action( 'rock_singer_action_before_header', 'rock_singer_header_start' );
if ( ! function_exists( 'rock_singer_header_end' ) ) :
/**
* Header Start.
*
* @since 1.0.0
*/
function rock_singer_header_end() {
?></header> <!-- header ends here --><?php
}
endif;
add_action( 'rock_singer_action_header', 'rock_singer_header_end', 15 );
if ( ! function_exists( 'rock_singer_content_start' ) ) :
/**
* Header End.
*
* @since 1.0.0
*/
function rock_singer_content_start() {
?>
<div id="content" class="site-content">
<?php
}
endif;
add_action( 'rock_singer_action_before_content', 'rock_singer_content_start', 10 );
if ( ! function_exists( 'rock_singer_footer_start' ) ) :
/**
* Footer Start.
*
* @since 1.0.0
*/
function rock_singer_footer_start() {
if( !(is_home() || is_front_page()) ){
echo '</div>';
} ?>
</div></div>
<footer id="colophon" class="site-footer" role="contentinfo">
<?php
}
endif;
add_action( 'rock_singer_action_before_footer', 'rock_singer_footer_start' );
if ( ! function_exists( 'rock_singer_footer_end' ) ) :
/**
* Footer End.
*
* @since 1.0.0
*/
function rock_singer_footer_end() {?>
</footer><div class="backtotop"><i class="fas fa-caret-up"></i></div><?php
}
endif;
add_action( 'rock_singer_action_after_footer', 'rock_singer_footer_end' );