Ejemplo n.º 1
0
function serverInterface_cms_frontend_0_widget($pid, $widget, $params = array())
{
    $P = Page($pid);
    if ($P->access() < 2) {
        return false;
    }
    if (strpos($widget, '/')) {
        return null;
    }
    global $cmsWidgetCont;
    $cmsWidgetCont = $P;
    L::nsStart('cms');
    $T = new Template();
    $T->assign('Cont', $P);
    $T->assign('param', $params);
    L::nsStop();
    // todo: better at end?
    return $T->get(sysPATH . 'cms.frontend.0/view/widgets/' . $widget . '.php');
}
 static function getWidgetContent($pid, $widget, $params = array())
 {
     if (!self::checkRight(2)) {
         return false;
     }
     if (strpos($widget, '/')) {
         return null;
     }
     global $cmsWidgetCont;
     $cmsWidgetCont = self::$Cont;
     L::nsStart('cms');
     $P = self::$Cont;
     $T = new Template();
     $T->assign('Cont', $P);
     $T->assign('param', $params);
     L::nsStop();
     // better at end?
     return $T->get(sysPATH . 'cms/view/widgets/' . $widget . '.php');
 }
Ejemplo n.º 3
0
			<button style="padding:5px; font-weight:bold" class=-get>hier einfügen!</button>
			<button style="padding:5px" class=-cancel>am alten Ort behalten</button>
		</div>
	</div>
	<script>
		!function() {
			var div = $('#qgCms_clipboardDialog');
			var pid = <?php 
    echo $P;
    ?>
;
			function close() {
				$fn('cms::clipboardSet')(0);
				div.remove();
				$('.-pid'+pid).css({opacity: 1});
			}
			div.find('.-cancel').on('click', close);
			div.find('.-get').on('click', function() {
				cms.cont(pid).addPosition();
				close();
			});
			$('.-pid'+pid).css({opacity:0.4});
		}();
	</script>
<?php 
}
if (!isset($_GET['qgCmsDesablePanel'])) {
    include sysPATH . 'cms/view/panel.php';
}
L::nsStop();
 static function onAfter()
 {
     L::nsStop();
 }