PHP Classes

File: attachmanager_views_examples/_fileitem.php

Recommend this page to a friend!
  Classes of Insolita  >  Ext Imperavi  >  attachmanager_views_examples/_fileitem.php  >  Download  
File: attachmanager_views_examples/_fileitem.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Ext Imperavi
Integrates the Imperavi editor in YII applications
Author: By
Last change:
Date: 8 months ago
Size: 1,419 bytes
 

Contents

Class file image Download
<?php
/**
 * ??????????? ???????????? ?????
 * @var \yii\web\View $this
 * @var AttachModelExample $file
 */

$popover_content
   
= '
<div id="redactor_image_popover_'
. $file->id . '">
        <div>'
   
.
        \
yii\helpers\Html::a(
           
"???????",
           
'#',
            [
               
'data-redactor_filedeleter' => $file->id,
               
'class' => 'btn btn-danger btn-sm',
               
'data-confirm' => '?? ??????? ??? ?????? ??? ????????'
           
]
        )
    .
'</div> <div>'

   
. \yii\helpers\Html::button(
       
"???????? html",
        [
'data-redactor_inshtml_file' => $file->id, 'class' => 'btn btn-info btn-sm']
    )
    . \
yii\helpers\Html::button(
       
"???????? bb-code",
        [
'data-redactor_insbb_file' => $file->id, 'class' => 'btn btn-info btn-sm']
    )
    .
'
        </div>
    </div>'
;
?>
<tr id="filerow<?= $file->id ?>" data-redactor_file_row="<?= $file->id ?>" data-content='<?= $popover_content ?>'>

    <td id="redactor_file_title_<?= $file->id ?>"><?= $file->filetitle ?>
</div></td>
    <td id="redactor_file_size_<?= $file->id ?>"><?= $file->filesize ?></td>
    <td><?= $file->updated; ?>
<div id="redactor_file_data_<?= $file->id ?>" style="display: none"
             data-url_file="<?= $file->getFileUrl() ?>"
            >
    </td>
</tr>

For more information send a message to info at phpclasses dot org.