Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/01/2014, 09:11
IsmaelTorres
 
Fecha de Ingreso: enero-2014
Mensajes: 2
Antigüedad: 10 años, 3 meses
Puntos: 0
Tengo un error "syntax error"

Muy buenas amigos,
Tengo un error con un theme de wordpress, y no consigo averiguar que le pasa al archivo, y mira que lo he mirado y le he dado vueltas ya...

Sale ese error:

Parse error: syntax error, unexpected T_STRING in /home2/pibingac/public_html/wp-content/themes/oficial/functions.php on line 1

Archivo (functions.php):

Código PHP:
<?php
if ( function_exists('register_sidebar') )
    
register_sidebar(array(
    
'name' => 'Sidebar',
    
'before_widget' => '<div class="scaja">',
    
'after_widget' => '</div>',
    
'before_title' => '<h3>',
    
'after_title' => '</h3>',
    
    ));
    
if ( 
function_exists'add_theme_support' ) ) {
    
add_theme_support'post-thumbnails' );
    
add_image_size'iniciog'150150true ); 
    
add_image_size'sidebarg'12090true ); 
}

function 
imgh(){
if ( 
has_post_thumbnail() ) {
             
the_post_thumbnail'iniciog', array('class' => 'imgpost') );
} else {
?>
<img class="imgpost" src="<?php bloginfo('template_directory'); ?>/images/150img.png" alt="no imagen" width="150" height="150" />
<?php
}
}

function 
imgs(){
if ( 
has_post_thumbnail() ) {
             
the_post_thumbnail'sidebarg', array('class' => 'imgsidebar') );
} else {
?>
<img class="imgsidebar" src="<?php bloginfo('template_directory'); ?>/images/120img.png" alt="no imagen" width="120" height="90" />
<?php
}
}

function 
new_excerpt_more($more) {
global 
$post;
return 
'... &nbsp;<a rel="nofollow" href="'get_permalink($post->ID) . '">' 'Leer m&aacute;s &raquo;' '</a>';
}
add_filter('excerpt_more''new_excerpt_more');
?>
Haber si hay algien que tenga la amabilidad que ayudarme, sería de gran ayuda...

Saludos y gracias por su tiempo!