<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Wolf CMS Forum - Add functions?]]></title>
	<link rel="self" href="http://www.wolfcms.org/forum/feed-atom-topic347.xml"/>
	<updated>2010-03-01T12:49:37Z</updated>
	<generator>PunBB</generator>
	<id>http://www.wolfcms.org/forum/topic347.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Add functions?]]></title>
			<link rel="alternate" href="http://www.wolfcms.org/forum/post2068.html#p2068"/>
			<content type="html"><![CDATA[[code]<?php echo Setting::get('admin_title'); ?>[/code] works well...

Is there something like that for the administrator email?
Found...

[code]<?php echo Setting::get('admin_email'); ?>[/code]]]></content>
			<author>
				<name><![CDATA[oweb]]></name>
				<uri>http://www.wolfcms.org/forum/user64.html</uri>
			</author>
			<updated>2010-03-01T12:49:37Z</updated>
			<id>http://www.wolfcms.org/forum/post2068.html#p2068</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add functions?]]></title>
			<link rel="alternate" href="http://www.wolfcms.org/forum/post2043.html#p2043"/>
			<content type="html"><![CDATA[[quote=mvdkleijn]Why use functions for this? Why not just use a snippet, page part (on the Home Page) or even just put them in the Layout?[/quote]
For new users it could be interesting to add this in layouts/templates (automated copyrights...). So, peoples who made new templates can add these variables...

[quote=David]Since these are items that would not change (or not much?) once a site is built, my sense too is that they don't need a "function".

But having said that, at least you could use the "Admin site title" field in Administration > Settings for this ... if you wanted to! IF the {title in your admin} == {title of your site}, then 

[code]<?php echo Setting::get('admin_title'); ?>[/code]

can be used to put it anywhere you want in the frontend, too.

FWIW![/quote]
I'll test that!]]></content>
			<author>
				<name><![CDATA[oweb]]></name>
				<uri>http://www.wolfcms.org/forum/user64.html</uri>
			</author>
			<updated>2010-02-28T16:35:47Z</updated>
			<id>http://www.wolfcms.org/forum/post2043.html#p2043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add functions?]]></title>
			<link rel="alternate" href="http://www.wolfcms.org/forum/post2042.html#p2042"/>
			<content type="html"><![CDATA[Since these are items that would not change (or not much?) once a site is built, my sense too is that they don't need a "function".

But having said that, at least you could use the "Admin site title" field in Administration > Settings for this ... if you wanted to! IF the {title in your admin} == {title of your site}, then 

[code]<?php echo Setting::get('admin_title'); ?>[/code]

can be used to put it anywhere you want in the frontend, too.

FWIW!]]></content>
			<author>
				<name><![CDATA[David]]></name>
				<uri>http://www.wolfcms.org/forum/user12.html</uri>
			</author>
			<updated>2010-02-28T16:11:21Z</updated>
			<id>http://www.wolfcms.org/forum/post2042.html#p2042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add functions?]]></title>
			<link rel="alternate" href="http://www.wolfcms.org/forum/post2040.html#p2040"/>
			<content type="html"><![CDATA[Why use functions for this? Why not just use a snippet, page part (on the Home Page) or even just put them in the Layout?]]></content>
			<author>
				<name><![CDATA[mvdkleijn]]></name>
				<uri>http://www.wolfcms.org/forum/user5.html</uri>
			</author>
			<updated>2010-02-28T15:48:10Z</updated>
			<id>http://www.wolfcms.org/forum/post2040.html#p2040</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add functions?]]></title>
			<link rel="alternate" href="http://www.wolfcms.org/forum/post2039.html#p2039"/>
			<content type="html"><![CDATA[Is it possible to implement 2 new functions?
- website name
- website slogan
It could be interesting to add these possibilities when there's a new Wolf install...]]></content>
			<author>
				<name><![CDATA[oweb]]></name>
				<uri>http://www.wolfcms.org/forum/user64.html</uri>
			</author>
			<updated>2010-02-28T15:27:22Z</updated>
			<id>http://www.wolfcms.org/forum/post2039.html#p2039</id>
		</entry>
</feed>

