Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-03-17 04:24:58

hjrw
Member
From: Peoria (Phoenix) AZ
Registered: 2012-10-01
Posts: 180

Custom Footer Error

I am trying to use the custom footer scripts from Rod's TTG Tips & Tricks.  The code I inserted into the backlight.php file is below (I included lines above and below my insertion).  When I run it, I get the following error

    Something went wrong
    Unexpected error: syntax error, unexpected '<', expecting end of file in backlight.php on line 268
    Please report error at http://community.theturninggate.net

Notepad++ does not seem to indicate any issues.

What am I missing here?

-Herschel


function ttg_pallet_top_title( $style, $path ) {
  echo '

    <li class="logo"><a href="#"><ul class="logo_backlight">
        <li style="opacity:.85; top:75%; left:75%;"></li>
        <li style="opacity:.40; top:75%; left:50%;"></li>
                        ....
        <li style="opacity:.85; top: 0%; left:50%;"></li>
        <li style="opacity:.98; top: 0%; left: 0%; width: 50%; height: 50%"></li>
    </ul><h1><strong>B</strong>acklight</h1></a></li>

  ';
  return false;
} // END /**/

//----------------------------------------------------------------------------------------------
//Footer replacement

<div class="grid_12" id= "footer">                                           THIS IS LINE 268

<div class= "col_8">
<p>All content &copy;2015-' . date("Y") . '  HJR Weintraub, all rights reserved.
</br>Powered by <a href="http://theturninggate.net">The Turning Gate</a>
</div>

<div class="social-media-profiles social-media col_4">
<ul>
/*<li><a target="_blank" href="http://www.yoursite.com/blog/rss/" class="social_media fa fa-rss"></a></li>*/
/*<li><a target="_blank" href="https://www.instagram.com/your-profile/" class="social_media fa fa-instagram"></a></li>*/
<li><a target="_blank" href="https://www.facebook.com/Photographs-Now-152616671487325/" class="social_media fa fa-facebook"></a></li>
/*<li><a target="_blank" href="https://twitter.com/your-profile" class="social_media fa fa-twitter"></a></li>*/
</ul>

</div> <!-- #social-media-profiles -->

</div>

// ****************************************************************************************************
// END USER FUNCTIONS

?>

Offline

#2 2018-03-17 06:26:03

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom Footer Error

do you have the hook function before the first <div>?
http://ttg-tips-and-tricks.barbeephoto. … -pangolin/

function ttg_footer_top( $style, $path) {

echo '


and after the last </div>

';
return false;
}


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2018-03-17 06:36:57

hjrw
Member
From: Peoria (Phoenix) AZ
Registered: 2012-10-01
Posts: 180

Re: Custom Footer Error

Thanks Rod

That did it....   now on to tweaking it

-Herschel

Offline

#4 2018-03-19 09:01:16

hjrw
Member
From: Peoria (Phoenix) AZ
Registered: 2012-10-01
Posts: 180

Re: Custom Footer Error

Is there a way to get a border at the top of the custom footer?  The border command remains in the Footer options even with the Bottom Pallet / Copyright turned off, but doesn't do anything.  There does not seem to be a bottom border in Content Areas.

Also, where do I modify the size of the social media icons?

Thanks
-Herschel

Offline

#5 2018-03-19 10:13:31

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom Footer Error

for the social media icons, just add the code for a larger icon
https://fontawesome.com/v4.7.0/examples/

use custom css for the footer border


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB