Copywrite CMS

"Template Designs"

Template Design

Explanation:

Through the "Template" tab inside of the "Website Management" section, you'll be able to upload various CSS and PHP Page Templates in order to customize the front-end of copywrite cms.

There are 4 different types of pages within Copywrite CMS:

  1. Frontpage
  2. Articles
  3. Calendar / Events
  4. Search

The frontpage, calendar, and search pages all use one specific PHP Page Template and CSS file that you upload to the site. The individual article pages (inner pages / content pages) may each use a different PHP Page Template and/or CSS file.

The PHP Template Files are comprised of a series of function calls to obtain the content desired. Each function call can be placed anywhere in the PHP Template File where you would like the text to be displayed. Below is a listing of all the available functions. At the end of the list, there is a downloadable sample pack to help you get started.

Function List:

This function gets the frontend calendar and displays it wherever the user specifies it to be displayed. Must be placed inside the calendar template.

<?php $contentdisplay->getCalendar(); ?>

 

This function displays teh mini calendar

 

<?php echo $contentdisplay->displayMiniCalendar(); ?>

Version 1.50+ Only

This function displays upcoming events on the public calendar. You have two configuration options:

#1: Specify the number of upcoming events you wish to display.
#2: Specify the date format. Please see this site for proper syntax.

<?php $contentdisplay->displayUpcomingEvents(3, "D, F d"); ?>

The paragraph tag that is output contains is labeled as class="upcomingevents"

Example output:
<p class="upcomingEvents">Date Stamp<br />Title of Event</p>

Version 1.50+ Only

This function allows you to display a RSS feed, whether it be external or internal. You have 4 configuration options:

#1: Number of elements to display
#2: Number of characters of the description to display (Enter '0' to hide the description)
#3: Specify if the title should be linked to the article ("Y" or "y" for yes, anything else for no)
#4: Full URL to the RSS feed (must be the entire URL, including http://)

<?php echo $contentdisplay->displayRSS('3', '0', 'Y', 'http://www.domain.com/rss/summary_example_rss.xml'); ?>

The output is in a <li> with the class of "rssli"

Example output:
<li class="rssli">Element 1<br />Description</li>

For internal RSS feeds, visit http://www.domain.com/rss for a list of available RSS feeds. Replace "www.domain.com" with the domain of the Copywrite CMS site. (Version 1.50+)

Version 1.50+ Only

This function displays the login module, which is used to control access to specific pages.

<?php $contentdisplay->loginDisplay(); ?>

The div that is output has a class name of "logindisplay", which you can reference in your stylesheet.

Version 1.50+ Only

This function will display an automatically generated sitemap.

<?php $navigation->DisplaySiteMap(); ?>

The <ol></ol> list has an id of "sitemap_list". <ol id="sitemap_list"><li></li></ol>

This function gets the article title and displays it wherever the user specifies it to be displayed.

<?php echo $contentdisplay->getArticleTitle(); ?>

This function gets the article description and displays it wherever the user specifies it to be displayed.

<?php echo $contentdisplay->getArticleDescription(); ?>

This function gets the frontpage article title and displays it wherever the user specifies it to be displayed. User MUST define which frontpage article to display by replacing $order_num with the actual order number of the frontpage article.

<?php echo $contentdisplay->getFrontPageTitle(1); ?> //displays the frontpage title whose article order is 1

This function gets the frontpage article description and displays it wherever the user specifies it to be displayed. User MUST define which frontpage article to display by replacing $order_num with the actual order number of the frontpage article.

<?php echo $contentdisplay->getFrontPageDescription(1); ?> //displays the frontpage title whose article order is 1

This function displays the current page's breadcrumb.

<?php $contentdisplay->getBreadcrumbs(">"); ?>

You can change the character > to whatever you'd like to act as the divider

This function displays the search box where the user specifies where they want the box to appear.

<?php $websearch->DisplaySearchBox(); ?>

This function displays the results of a current search from the search box. Must be placed inside the search template where the user wants the results to appear.

<?php $websearch->SearchResults(); ?>

This function displays the main frontend web navigation wherever the user defines it to be displayed.

<?php $navigation->displayNavigation(); ?>

Gets the unique ID of the article page. Can be echoed onto a page, or saved into a variable.

<?php $contentdisplay->getArticleID(); ?>

Gets the unique parent ID of the article page. Can be echoed onto a page, or saved into a variable.

<?php $contentdisplay->getArticleParentID(); ?>

Gets the article's url that is linked to a url outside of the website. Can be echoed onto a page, or saved into a variable

<?php $contentdisplay->getArticleURL(); ?>

Gets the article's publish down check flag --> 1 means that there is a publish down date, 0 means that there is not a publish down date. Can be echoed onto a page, or saved into a variable.

<?php $contentdisplay->getArticlePublishDownCheck(); ?>

Gets and displays the article's publish up date (also the date in which the article was created). Can be echoed onto a page, or saved into a variable.

<?php echo $contentdisplay->getArticlePublishUpDate(); ?>

Gets and displays the article's publish down date (also the date in which the article will cease to be published on the website). Can be echoed onto a page, or saved into a variable.

<?php echo $contentdisplay->getArticlePublishDownDate(); ?>

Gets and displays the frontpage article's unique ID by specifying the order number of the article to use. Can be echoed onto a page, or saved into a variable.

<?php $contentdisplay->getFrontPageID(1); ?> //gets the frontpage article's ID with order number of 1

Gets the frontpage article's publish down check flag --> 1 means that there is a publish down date, 0 means that there is not a publish down date. Can be echoed onto a page, or saved into a variable.

<?php $contentdisplay->getFrontPagePublishDownCheck(1); ?> //gets the frontpage article's publish down check flag with order number of 1

Gets and displays the frontpage article's publish up date (creation date) by specifying the order number of the article to use. Can be echoed onto a page, or saved into a variable.

<?php $contentdisplay->getFrontPagePublishUpDate(1); ?> //gets the frontpage article's publish up date with order number of 1

Gets and displays the frontpage article's publish down date (creation date) by specifying the order number of the article to use. Can be echoed onto a page, or saved into a variable.

<?php $contentdisplay->getFrontPagePublishDownDate(1); ?> //gets the frontpage article's publish down date with order number of 1

Displays the article's author. ONLY WORKS on the article pages.

<?php $contentdisplay->displayAuthorName(); ?>

Displays the "Forward This Page" link. You can modify this to be an image, form button, etc., as long as you retain the correct a href info.

<a href="/forward_popup.php?t=<?=$siteName?>" rel="ibox&height=300&width=600">Forward This Page</a>

Displays the "Print This Page" link. You can modify this to be an image, form button, etc., as long as you retain the correct a href info.

<a href="/print_page.php?id=<?=$_GET['id']?>&s=<?=$siteName?>&i=<?=$i?>" target="_blank">Print This Page</a>


Download Samples Pack


File Contains:

  1. articles_template.php - Sample articles / content page
  2. calendar_template.php - Sample calendar page
  3. frontpage_final.php - Sample frontpage content
  4. search_template.php - Sample search template
  5. public_calendar.css - CSS referenced from calendar_template.php for the calendar styles
  6. mainstyles.css - Sample CSS file for use with all the above templates