Visualizzazione risultati 1 fino 1 di 1

Discussione: Problema functions.php

  1. #1
    Guest

    Predefinito Problema functions.php

    Ho questo problema su questo tema,mi date una mano? grazie

    Errore:


    Parse error: syntax error, unexpected T_STRING in /membri/callofdutyitalia7/wp-content/themes/gameaddict/themeOptions/functions.php on line 4


    Codice PHP:
    <?phpif ( !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_twentyeleven_options', 100);function remove_twentyeleven_options() { remove_action( 'admin_menu', 'twentyeleven_theme_options_add_page' );}?>
    Questo è il codice su functions.php.

    Aiutatemi pls.
    Ultima modifica di alemoppo : 04-10-2014 alle ore 21.22.49 Motivo: [code] -> [php]

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •