[geeklog-cvs] Geeklog-2.x/plugins/content/themes/default ContentEditor.thtml, NONE, 1.1 ContentMainView.thtml, NONE, 1.1 ContentManager.thtml, NONE, 1.1 ContentView.thtml, NONE, 1.1 PluginSubMenu.thtml, NONE, 1.1 UserContentView.thtml, NONE, 1.1

Damien Hodgkin dhodgkin at qs1489.pair.com
Wed Aug 8 16:23:47 EDT 2007


Update of /cvsroot/geeklog2/Geeklog-2.x/plugins/content/themes/default
In directory qs1489.pair.com:/tmp/cvs-serv13905/plugins/content/themes/default

Added Files:
	ContentEditor.thtml ContentMainView.thtml ContentManager.thtml 
	ContentView.thtml PluginSubMenu.thtml UserContentView.thtml 
Log Message:
Second commit

--- NEW FILE: ContentView.thtml ---
<p>
    <font color="Red">{mvcMessages:h}</font>
    <font color="Red">{getErrors():h}</font>
</p>
<div>
    <h1>{content.getContentTitle():h}</h1>
    written by <b>{content.getContentAuthor()}</b> on <<em>date content written goes here</em>>
    <div>
        <em>{content.getDescription()}</em>
        <p>{content.getContentBody():h}</p>
    </div>
</div>

--- NEW FILE: PluginSubMenu.thtml ---
<p class="sideBarTitle">Content Menu:</p>
<ul>
    <li><a href="{baseUrl}/index.php/content/">Contents Home</a></li>
    <li><a href="{baseUrl}/index.php/content/myContents/">My Contents</a></li>
    {if:hasPluginAccess(#content#,#LISTING#)}
	<li><a href="{baseUrl}/index.php/content/contentAdmin/">Manage Contents</a></li>
	{end:}
	{if:hasPluginAccess(#content#,#DELETE#)}
	<li><b><a href="{baseUrl}/index.php/content/trashContent/">Trash</a></b></li>
	{end:}
</ul>
--- NEW FILE: ContentEditor.thtml ---
<h1>Geeklog 2 Content Editor</h1>
<p>Put some sort of description on how to use this form here.</p>
<p>
    <font color="Red">{mvcMessages:h}</font>
    <font color="Red">{getErrors():h}</font>
</p>
<!-- TinyMCE -->
<script language="javascript" type="text/javascript">
tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_path_location : "bottom"
});
</script>
<form id="contentEditor" action="{baseUrl}/index.php/content/contentSave" method="POST">
    <input type ="hidden" name="cmd" value="contentSave" />
    <input type="hidden" name="Gl2Content->ContentId" />
    <table>
        <tr>
            <th align="left">Date Created:</th>
            <td>{getFormattedDate(item,#getDateCreated#)}</td>
        </tr>
        <tr>
            <th align="left">Expiration Date:</th>
            <td>
                <input type="text" size="44" name="Gl2Item->expirationDate" />
                <i>MM/DD/YYYY</i>
            </td>
        </tr>
        <tr>
            <th align="left">Content Type:</th>
            <td><select name="Gl2Content->ContentType"></select></td>
        </tr>
        <tr>
            <th align="left">Title:</th>
            <td><input type="text" size="53" name="Gl2Content->ContentTitle" /></td>
        </tr>
        <tr>
            <th align="left">Description:</th>
            <td>
                <textarea cols="71" rows="10" name="Gl2Content->Description"></textarea>
            </td>
        </tr>
        <tr>
            <th align="left">Body:</th>
            <td>
                <textarea cols="71" rows="20" name="Gl2Content->ContentBody"></textarea>
            </td>
        </tr>
        <tr>
            <th align="left">Rewrite Id:</th>
            <td><input type="text" size="53" name="Gl2Item->rewriteId" /></td>        
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="Save Content!" /> 
                {if:content.getContentId()}
                <form method="GET" action="{baseUrl}/index.php/content/contentDelete/{content.getContentId()}" method="POST">
                    <input type="submit" value="Delete" />                
                </form>
                {end:}
            </td>
        </tr>
    </table>
</form>
--- NEW FILE: UserContentView.thtml ---
<p>
    <font color="Red">{mvcMessages:h}</font>
</p>

<!-- this is where we grab the users list of contributed contents and display them -->
<h1>My Contents:</h1>
{if:numContents()}
{foreach:contents,key,curContent}
    <div>
        <p>
            <b>{curContent.getContentTitle()}</b><br />
            written by <b>{curContent.getContentAuthor()}</b> on <<em>date content written goes here</em>><br />
            <em>Brief overview</em>:<br />{curContent.getDescription()}<br />
            <a href="{baseUrl}/index.php/content/contentDisplay/{curContent.getContentUrl()}">Read more...</a>
            <hr />
        </p>
    </div>
{end:}
{end:}
--- NEW FILE: ContentManager.thtml ---
<!-- $Id: ContentManager.thtml,v 1.1 2007/08/08 20:23:45 dhodgkin Exp $ -->
<p>
    <font color="Red">{mvcMessages:h}</font>
    <font color="Red">{getErrors():h}</font>
</p>

<h1>{pageTitle}</h1>
<p>
    This is the content manager homepage where you can administer contents!
</p>
<br /> 
<table class="gl2AdminListTable">
    <tr style="background:#FFFFFF;">
        <th class="gl2AdminHeaderField"> </th>
        <th class="gl2AdminHeaderField"> </th>
        <th class="gl2AdminHeaderField">Content Id</th>
        <th class="gl2AdminHeaderField">Author</th>
        <th class="gl2AdminHeaderField">Title</th>
        <th class="gl2AdminHeaderField">Description</th>
        <th class="gl2AdminHeaderField">Url (via RewriteId)</th>
        <th class="gl2AdminHeaderField">Clicks</th>
    </tr>
    {if:numContents()}
    {foreach:contents,key,curContent}
    <tr id="content*_{curContent.getContentsByKeyword()}" class="{getCSSRowClass()}" onMouseOver="className='gl2RollOver';" onMouseOut="className='{getLastCSSRowClass()}';" flexy:ignore>
        <td align="center"><a href="{baseUrl}/index.php/content/contentEdit/{curContent.getContentId()}"><img border="0" src="{baseUrl}/images/editpencil.png"/></a></td>
        <td align="center">
            <!-- form action="{baseUrl}/index.php/content/contentDelete" method="POST">
                <input type ="hidden" name="cmd" value="contentDelete" />
                <input type="hidden" name="Gl2Content->ContentId" / -->
                <a href="{baseUrl}/index.php/content/contentDelete/{curContent.getContentId()}">Delete</a>
                <!-- input type="submit" value="Delete" />
            </form -->
        </td>
        <td>{curContent.getContentId()}</td>
        <td>{curContent.getContentAuthor()}</td>
        <td>{curContent.getContentTitle()}</td>
        <td>{curContent.getDescription()}</td>
        <td><a href="{baseUrl}/index.php/content/contentDisplay/{curContent.getContentId()}">{getRewriteId(curContent)}</a></td>
        <td align="center">{curContent.getNumClicks()}</td>
    </tr>
    {end:}
    <tr>
        <td colspan="5">
        	<a href="{baseUrl}/index.php/content/contentEdit/"><b>New Content</b></a>        	
        </td>
    </tr>
    {else:}
    <tr>
    	<td colspan="5">There are no contents to display.  You can <a href="{baseUrl}/index.php/content/contentEdit">add new content now</a>!</td>
    </tr>
    {end:}
</table>
<br />
<center>
    {getPagerControl():h}
</center>
--- NEW FILE: ContentMainView.thtml ---
<p>
    <font color="Red">{mvcMessages:h}</font>
</p>

<!-- this is where we grab the current content and display it -->
<h1>Latest News:</h1>
{if:numContents()}
{foreach:contents,key,curContent}
    <div>
        <p>
            <b>{curContent.getContentTitle()}</b><br />
            written by <b>{curContent.getContentAuthor()}</b> on <<em>date content written goes here</em>><br />
            <em>Brief overview</em>:<br />{curContent.getDescription()}<br />
            <a href="{baseUrl}/index.php/content/contentDisplay/{curContent.getContentId()}">Read more...</a>
            <hr />
        </p>
    </div>
{end:}
{end:}



More information about the geeklog-cvs mailing list