我得到这个错误:
Parse error: syntax error, unexpected '{' in /home/u696221601/public_html/wp-content/themes/oblivion/themeOptions/functions.php on line 3
:
<?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 */
if ( get_stylesheet_directory() == get_template_directory() )
{
尝试更改
phpif ( !function_exists( 'optionsframework_init' ) )
{
if ( !function_exists( 'optionsframework_init' ) )
{
试试这个
if ( !function_exists( 'optionsframework_init' ) )
{
if ( get_stylesheet_directory() == get_template_directory() )
{
//do somting
}
}