本文整理汇总了PHP中Files::widget方法的典型用法代码示例。如果您正苦于以下问题:PHP Files::widget方法的具体用法?PHP Files::widget怎么用?PHP Files::widget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Files
的用法示例。
在下文中一共展示了Files::widget方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fileListValue
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);
}
示例2: url
<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;
?>
" />
示例3: isset
?>
' 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>
示例4:
<h4>Logo parteneri</h4>
<span>Dimensiunile reconmandate a banerului: 370 x 125 </span>
<?php
echo Files::widget('partners_logo', 1);
示例5: array
?>
</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);
示例6: varlang
<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>
示例7: varlang
<?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">
示例8: varlang
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);
}