public function BulkPriceTable() { if ($this->owner->dataRecord instanceof Product) { $prices = $this->owner->dataRecord->BulkPrices(); } else { $prices = ArrayList::create(); } $vars = array("BulkPrices" => $prices, "SiteConfig" => Siteconfig::current_site_config()); return $this->owner->renderWith("BulkPriceTable", $vars); }
public function rss() { $rss = new RSSFeed($list = MagnificGalleryItem::get()->sort('Created DESC')->limit(10)->toArray(), $link = Director::absoluteURL($this->RssLink()), $title = _t('MagnificGalleryPage.RSS_TITLE', 'Recent images from %s', array(Siteconfig::current_site_config()->Title)), $description = _t('MagnificGalleryPage.RSS_DESCRIPTION', 'Get recents images from our website')); // Outputs the RSS feed to the user. return $rss->outputToBrowser(); }
<?php $a = Siteconfig::val("facebook/fanpage/url"); if ($a !== null) { echo '<div id="facebook_fanpage_widget" class="widget"> <iframe src="//www.facebook.com/plugins/likebox.php?href=' . urlencode($a) . '&width=200&height=258&show_faces=true&colorscheme=light&stream=false&show_border=false&header=false&appId=348004995296076" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:258px;" allowTransparency="true"></iframe> </div>'; }