public function __construct($id = null) { parent::__construct($id); $this->html_head_entry_set->addEntrySet(XML_RPCAjax::getHtmlHeadEntrySet()); $yui = new SwatYUI(array('dom', 'event')); $this->html_head_entry_set->addEntrySet($yui->getHtmlHeadEntrySet()); $this->addJavaScript('packages/blorg/admin/javascript/blorg-file-attach-control.js', Blorg::PACKAGE_ID); $this->addStyleSheet('packages/blorg/admin/styles/blorg-file-attach-control.css', Blorg::PACKAGE_ID); $this->requires_id = true; }
/** * Creates a new uploader * * @param string $id a non-visible unique id for this widget. * * @see SwatWidget::__construct() */ public function __construct($id = null) { parent::__construct($id); $this->requires_id = true; $yui = new SwatYUI(array('event', 'animation')); $this->html_head_entry_set->addEntrySet($yui->getHtmlHeadEntrySet()); $ajax = new XML_RPCAjax(); $this->html_head_entry_set->addEntrySet($ajax->getHtmlHeadEntrySet()); $this->addJavaScript('packages/pinhole/admin/javascript/pinhole-photo-uploader.js', Pinhole::PACKAGE_ID); $this->addStyleSheet('packages/pinhole/admin/styles/pinhole-photo-uploader.css', Pinhole::PACKAGE_ID); $this->title = Pinhole::_('Upload'); }
public function finalize() { parent::finalize(); $this->layout->addHtmlHeadEntrySet(XML_RPCAjax::getHtmlHeadEntrySet()); $yui = new SwatYUI(array('dom', 'event')); $this->layout->addHtmlHeadEntrySet($yui->getHtmlHeadEntrySet()); $this->layout->addHtmlHeadEntry(new SwatJavaScriptHtmlHeadEntry('packages/pinhole/admin/javascript/pinhole-geo-tag-map.js', Pinhole::PACKAGE_ID)); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-geo-tag-index.css', Pinhole::PACKAGE_ID)); $this->layout->startCapture('html_head_entries'); echo "\n\n<!-- head entries for Google Maps -->\n"; printf('<script src="http://maps.google.com/maps?file=api&' . 'v=2&sensor=false&key=%s"></script>', $this->app->config->pinhole->google_maps_admin_api_key); echo "\n\n"; $this->layout->endCapture(); }
public function finalize() { parent::finalize(); if (count($this->unprocessed_photos) > 0) { $this->layout->addHtmlHeadEntrySet(XML_RPCAjax::getHtmlHeadEntrySet()); $yui = new SwatYUI(array('dom', 'animation', 'event')); $this->layout->addHtmlHeadEntrySet($yui->getHtmlHeadEntrySet()); $this->layout->addHtmlHeadEntry(new SwatJavaScriptHtmlHeadEntry('packages/pinhole/admin/javascript/pinhole-photo-pending.js', Pinhole::PACKAGE_ID)); $this->layout->addHtmlHeadEntry(new SwatJavaScriptHtmlHeadEntry('packages/swat/javascript/swat-checkbox-cell-renderer.js', Swat::PACKAGE_ID)); } }
public function finalize() { parent::finalize(); $yui = new SwatYUI(array('dom', 'event')); $this->layout->addHtmlHeadEntrySet($yui->getHtmlHeadEntrySet()); $this->layout->addHtmlHeadEntry(new SwatJavascriptHtmlHeadEntry('packages/pinhole/javascript/pinhole-map.js'), Pinhole::PACKAGE_ID); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/swat/styles/swat-tile-view.css'), Swat::PACKAGE_ID); $this->layout->addHtmlHeadEntry(new SwatJavascriptHtmlHeadEntry('packages/swat/javascript/swat-view.js'), Swat::PACKAGE_ID); $this->layout->addHtmlHeadEntry(new SwatJavascriptHtmlHeadEntry('packages/swat/javascript/swat-tile-view.js'), Swat::PACKAGE_ID); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/site/styles/site-image-cell-renderer.css'), Site::PACKAGE_ID); $this->layout->addHtmlHeadEntrySet(XML_RPCAjax::getHtmlHeadEntrySet()); $this->layout->startCapture('html_head_entries'); echo "\n\n<!-- head entries for Google Maps -->\n"; printf('<script src="http://maps.google.com/maps?file=api&' . 'v=2&sensor=false&key=%s"></script>', $this->app->config->pinhole->google_maps_api_key); echo "\n"; echo '<script src="packages/pinhole/javascript/' . 'pinhole-marker-cluster.js"></script>'; echo "\n\n"; $this->layout->endCapture(); /* $this->layout->addHtmlHeadEntry(new SwatJavascriptHtmlHeadEntry( 'packages/pinhole/javascript/pinhole-marker-cluster.js'), Pinhole::PACKAGE_ID); */ }
protected function define() { static $count = 0; $this->calendar_id = 'pinhole_calendar_gadget' . $count; $count++; $this->html_head_entry_set->addEntrySet(XML_RPCAjax::getHtmlHeadEntrySet()); $yui = new SwatYUI(array('event', 'animation')); $this->html_head_entry_set->addEntrySet($yui->getHtmlHeadEntrySet()); $this->addJavascript('packages/pinhole/javascript/pinhole-calendar-gadget.js', Pinhole::PACKAGE_ID); $this->addStylesheet('packages/pinhole/styles/pinhole-calendar-gadget.css', Pinhole::PACKAGE_ID); $this->defineDefaultTitle(Pinhole::_('Photo Calendar')); $this->defineDescription(Pinhole::_('Displays a calendar of the last month with the photos taken.')); }