Guest User

Untitled

a guest
Jul 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <?php echo $form->label('link', 'Link');?>
  2. <?php echo $form->text('link', $link, array('style' => 'width: 320px'));?>
  3.  
  4. <?php echo $form->label('title', 'Title');?>
  5. <?php echo $form->text('title', $title, array('style' => 'width: 320px'));?>
  6.  
  7. <?php echo $form->label('content', 'Content');?>
  8. <?php echo $form->textarea('content', $content, array('style' => 'width: 320px'));?>
  9.  
  10. <!--<?php echo $form->label('file', 'File');?>
  11. <?php echo $form->file('file', $file, array('style' => 'width: 320px'));?>-->
  12.  
  13. <?php
  14. defined('C5_EXECUTE') or die(_("Access Denied."));
  15. $includeAssetLibrary = true;
  16. $assetLibraryPassThru = array(
  17. 'type' => 'image'
  18. );
  19. $al = Loader::helper('concrete/asset_library');
  20.  
  21. $bf = null;
  22. $bfo = null;
  23.  
  24. if ($controller->getFileID() > 0) {
  25. $bf = $controller->getFileObject();
  26. }
  27. if ($controller->getFileOnstateID() > 0) {
  28. $bfo = $controller->getFileOnstateObject();
  29.  
  30. }
  31.  
  32. ?>
  33.  
  34. <div class="ccm-block-field-group">
  35.  
  36. <h2><?php echo t('Image')?></h2>
  37.  
  38. <?php echo $al->image('ccm-b-image', 'file', t('Choose Image'), $bf);?>
  39.  
  40. </div>
Add Comment
Please, Sign In to add comment