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.

#2 PHPlugins (CE4) » Automatic date in footer » 2014-12-28 09:31:42

Tom
Replies: 4

My WordPress theme uses the following code to display the current year:

© 2013-<?php echo date('Y'); ?> John Doe. All Rights Reserved.

I would like to somehow modify my phplugins.php to do the same. It currently looks like this:

function ttg_footer( $style, $path ) {
    if (G_STYLE == 'CE2-WORDPRESS') {
        return true;
    } else {
        echo '

        <div id="custom_footer" class="footer">
        <div id="custom_footer_content">

        <p>&copy; 2013-2014 John Doe. All Rights Reserved.
        </p>

        </div>
        </div>

        ';
    }
    return false;
} // END

How can I achieve this?

Board footer

Powered by FluxBB