protected function display() { parent::display(); if (count($this->unprocessed_photos) > 0) { Swat::displayInlineJavaScript($this->getInlineJavaScript()); } }
protected function displayGoogleAnalytics() { $js = $this->app->analytics->getGoogleAnalyticsInlineJavascript(); if ($js != null) { Swat::displayInlineJavaScript($js); } }
protected function displayContent() { $div_tag = new SwatHtmlTag('div'); $div_tag->id = $this->id; $div_tag->open(); $div_tag->close(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
public function display() { if (!$this->visible) { return; } parent::display(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
protected function displayContent() { $div_tag = new SwatHtmlTag('div'); $div_tag->id = $this->id; $div_tag->open(); $div_tag->close(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); printf('<script src="%s" type="text/javascript"></script>', $this->getValue('uri')); }
public function display() { parent::display(); $span_tag = new SwatHtmlTag('span'); $span_tag->id = $this->id; $span_tag->class = 'blorg-file-attach-status'; $span_tag->setContent(''); $span_tag->display(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
protected function displayContent() { echo '<div id="' . $this->calendar_id . '" ' . 'class="pinhole-calendar-gadget-container">'; $date = new SwatDate(); $date->convertTZById($this->app->config->date->time_zone); $date->setDay(1); $date->setTime(0, 0, 0); echo '<div class="pinhole-calendar-gadget-head">'; echo '<a class="pinhole-calendar-gadget-prev" ' . 'title="' . Pinhole::_('Previous Month') . '" ' . 'id="' . $this->calendar_id . '_prev" href="#">«</a>'; echo '<div id="' . $this->calendar_id . '_month" class="pinhole-calendar-month">'; echo self::displayCalendarMonth($this->app, $date); echo '</div>'; echo '<a class="pinhole-calendar-gadget-next" ' . 'title="' . Pinhole::_('Next Month') . '" ' . 'id="' . $this->calendar_id . '_next" href="#">»</a>'; echo '</div>'; echo '<div id="' . $this->calendar_id . '_body" class="pinhole-calendar-body">'; echo self::displayCalendarBody($this->app, $date); echo '</div>'; echo '</div>'; Swat::displayInlineJavaScript($this->getInlineJavaScript($date)); }
public function display() { if (!$this->visible) { return; } if ($this->file === null) { return; } parent::display(); $div_tag = new SwatHtmlTag('div'); $div_tag->id = $this->id; $div_tag->class = 'blorg-header-image-display'; $div_tag->open(); $img_tag = new SwatHtmlTag('img'); $img_tag->src = $this->file->getRelativeUri('../'); $img_tag->alt = Blorg::_('Header Image'); $img_tag->display(); $div_tag->close(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
public function build() { parent::build(); $config = $this->app->config; $this->layout->startCapture('content'); if ($config->pinhole->google_maps_api_key === null) { echo Pinhole::_('You must specify a google maps api key ' . 'to use geo-tagging features.'); } elseif ($config->pinhole->google_maps_admin_api_key === null) { echo Pinhole::_('You must specify an admin google maps api key ' . 'to use geo-tagging features.'); } else { printf('<iframe src="%s/Search" frameborder="0" ' . 'id="search_iframe"></iframe>', $this->getComponentName()); echo '<div id="map_frame">'; echo '<form method="post" action="#">'; printf('<input type="submit" id="set_gps" value="%s" />', Pinhole::_('Geo-Tag Photo(s)')); printf(' <input type="checkbox" id="auto_next" /> ' . '<label for="auto_next">%s</label>', Pinhole::_('Automatically proceed to next photo')); echo '</form>'; echo '<div id="map"></div>'; echo '</div>'; echo Swat::displayInlineJavaScript($this->getInlineJavaScript()); } $this->layout->endCapture(); }
/** * Displays this embed markup view */ public function display() { if (!$this->visible) { return; } parent::display(); $div_tag = new SwatHtmlTag('div'); $div_tag->id = $this->id; $div_tag->open(); $label_tag = new SwatHtmlTag('label'); $label_tag->for = $this->id . '_textarea'; $label_tag->class = 'blorg-markup-view-label'; $label_tag->open(); $span_tag = new SwatHtmlTag('span'); $span_tag->setContent(Blorg::_('Embed:')); $span_tag->display(); $label_tag->close(); $first_option = reset($this->getOptions()); $textarea = $this->getCompositeWidget('textarea'); $textarea->value = $first_option->value; $textarea->display(); $div_tag->close(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
protected function display() { parent::display(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
protected function buildContent() { parent::buildContent(); if (!$this->isComplete()) { $this->layout->startCapture('content'); Swat::displayInlineJavaScript($this->getInlineJavaScript()); $this->layout->endCapture(); } }
public function display() { $this->createEmbeddedWidgets(); $form_tag = new SwatHtmlTag('form'); $form_tag->id = $this->id . '_form'; $form_tag->class = 'swat-form'; $form_tag->method = 'post'; $form_tag->action = $this->action; $form_tag->enctype = 'multipart/form-data'; $form_tag->open(); $div_tag = new SwatHtmlTag('div'); $div_tag->open(); $hidden_input_tag = new SwatHtmlTag('input'); $hidden_input_tag->type = 'hidden'; $hidden_input_tag->id = $this->id . '_identifier'; $hidden_input_tag->name = 'UPLOAD_IDENTIFIER'; $hidden_input_tag->value = $this->id . '_' . uniqid(); $hidden_input_tag->display(); parent::display(); echo ' '; $button_input_tag = new SwatHtmlTag('input'); $button_input_tag->type = 'submit'; $button_input_tag->id = $this->id . '_button'; $button_input_tag->class = 'pinhole-photo-uploader-submit-button'; $button_input_tag->value = $this->title; $button_input_tag->display(); $div_tag->close(); $progress_bar_div_tag = new SwatHtmlTag('div'); $progress_bar_div_tag->class = 'pinhole-photo-uploader-progress-bar'; $progress_bar_div_tag->open(); $this->progress_bar->display(); $progress_bar_div_tag->close(); $processing_div_tag = new SwatHtmlTag('div'); $processing_div_tag->id = $this->id . '_processing'; $processing_div_tag->class = 'pinhole-photo-uploader-processing'; $processing_div_tag->open(); echo Pinhole::_('Processing'); $processing_div_tag->close(); $form_tag->close(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
protected function displayContent() { echo '<div id="map"></div>'; echo Swat::displayInlineJavaScript($this->getInlineJavaScript()); }
protected function buildInternal() { parent::buildInternal(); $this->layout->startCapture('content'); Swat::displayInlineJavaScript($this->getInlineJavaScript()); $this->layout->endCapture(); }
public function build() { parent::build(); $this->layout->startCapture('content'); Swat::displayInlineJavaScript('var edit_page = new PinholePhotoEditPage();'); $this->layout->endCapture(); }
protected function buildInternal() { parent::buildInternal(); $form = $this->ui->getWidget('certificate_form'); $form->action = $this->getSource(); if ($this->isProcessed()) { $this->buildCertificates(); ob_start(); Swat::displayInlineJavaScript($this->getInlineJavaScript()); $this->ui->getWidget('certificate')->content = ob_get_clean(); } }