Skip to content

Instantly share code, notes, and snippets.

@knice
Last active June 15, 2021 18:00
Show Gist options
  • Save knice/b9d313f415b99c3829e5756f85d5d8c5 to your computer and use it in GitHub Desktop.
Save knice/b9d313f415b99c3829e5756f85d5d8c5 to your computer and use it in GitHub Desktop.
WCMS block changes for 2021 server upgrade

Process for updating global footer blocks for WCMS sites

For the copyright year (all pages)

  1. Edit the block: uniform-campus-footer
  2. In the code view, remove this code: <!--#config timefmt="%Y" --><!--#echo var="DATE_LOCAL" -->
  3. Replace it with this code: <!--#passthrough<?php echo date('Y'); ?>#passthrough-->

For the check-ip (hidden) span tag in the bottom of the page (all pages)

  1. Edit the format: last-modified-date
  2. In the code view, remove this code: <!--#echo var="SERVER_ADDR" -->
  3. Replace it with this code: <!--#passthrough<?php echo $_SERVER["REMOTE_ADDR"]; ?>#passthrough-->

For the sidebar include on news articles

  1. Edit the format: article-includes-left-column
  2. Remove this code (line 24): <xsl:comment>#include virtual="/_partials/article-left-column.html" </xsl:comment>
  3. Replace it with this code: <!--#passthrough<?php require '/opt/app/home/wwwuser/vhosts/news/public_html/_partials/article-left-column.html'; ?>#passthrough-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment