public static function fileListValue($value, $entry, $lang_dependent, $field) { if ($lang_dependent) { $data = array('post_id' => $entry->post_id, 'feed_field_id' => $field->id, 'lang_id' => $entry->lang_id); } else { $data = array('post_id' => $entry->id, 'feed_field_id' => $field->id, 'lang_id' => 0, 'value' => 0); } FeedFieldValue::where($data)->delete(); FeedFieldValue::insert($data); return Files::widget($lang_dependent ? 'doc_post_lang' : 'doc_post', $entry->id); }
<div class="tab-pane" id="lang<?php echo $lang->id; ?> "> <?php echo View::make('sections.feed.tab-post-lang')->with('post_lang', $post_langs[$lang->id])->with('post', $general['post']); ?> </div> <?php } } ?> <div class="tab-pane" id="media"> <div class="c20"></div> <?php echo Files::widget('post_cover', $general['post']->id, 1); ?> </div> </div> <?php if ($general['post']->is_trash) { ?> <form method="post" action="<?php echo url('feed/delete'); ?> "> <input type="hidden" name="id" value="<?php echo $general['post']->id; ?> " />
?> ' method='post'> <input type='hidden' name='id' value='<?php echo isset($gallery->id) ? $gallery->id : 0; ?> ' /> <table class="table table-bordered table-hover"> <tr> <th><?php echo varlang('name--3'); ?> </th> <td> <input type="text" name="gallery[name]" class='form-control' value='<?php echo isset($gallery->name) ? $gallery->name : ''; ?> ' /> </td> </tr> </table> </form> </div> <div class="tab-pane" id="gfiles"> <div class="c10"></div> <?php echo Files::widget('gallery', $gallery->id, 0, isset($gallery->folder) && $gallery->folder ? $gallery->folder : ''); ?> </div> </div>
<h4>Logo parteneri</h4> <span>Dimensiunile reconmandate a banerului: 370 x 125 </span> <?php echo Files::widget('partners_logo', 1);
?> </th> <td> <?php echo Form::select('type', array('Dispoziție' => 'Dispoziție', 'Decizie' => 'Decizie'), $act->type, array('class' => 'form-control')); ?> </td> </tr> <tr> <th><?php echo varlang('emitent'); ?> </th> <td> <?php echo Form::select('emitent', array('Primaria' => 'Primaria', 'Consiliu Local' => 'Consiliu Local'), $act->type, array('class' => 'form-control')); ?> </td> </tr> </table> </form> <h4><?php echo varlang('document-1'); ?> </h4> <?php echo Files::widget(ActeLocaleModel::$filesModule, $act->id, 1, ActeLocaleModel::$filesDir);
<table class="table table-bordered table-hover"> <?php if (isset($person->id)) { ?> <tr> <th><?php echo varlang('photo'); ?> </th> <td> <?php echo Files::widget('person', $person->id, 1); ?> </td> </tr> <tr> <th><?php echo varlang('chat-icon'); ?> </th> <td> <?php echo Files::widget('person_chat', $person->id, 1); ?> </td> </tr> <?php } ?> </table>
<?php } ?> <?php } ?> <?php } ?> <h4><?php echo varlang('favicon'); ?> </h4> <?php echo Files::widget('website_favicon', 1, 1); ?> </div> <div class="tab-pane" id="location"> <form action="<?php echo url('settings/save'); ?> " method="post" class="ajax-auto-submit"> <table class="table table-bordered table-hover">
echo varlang('icon-2'); ?> </h3> <?php echo Files::widget('page_icon', $page->id, 1); } ?> <?php if ($page->general_node && Config::get('template.page_icon_active')) { ?> <h3><?php echo varlang('icon-activ'); ?> </h3> <?php echo Files::widget('page_icon_active', $page->id, 1); } ?> <?php if ($page->general_node && Config::get('template.page_bg') || Config::get('template.page_bg_all')) { ?> <h3><?php echo varlang('background'); ?> </h3> <?php echo Files::widget('page_bg', $page->id, 1); }