Ejemplo n.º 1
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $view = $this->ui->getWidget('index_view');
     if ($view->hasGroup('instance_group')) {
         $view->getGroup('instance_group')->visible = $this->app->isMultipleInstanceAdmin();
     }
 }
Ejemplo n.º 2
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $toolbar = $this->ui->getWidget('toolbar');
     $toolbar->setToolLinkValues($this->photo->id);
     $toolbar = $this->ui->getWidget('comments_toolbar');
     $toolbar->setToolLinkValues($this->photo->id);
     // set default time zone
     $date_column = $this->ui->getWidget('comments_view')->getColumn('createdate');
     $date_renderer = $date_column->getRendererByPosition();
     $date_renderer->display_time_zone = $this->app->default_time_zone;
 }
Ejemplo n.º 3
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $ds = new SwatDetailsStore($this->tag);
     $ds->photo_count = $this->tag->getPhotoCount();
     $details_view = $this->ui->getWidget('details_view');
     $details_view->data = $ds;
     $details_frame = $this->ui->getWidget('details_frame');
     $details_frame->title = Pinhole::_('Tag');
     $details_frame->subtitle = $this->tag->title;
     $this->ui->getWidget('for_sale')->visible = $this->ui->getWidget('not_for_sale')->visible = $this->ui->getWidget('for_sale_divider')->visible = $this->app->config->clustershot->username !== null;
     $this->buildToolbar();
 }
Ejemplo n.º 4
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildMessages();
     $this->buildToolbars();
     $this->ui->getWidget('details_frame')->title = $this->newsletter->getCampaignTitle();
     $view = $this->ui->getWidget('details_view');
     $view->data = $this->getDetailsStore();
     if ($view->hasField('preheader_field')) {
         $view->getField('preheader_field')->visible = $this->newsletter->preheader != '';
     }
     if ($view->hasField('google_campaign_field')) {
         $view->getField('google_campaign_field')->visible = $this->newsletter->google_campaign != '';
     }
     if ($view->hasField('template_field')) {
         $view->getField('template_field')->visible = $this->newsletter->template instanceof DeliveranceNewsletterTemplate;
     }
     if ($view->hasField('campaign_segment_field')) {
         $view->getField('campaign_segment_field')->visible = $this->newsletter->campaign_segment instanceof DeliveranceCampaignSegment;
     }
     if ($view->hasField('instance_field')) {
         $view->getField('instance_field')->visible = $this->app->isMultipleInstanceAdmin();
     }
 }
Ejemplo n.º 5
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $toolbar = $this->ui->getWidget('toolbar');
     $toolbar->setToolLinkValues($this->photo->id);
 }
Ejemplo n.º 6
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildPost();
     $this->buildComments();
     $toolbar = $this->ui->getWidget('details_toolbar');
     $toolbar->setToolLinkValues($this->post->id);
 }
Ejemplo n.º 7
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildTagsContent();
     $this->buildErrorsContent();
 }
Ejemplo n.º 8
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->ui->getWidget('status_flydown')->addOptionsByArray(PinholePhotographer::getStatuses());
 }