Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/05/2014, 17:50
kulureth
 
Fecha de Ingreso: mayo-2014
Mensajes: 3
Antigüedad: 10 años
Puntos: 0
Tengo un problema de funciones que no logro resolver

¡Hola foreros!

Últimamente me ronda por la cabeza aprender un poco de wordpress para poder saber trastear con él y hacer cosas chulas. Lo malo es que aún estoy muy verde y no entiendo mucho del tema, así que soy una novata con muchas dudas que resolver y problemillas que van surgiendo.

Antes que nada quiero decir que he estado googleando para ver si hallaba una solución, pero lamentablemente no la he encontrado, así que mi opción es plantearlo aquí a ver si alguien puede ayudarme.

Instalé un tema para wordpress y al intentar activarlo me salió el siguiente error:

Cita:
Parse error: syntax error, unexpected '{' in /home/u141039501/public_html/wp-content/themes/gameaddict/themeOptions/functions.php on line 1

Justo en este archivo:

Cita:
<?php
if ( !function_exists( 'optionsframework_init' ) ) {
/*-----------------------------------------------------------------------------------*/
/* Options Framework Theme
/*-----------------------------------------------------------------------------------*/
/* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */

define('OPTIONS_FRAMEWORK_URL', get_template_directory() . '/themeOptions/admin/');
define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/themeOptions/admin/');

require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php');
}
/*
* This is an example of how to add custom scripts to the options panel.
* This one shows/hides the an option when a checkbox is clicked.
*/
add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts');
function optionsframework_custom_scripts() { ?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#example_showhidden').click(function() {
jQuery('#section-example_text_hidden').fadeToggle(400);
});
if (jQuery('#example_showhidden:checked').val() !== undefined) {
jQuery('#section-example_text_hidden').show();
}
});
</script>
<?php
}
/*
* Turns off the default options panel from Twenty Eleven
*/
add_action('after_setup_theme','remove_twentyeleve n_options', 100);
function remove_twentyeleven_options() {
remove_action( 'admin_menu', 'twentyeleven_theme_options_add_page' );
}
?>
¿Alguien podría decirme a qué se debe? ¡Muchas gracias de antemano!