diff options
-rw-r--r-- | functions.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/functions.php b/functions.php index e66112b..f330eb9 100644 --- a/functions.php +++ b/functions.php @@ -1,11 +1,11 @@ <?php -if (!defined('ABSPATH')){ +if (!defined('ABSPATH')) { exit; } // Funciones Principales -function libre_custom_theme_setup(){ +function libre_custom_theme_setup() { // Agregamos el Soporte para Thumbnails add_theme_support('post-thumbnails'); // Agregamos un tamaño de imagen y permitimos que la imagen se recorte si no cabe @@ -24,14 +24,14 @@ function libre_custom_theme_setup(){ add_action('after_setup_theme', 'libre_custom_theme_setup'); // Funcion de reemplazo a leer más -function read_more( $more ){ +function read_more($more) { $url_post = get_permalink(); return " <a href='$url_post'><small>" . __('Read more...', 'Lidra') . "</small></a>"; } add_filter('excerpt_more', 'read_more'); // Funcion de widget -function widgets_activation(){ +function widgets_activation() { register_sidebar( array( 'name' => __('Sidebar', 'Lidra'), 'id' => 'sidebar', @@ -106,7 +106,7 @@ function nowp_rel_canonical() { add_action('init', 'nowp_head_cleanup'); // Limpia dns-prefetch en caso de NO usar fuentes del servicio Privativo Google -function remove_dns_prefetch( $hints, $relation_type ) { +function remove_dns_prefetch($hints, $relation_type) { if ( 'dns-prefetch' === $relation_type ) { return array_diff( wp_dependencies_unique_hosts(), $hints ); } |