Example #1
0
	function get_setting_irc($team = NULL)
	{
		if(is_null($team)) return get_home_team()->irc;
		$team = new Team();
		$team->where('name', $team)->limit(1)->get();
		return $team->irc;
	}
Example #2
0
 function info_get()
 {
     $result = array();
     $result["title"] = get_setting('fs_gen_site_title');
     $result["version"] = FOOLSLIDE_VERSION;
     $result["home_team"] = get_home_team()->to_array();
     $this->response($result, 200);
     // 200 being the HTTP response code
 }
Example #3
0
	<title><?php 
echo $feed_name;
?>
</title>
	<link href="<?php 
echo $feed_url;
?>
"/>
	<updated><?php 
echo date(DATE_W3C, strtotime($posts["chapters"][0]["created"]));
?>
</updated>
	<author>
		<name><?php 
echo get_home_team()->name;
?>
</name>
	</author>
	<id><?php 
echo site_url();
?>
</id>
	
	<?php 
foreach ($posts["chapters"] as $entry) {
    ?>
		<entry>
			<title><?php 
    echo xml_convert($entry["title"]);
    ?>
Example #4
0
 function get_setting_facebook($team = NULL)
 {
     $hometeam = get_setting('fs_gen_default_team');
     $team = get_home_team();
     return $team->facebook;
 }