-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
69 lines (45 loc) · 1.8 KB
/
Copy pathfunctions.php
File metadata and controls
69 lines (45 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/*DEFINIENDO CONSTANTES DEL TEMA*/
define('THEMEROOT', get_stylesheet_directory_uri());
define('IMAGES', THEMEROOT . '/img');
/*DEFINIENDO CARACTERISTICAS DEL TEMA*/
// Set content width value based on the theme's design
if ( ! isset( $content_width ) )
$content_width = 1110;
if ( ! function_exists('hotel_custom_theme_features') ) {
// Register Theme Features
function hotel_custom_theme_features() {
// Add theme support for Automatic Feed Links
add_theme_support( 'automatic-feed-links' );
// Add theme support for Post Formats
add_theme_support( 'post-formats', array( 'video', 'audio' ) );
// Add theme support for Featured Images
add_theme_support( 'post-thumbnails' );
// Add theme support for Custom Background
$background_args = array(
'default-color' => 'ffffff',
'default-image' => '',
'default-repeat' => '',
'default-position-x' => '',
'wp-head-callback' => '_custom_background_cb',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);
add_theme_support( 'custom-background', $background_args );
// Add theme support for HTML5 Semantic Markup
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );
// Add theme support for Translation
load_theme_textdomain( 'hotel', get_template_directory() . '/languages' );
// añadir tamaños de imagenes personalizados
add_image_size('blog_size_image',825,533,true);
}
add_action( 'after_setup_theme', 'hotel_custom_theme_features' );
}
/*REGISTRANDO Y CARGANDO HOJAS DE ESTILO*/
require_once('includes/scripts-styles.php');
/*REGISTRANDO ZONAS DE MENU*/
require_once('includes/menus.php');
/*REGISTRANDO ZONAS DE WIDGETS*/
require_once('includes/sidebars.php');
remove_action('shutdown', 'wp_ob_end_flush_all', 1);
?>