Example #1
0
 public function getOutValue($sql)
 {
     $this->getDynValue($sql);
     foreach ($this->outVars[1] as $key => $type) {
         if (!$this->isType($type, $this->outVars[2][$key])) {
             continue;
         }
         $sqlEntry = strtolower($this->DynType) . $this->outVars[2][$key];
         $sqlEntry = $sql->get($sqlEntry);
         //DYN_LINK_ID bleibt unberührt
         if ($type == $this->DynType . '_ID') {
             //nothing
         } else {
             $sqlEntry = url::fe($sqlEntry);
         }
         $this->content = str_replace($this->outVars[0][$key], $sqlEntry, $this->content);
     }
     return $this;
 }
Example #2
0
    $i = 1;
    ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title pull-left"><a href="<?php 
    echo url::backend('structure', array('subpage' => 'pages', 'structure_id' => $structure_id));
    ?>
"><?php 
    echo $pageSql->get('name');
    ?>
</a></h3>
                    <div class="pull-right btn-group">
						<a href="<?php 
    echo dyn::get('hp_url') . url::fe($structure_id);
    ?>
" target="_blank" class="btn btn-sm btn-warning"><?php 
    echo lang::get('visit_page');
    ?>
</a>
                    	<a href="<?php 
    echo url::backend('structure', ['subpage' => 'pages', 'action' => 'edit', 'id' => $structure_id]);
    ?>
" class="btn btn-sm btn-warning"><?php 
    echo lang::get('edit');
    ?>
</a>
						<a href="<?php 
    echo url::backend('structure', ['subpage' => 'pages']);
    ?>
Example #3
0
 public function getUrl()
 {
     return url::fe($this->get('id'));
 }