Jump to content

syntax error, unexpected end of file in....


alfonsmala

Recommended Posts

</div>

<div id="footer-container">

 <?php 

$displayCustomFooter =  $this->config->get('customFooter_status');

 

// Show custom footer

if($displayCustomFooter == 1) {

?>

<?php

// Show about

if ($this->config->get('about_status') == '1') {

  

  // Twitter

  $TWIITER_USERNAME = $this->config->get('twitter_username');

  

  if($TWIITER_USERNAME <> '')

  {

    $TWITTER_HTML = '<a href="http://twitter.com/'.$TWIITER_USERNAME.'" class="soc-img twitter"></a>';

  }

  else

  {

    $TWITTER_HTML = '';

  }

  

  // Facebook

  $FB_USERNAME = $this->config->get('facebook_id');

  

  if($FB_USERNAME <> '')

  {

    $FB_HTML = '<a href="http://facebook.com/pages/dx/'.$FB_USERNAME.'" class="soc-img facebook"></a>';

  }

  else

  {

    $FB_HTML = '';

  }

  

  // Skype

  $SKYPE_USERNAME = $this->config->get('skype');

  

  if($SKYPE_USERNAME <> '')

  {

    $SKYPE_HTML = '<a href="skype://'.$SKYPE_USERNAME.'" class="soc-img skype"></a>';

  }

  else

  {

    $SKYPE_HTML = '';

  }

  

?>

<div class="footer-about">

      <?php

if($this->config->get('about_us_image_status') == '1'){

        echo ' <style type="text/css">.footer-about .text {

width:435px; } </style>';

echo '<div class="mini-logo"><img alt ="About" src="image/' . $this->config->get('about_us_image') . '"/></div>';

}

?>

  <div class="text"><h1><?=$this->config->get('about_header');?></h1>

    <?=html_entity_decode($this->config->get('about_text'));?>

</div>

  <div class="social">

    <h1><?=$this->config->get('contact_header')?></h1>

    <?=$FB_HTML?>

    <?=$TWITTER_HTML?>

    <?=$SKYPE_HTML?>

    <div class="contact">

      <div class="phone"><?php if ($this->config->get('telephone1')) { echo '<b>Phone:</b> '.$this->config->get('telephone1'); }?><?php if ($this->config->get('telephone2')) { echo ', '.$this->config->get('telephone2'); }?></div>

      <div class="fax"><?php if ($this->config->get('fax')) { echo '<b>Fax:</b> '.$this->config->get('fax'); }?></div>

      <div class="email"><?php if ($this->config->get('email1')) { echo '<a href="mailto:'.$this->config->get('email1').'">'.$this->config->get('email1').'</a>'; }?></div>

      <div class="email"><?php if ($this->config->get('email2')) { echo '<a href="mailto:'.$this->config->get('email2').'">'.$this->config->get('email2').'</a>'; }?></div>

    </div>

  </div>

  <div class="clear"></div>

</div>

<? }

// About end

?>

 

 

<? }

// Custom footer end

?>

 

 

<div id="footer">

  <?php if ($informations) { ?>

  <div class="column">

    <h3><?php echo $text_information; ?></h3>

    <ul>

      <?php foreach ($informations as $information) { ?>

      <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>

      <?php } ?>

    </ul>

  </div>

  <?php } ?>

  <div class="column">

    <h3><?php echo $text_service; ?></h3>

    <ul>

      <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>

      <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>

      <li><a href="<?php echo $sitemap; ?>"><?php echo $text_sitemap; ?></a></li>

    </ul>

  </div>

  <div class="column">

    <h3><?php echo $text_extra; ?></h3>

    <ul>

      <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>

      <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>

      <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>

      <li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>

    </ul>

  </div>

  <?php

  // TWITTER WIDGET

  if(($this->config->get('twitter_column_status') == '1')&&($displayCustomFooter == 1)) { ?>

  <div class="column">

  <h3><?php echo $this->config->get('twitter_column_header'); ?></h3>

  <script type="text/javascript">

  function format_twitter(twitters) {

var statusHTML = [];

for (var i=0; i<twitters.length; i++){

var username = twitters.user.screen_name;

var status = twitters.text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g, function(url) {

return '<a href="'+url+'">'+url+'</a>';

}).replace(/\B@([_a-z0-9]+)/ig, function(reply) {


});

statusHTML.push('<li><span>'+status+'</span> <a href="http://twitter.com/'+username+'/statuses/'+twitters.id_str+'">'+'</a></li>');

}

return statusHTML.join('');

}

  </script>

  <script type="text/javascript">

jQuery(document).ready(function($){

$.getJSON('http://api.twitter.com/1/statuses/user_timeline/<?php echo $this->config->get('twitter_username') ; ?>.json?count=<?php echo $this->config->get('twitter_number_of_tweets') ; ?>&callback=?', function(tweets){

$("#twitter_update_list").html(format_twitter(tweets));

});

});

</script>

  

    <ul id="twitter_update_list"></ul>

  </div>

  <? } else {  ?>

  <div class="column">

    <h3><?php echo $text_account; ?></h3>

    <ul>

      <li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>

      <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>

      <li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>

      <li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>

    </ul>

  </div>

  <? } ?>

   <?php

if (($this->config->get('facebook_status') == '1')&&($displayCustomFooter == 1)) {

?>

  <div class="column">

    <h3>FACEBOOK</h3>

     <!-- Facebook -->

    <style type="text/css">

 .facebookOuter {

    background-color:transparent; 

    

    padding:0px;

    

    border:none;

  }

 .facebookInner {

    

    overflow:hidden;

  }

  

</style>

 

<div class="facebookOuter">

 <div class="facebookInner">

  <div class="fb-like-box" data-href="http://www.facebook.com/pages/dx/<?php echo $this->config->get('facebook_id'); ?>" data-width="200" data-height="100" data-show-faces="false" data-colorscheme="dark" data-stream="false" data-border-color="transparent" data-header="false"></div>       

 </div>

</div>

           

<div id="fb-root"></div>

 

<script>(function(d, s, id) {

  var js, fjs = d.getElementsByTagName(s)[0];

  if (d.getElementById(id)) return;

  js = d.createElement(s); js.id = id;

  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";

  fjs.parentNode.insertBefore(js, fjs);

}(document, 'script', 'facebook-jssdk'));

</script>

 

    <!-- / Facebook -->

  </div>

  <? } else { ?>

  

  <style type="text/css">#footer .column  {

width:25%; } </style>

  <? }?>

</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

<div id="powered"><?php echo $powered; ?></div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

</div>

</body></html>

Edited by alfonsmala
Link to comment
Share on other sites

I removed your original thread because it was an unformatted blob of text with no question attached.

 

I'm locking this one for the same reason.

 

The error tells you specifically where the problem is, I suggest you either fix it, or narrow it down some before dumping code here.

 

ps: We have [ code ][ / code ] tags here for formatting code so that it is readable, please use them.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.