我在wordpress中的代码有什么问题?

时间:2017-02-09 15:05:25

标签: php wordpress

我遇到了问题,我希望你能帮助我。

这是我想打开wordpress页面时遇到的错误:

  

解析错误:语法错误,在第52行的/web/WebSites/d/v/i/e/viennaphotobookfestival.com/htdocs/wp-content/themes/Divi/includes/social_icons.php中意外结束

我不知道代码中的错误,你能帮帮我吗? 提前谢谢!

<ul class="et-social-icons">

<?php if ( 'on' === et_get_option( 'divi_show_facebook_icon', 'on' ) ) : ?>
    <li class="et-social-icon et-social-facebook">
        <a href="<?php echo esc_url( et_get_option( 'divi_facebook_url', '#' ) ); ?>" class="icon">
            <span><?php esc_html_e( 'Facebook', 'Divi' ); ?></span>
        </a>
    </li>
<?php endif; ?>
<?php if ( 'on' === et_get_option( 'divi_show_twitter_icon', 'on' ) ) : ?>
    <li class="et-social-icon et-social-twitter">
        <a href="<?php echo esc_url( et_get_option( 'divi_twitter_url', '#' ) ); ?>" class="icon">
            <span><?php esc_html_e( 'Twitter', 'Divi' ); ?></span>
        </a>
    </li>
<?php endif; ?>
<?php if ( 'on' === et_get_option( 'divi_show_google_icon', 'on' ) ) : ?>
    <li class="et-social-icon et-social-google-plus">
        <a href="<?php echo esc_url( et_get_option( 'divi_google_url', '#' ) ); ?>" class="icon">
            <span><?php esc_html_e( 'Google', 'Divi' ); ?></span>
        </a>
    <ul class="et-social-icons">

<?php if ( 'on' === et_get_option( 'divi_show_facebook_icon', 'on' ) ) : ?>
    <li class="et-social-icon et-social-facebook">
        <a href="<?php echo esc_url( et_get_option( 'divi_facebook_url', '#' ) ); ?>" class="icon">
            <span><?php esc_html_e( 'Facebook', 'Divi' ); ?></span>
        </a>
    </li>
<?php endif; ?>
<?php if ( 'on' === et_get_option( 'divi_show_twitter_icon', 'on' ) ) : ?>
    <li class="et-social-icon et-social-twitter">
        <a href="<?php echo esc_url( et_get_option( 'divi_twitter_url', '#' ) ); ?>" class="icon">
            <span><?php esc_html_e( 'Twitter', 'Divi' ); ?></span>
        </a>
    </li>
<?php endif; ?>
<?php if ( 'on' === et_get_option( 'divi_show_google_icon', 'on' ) ) : ?>
    <li class="et-social-icon et-social-google-plus">
        <a href="<?php echo esc_url( et_get_option( 'divi_google_url', '#' ) ); ?>" class="icon">
            <span><?php esc_html_e( 'Google', 'Divi' ); ?></span>
        </a>
    </li>
<?php endif; ?>
<?php if ( 'on' === et_get_option( 'divi_show_rss_icon', 'on' ) ) : ?>
    <li class="et-social-icon et-social-rss-plus">
        <a href="<?php echo esc_url( et_get_option( 'divi_rss_url', '#' ) ); ?>" class="icon">
            <span><?php esc_html_e( 'rss', 'Divi' ); ?></span>
        </a>
    </li>
<?php endif; ?>

0 个答案:

没有答案