Пример #1
0
 public function getDateLink($dateArray = null)
 {
     if ($this->cTargetID) {
         $c = \Page::getByID($this->cTargetID);
     } else {
         $c = \Page::getCurrentPage();
     }
     if ($dateArray) {
         return \URL::page($c, $dateArray['year'], $dateArray['month']);
     } else {
         return \URL::page($c);
     }
 }
Пример #2
0
 public function getTopicLink(\Concrete\Core\Tree\Node\Node $topic = null)
 {
     if ($this->cParentID) {
         $c = \Page::getByID($this->cParentID);
     } else {
         $c = \Page::getCurrentPage();
     }
     if ($topic) {
         $nodeName = $topic->getTreeNodeName();
         $nodeName = strtolower($nodeName);
         // convert to lowercase
         $nodeName = Core::make('helper/text')->encodePath($nodeName);
         // urlencode
         return \URL::page($c, 'topic', $topic->getTreeNodeID(), $nodeName);
     } else {
         return \URL::page($c);
     }
 }
Пример #3
0
            echo $pID;
            ?>
">
            <div class="cart-list-thumb">
                <a href="<?php 
            echo URL::page(Page::getByID($product->getProductPageID()));
            ?>
">
                    <?php 
            echo $product->getProductImageThumb();
            ?>
                </a>
            </div>
            <div class="cart-list-product-name">
                <a href="<?php 
            echo URL::page(Page::getByID($product->getProductPageID()));
            ?>
">
                    <?php 
            echo $product->getProductName();
            ?>
                </a>
            </div>
            
            <div class="cart-list-item-price">
                <?php 
            echo Price::format($product->getProductPrice());
            ?>
            </div>
            <div class="cart-list-product-qty">
                <span class="cart-item-label"><?php 
Пример #4
0
                <?php 
    echo $form->label('ftTypeHeight', t('Height'));
    ?>
                <?php 
    echo $form->text('ftTypeHeight', $ftTypeHeight);
    ?>
            </div>
            <div class="alert alert-info"><i class="fa fa-exclamation-circle"></i> <?php 
    echo t('Only place a value in here if you want this thumbnail to force its dimensions to the width and height.');
    ?>
</div>
        </fieldset>
        <div class="ccm-dashboard-form-actions-wrapper">
            <div class="ccm-dashboard-form-actions">
                <a href="<?php 
    echo URL::page($c);
    ?>
" class="btn pull-left btn-default"><?php 
    echo t('Back');
    ?>
</a>
                <?php 
    if (is_object($type)) {
        ?>
                    <button type="submit" class="btn btn-primary pull-right"><?php 
        echo t('Save');
        ?>
</button>
                <?php 
    } else {
        ?>
Пример #5
0
 public function testCanonicalUrlWithPort()
 {
     Config::set('concrete.seo.canonical_url', 'http://www.derpco.com:8080');
     $this->clearCanonicalUrl();
     $this->assertEquals('http://www.derpco.com:8080/path/to/server/index.php/dashboard/my/awesome/page', (string) URL::to('/dashboard/my/awesome/page'));
     $this->assertEquals('http://www.derpco.com:8080/path/to/server/index.php/dashboard/my/awesome/page', (string) URL::page($this->dashboard));
     Config::set('concrete.seo.canonical_url', null);
 }
        @Loader::element('attribute/categories/' . $category->getAttributeKeyCategoryHandle(), array('key' => $key));
    }
    ?>

<?php 
}
?>

<?php 
echo $valt->output('add_or_update_attribute');
$type->render(new \Concrete\Core\Attribute\Context\AttributeTypeSettingsContext(), $key);
?>

<?php 
if (!isset($back)) {
    $back = URL::page($c);
}
?>

<div class="ccm-dashboard-form-actions-wrapper">
<div class="ccm-dashboard-form-actions">
	<a href="<?php 
echo $back;
?>
" class="btn pull-left btn-default"><?php 
echo t('Back');
?>
</a>
<?php 
if (is_object($key)) {
    ?>
Пример #7
0
 public function getTagLink(Option $option = null)
 {
     $target = $this->get('target');
     if (!is_object($target)) {
         $target = \Page::getCurrentPage();
     }
     if ($option) {
         return \URL::page($target, 'tag', strtolower($option->getSelectAttributeOptionDisplayValue()));
     } else {
         return \URL::page($target);
     }
 }
Пример #8
0
 function redirect($link, $extra = array(), $clean = false)
 {
     $url = new URL();
     $url->initCurURL();
     if ($clean) {
         $url->clean();
     }
     $url->page($link);
     foreach ($extra as $key => $value) {
         $url->setGet($key, $value);
     }
     return $url->getUrl();
 }
Пример #9
0
 public function getTopicLink(\Concrete\Core\Tree\Node\Node $topic = null)
 {
     if ($this->cParentID) {
         $c = \Page::getByID($this->cParentID);
     } else {
         $c = \Page::getCurrentPage();
     }
     if ($topic) {
         return \URL::page($c, 'topic', strtolower($topic->getTreeNodeDisplayName()));
     } else {
         return \URL::page($c);
     }
 }