Ejemplo n.º 1
0
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
$image_url = "";
$text = "";
$is_custom_content = yit_get_option('content-enable-404');
$custom_text = yit_get_option('content-404-text');
$custom_image = yit_get_option('content-404-image');
$background_image = yit_get_option('content-404-background');
$background_repeat = yit_get_option('content-404-background-repeat');
$background_position = yit_get_option('content-404-background-position');
$background_attachment = yit_get_option('content-404-background-attachment');
//---------------------------------------------------------------------
$image_url = $is_custom_content == 'yes' && $custom_image != '' ? $custom_image : YIT_THEME_ASSETS_URL . "/images/backgrounds/404_text.jpg";
$text = $is_custom_content == 'yes' && $custom_text != '' ? yit_convert_tags(do_shortcode(stripslashes($custom_text))) : __('IT SEEMS YOU ARE LOOKING FOR SOMETHING IS NOT HERE.', 'yit');
?>
<div class="error-404-container">

    <div class="error-404-image-text">
        <?php 
if (isset($image_url) && $image_url != '') {
    ?>
            <img class="error-404-image" src="<?php 
    echo esc_url($image_url);
    ?>
" title="<?php 
    _e('Error 404', 'yit');
    ?>
" alt="404" />
        <?php 
Ejemplo n.º 2
0
    <?php 
    do_action('yit_before_center_copyright');
    ?>
    <div class="centered">
        <?php 
    echo yit_convert_tags(yit_addp(stripslashes(yit_ssl_url(yit_get_option('footer-center-text')))));
    ?>
    </div>
    <?php 
    do_action('yit_after_center_copyright');
} else {
    ?>
    <?php 
    do_action('yit_before_left_copyright');
    ?>
    <div class="left span6">
        <?php 
    echo yit_convert_tags(yit_addp(stripslashes(yit_ssl_url(yit_get_option('footer-left-text')))));
    ?>
    </div>
    <?php 
    do_action('yit_after_left_copyright');
    ?>
    <div class="right span6">
        <?php 
    echo yit_convert_tags(yit_addp(stripslashes(yit_ssl_url(yit_get_option('footer-right-text')))));
    ?>
    </div>
    <?php 
    do_action('yit_after_right_copyright');
}
Ejemplo n.º 3
0
    	<p><?php echo __( 'The page you requested was not found, and we have a fine guess why.<br /><br />- If you typed the URL directly, please make sure the spelling is correct.<br />- If you clicked on a link to get here, the link is outdated.', 'yit' ); ?></p>
   </div>
   <div class="error-404-text group right-text">
    	<h2><?php echo __( 'WHAT CAN I DO?', 'yit' ); ?></h2>
    	<p><?php printf( __( 'There are many ways you can get back on track with %s<br />- Go to the <a href="%s">home page</a><br />- Use the search form below', 'yit' ), get_bloginfo( 'title' ), home_url() ) ?></p>
        <?php get_search_form() ?>
    </div>
<?php
else : 
    if( yit_get_option( '404-image-position' ) == 'left' ) : ?>
    	<div class="border-bold span<?php echo $span_image; ?> no-margin">
    		<div class="border">
				<div class="border-img">
		        	<img class="error-404-image group" src="<?php echo yit_get_option( '404-image' ); ?>" title="<?php _e( '404 Error', 'yit' ) ?>" alt="<?php _e( '404 Error', 'yit' ) ?>" />
		    	</div>
    		</div>
    	</div>
		<div class="error-404-text group left-text span<?php echo $span_text; ?>"><?php echo yit_convert_tags( yit_addp( do_shortcode( stripslashes( yit_get_option( '404-text' ) ) ) ) ); get_search_form() ?></div>
    <?php else : ?> 
        <div class="error-404-text group right-text span<?php echo $span_text; ?> no-margin"><?php echo yit_convert_tags( yit_addp( do_shortcode( stripslashes( yit_get_option( '404-text' ) ) ) ) ); get_search_form() ?></div>
        <div class="border-bold span<?php echo $span_image; ?>">
    		<div class="border">
				<div class="border-img">
        			<img class="error-404-image group" src="<?php echo yit_get_option( '404-image' ); ?>" title="<?php _e( '404 Error', 'yit' ) ?>" alt="<?php _e( '404 Error', 'yit' ) ?>" />
        		</div>
    		</div>
    	</div>
    <?php
    endif;
endif;
?>
Ejemplo n.º 4
0
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
$image_url = "";
$text = "";
$is_custom_content = yit_get_option('content-enable-404') == "no";
//---------------------------------------------------------------------
if ($is_custom_content) {
    $image_url = get_template_directory_uri() . "/images/404.png";
    $text = __('I suggest you to use this search box below:', 'yit');
} else {
    $image_url = yit_get_option('content-404-image');
    $text = yit_convert_tags(yit_addp(do_shortcode(stripslashes(yit_get_option('content-404-text')))));
}
?>

    <div class="error-404-image-container">
        <?php 
if (isset($image_url) && $image_url != '') {
    ?>
        <img class="error-404-image group" src="<?php 
    echo $image_url;
    ?>
" title="<?php 
    _e('Error 404', 'yit');
    ?>
" alt="404" />
        <?php 
Ejemplo n.º 5
0
        ?>
" alt="<?php 
        _e('404 Error', 'yit');
        ?>
" />
        <div class="error-404-text group"><?php 
        echo yit_convert_tags(yit_addp(do_shortcode(stripslashes(yit_get_option('404-text')))));
        get_search_form();
        ?>
</div>
    <?php 
    } else {
        ?>
    
        <div class="error-404-text group"><?php 
        echo yit_convert_tags(yit_addp(do_shortcode(stripslashes(yit_get_option('404-text')))));
        get_search_form();
        ?>
</div>
        <img class="error-404-image group" src="<?php 
        echo yit_get_option('404-image');
        ?>
" title="<?php 
        _e('404 Error', 'yit');
        ?>
" alt="<?php 
        _e('404 Error', 'yit');
        ?>
" />
    <?php 
    }
Ejemplo n.º 6
0
$image_url = "";
$text = "";

$is_custom_content = yit_get_option( 'content-enable-404' );
$custom_text = yit_get_option( 'content-404-text' );
$custom_image = yit_get_option( 'content-404-image' );

$background_image = yit_get_option( 'content-404-background' );
$background_repeat = yit_get_option( 'content-404-background-repeat' );
$background_position = yit_get_option( 'content-404-background-position' );
$background_attachment = yit_get_option( 'content-404-background-attachment' );

//---------------------------------------------------------------------

$image_url = ( $is_custom_content == 'yes' && $custom_image != '' ) ? $custom_image : get_template_directory_uri() . "/images/404.png";
$text = ( $is_custom_content == 'yes' && $custom_text != '' ) ? yit_convert_tags( do_shortcode( stripslashes( $custom_text ) ) ) : __( 'Sorry, but the page you are looking for is not found. Please, make sure you have typed the current URL.', 'yit' );

?>
<div class="error-404-container">

    <div class="error-404-image-text">
        <?php if ( isset( $image_url ) && $image_url != '' ): ?>
            <img class="error-404-image" src="<?php echo $image_url ?>" title="<?php _e( 'Error 404', 'yit' ); ?>" alt="404" />
        <?php endif; ?>

    </div>
    <div class="error-404-search">
        <p class="error-404-text"><?php printf( $text) ?></p>
        <?php if( yit_get_option( 'content-404-button-home' ) == 'yes' ): ?>
            <a class="btn btn-ghost" href="<?php echo home_url() ?>"><?php echo  yit_get_option('content-404-button-label') ?></a>
        <?php endif; ?>