Example #1
0
<?php

return array(null => array(null => array(null => 'vanemart::full', 'title' => '=' . Vane\Current::config('company.long'), 'styles' => '=' . VaneMart\asset('styles.less'), 'scrpits' => array()), '-header/#top' => array('|left goldn' => array('|spacer goldn' => null, '|cart goldw' => 'Vane::menu cart'), '|right goldw' => array('Vane::menu main', 'Vane::menu user')), '|nav goldn' => array('|nav/#menu goldn' => array('Vane::logo', 'Vane::menu groups'), '|#group goldw' => array('-title' => array(), '-list' => 'VaneMart::group@by_list *')), '|#content goldw' => array('Vane::status', 'Vane::title')));
Example #2
0
<?php

return array('from' => Vane\Current::config('company.email'), 'returnPath' => null, 'copyTo' => array(), 'bccTo' => array(), 'headers' => array(), 'allowedHeaders' => array(), 'bodyEncoding' => 'base64', 'bodyCharsets' => array(), 'forceBodyCharset' => false, 'makeTextBodyFromHTML' => true, 'textBodyFormat' => 'flowed', 'allowedAttachments' => '1', 'headerEOLN' => "\n", 'sortHeaders' => true, 'params' => '', 'eoln' => "\r\n", 'skipRelatedAttIfNoHtmlBody' => true, 'priority' => 1, 'simulate' => Request::is_env('local'), 'echoPath' => Request::is_env('local') ? Bundle::path('vanemart') . 'storage/mail/' : false);
Example #3
0
<?php

if (!Bundle::exists('vane')) {
    throw new Error('VaneMart requires Vane bundle installed.');
} else {
    Bundle::start('vane');
    Vane\aliasIn('VaneMart');
}
Squall\initEx('VaneMart');
Vane\overrideHTMLki('vanemart::', array('ns' => 'VaneMart', 'stickyFormHiddens' => array('back')));
require_once __DIR__ . DS . 'core.php';
require_once __DIR__ . DS . 'events.php';
Vane\Current::set(VaneMart\VANE_NS);
// More flexible autoloader for VaneMart flat class structure.
spl_autoload_register(function ($class) {
    $base = $file = __DIR__ . DS . 'classes' . DS;
    if (substr($class, 0, 9) === 'VaneMart\\') {
        @(list($group, $rest) = explode('_', substr($class, 9), 2));
        if (isset($rest)) {
            $file .= strtolower($group) . DS . $rest;
        } else {
            $file .= is_file("{$file}{$group}.php") ? $group : 'model' . DS . substr($class, 9);
        }
    } else {
        $file .= 'vendor' . DS . $class;
    }
    $file .= '.php';
    is_file($file) and (include $file);
});
View::composer('vanemart::full', function ($view) {
    $normAssets = function ($type) use($view) {