<?php defined('C5_EXECUTE') or die("Access Denied."); $area = $b->getBlockAreaObject(); $_bx = Block::getByID($bOriginalID); if (is_object($_bx)) { $_bx->setBlockAreaObject($area); $c = Page::getCurrentPage(); $_bx->setProxyBlock($b); $_bx->loadNewCollection($c); $bv = new \Concrete\Core\Block\View\BlockView($_bx); $bv->setController($controller->getScrapbookBlockController()); $bv->disableControls(); $bv->render('view'); }
function change_images($response) { //return str_replace('/images','http://coreus.ird.nc/files',$response); $bv = new \Concrete\Core\Block\View\BlockView($this->getBlockObject()); $blockURL = $bv->getBlockURL(); return str_replace('/images', $blockURL . '/images', $response); }
<div class="block-content"> <div class="block-name"> <span class="handle"><?php echo h(t($type->getBlockTypeName())); ?> </span> </div> <div class="blocks"> <div class="block ccm-panel-add-block-draggable-block-type" title="<?php echo t($type->getBlockTypeName()); ?> "> <div class="block-content"> <?php $bv = new \Concrete\Core\Block\View\BlockView($block); $bv->render('scrapbook'); ?> </div> <div class="block-handle"></div> </div> </div> </div> <div class="delete"> <button class="ccm-delete-clipboard-item pull-right btn btn-sm btn-link"> <?php echo t('Delete'); ?> </button> </div> </div>
<?php defined('C5_EXECUTE') or die("Access Denied."); $area = $b->getBlockAreaObject(); $_bx = Block::getByID($bOriginalID); if (is_object($_bx)) { $_bx->setBlockAreaObject($area); $c = Page::getCurrentPage(); $_bx->setProxyBlock($b); $_bx->loadNewCollection($c); $bv = new \Concrete\Core\Block\View\BlockView($_bx); $bv->disableControls(); $bv->render('view'); }