Skip to content

Commit

Permalink
Merge pull request #4 from pi-engine/develop
Browse files Browse the repository at this point in the history
Update 17-03-2015
  • Loading branch information
krisxoofoo committed Mar 17, 2015
2 parents 1826886 + 3ad18e3 commit b3f0745
Show file tree
Hide file tree
Showing 9 changed files with 389 additions and 166 deletions.
147 changes: 147 additions & 0 deletions usr/custom/module/user/config/user.php.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<?php
/**
* Pi Engine (http://pialog.org)
*
* @link http://code.pialog.org for the Pi Engine source repository
* @copyright Copyright (c) Pi Engine http://pialog.org
* @license http://pialog.org/license.txt BSD 3-Clause License
*/

/**
* User profile and resource specs
*
* @see Pi\Application\Installer\Resource\User
* @author Taiwen Jiang <taiwenjiang@tsinghua.org.cn>
*/
$customConfig = array(
// Fields
'field' => array(
// Profile fields

// Profile: credit
'credit' => array(
'name' => 'credit',
'title' => _a('Credit'),
'is_edit' => false,
'is_display' => false,
'is_search' => false,
),

// Profile: identification_number
// See : https://en.wikipedia.org/wiki/National_identification_number
'id_number' => array(
'name' => 'id_number',
'title' => _a('Identification number'),
),

// Profile: first_name
'first_name' => array(
'name' => 'first_name',
'title' => _a('First Name'),
),

// Profile: last_name
'last_name' => array(
'name' => 'last_name',
'title' => _a('Last Name'),
),

// Profile: mobile number
'mobile' => array(
'name' => 'mobile',
'title' => _a('Mobile phone'),
// Edit element specs
'edit' => array(
'validators' => array(
array(
'name' => 'Zend\I18n\Validator\PhoneNumber',
'options' => array(
'country' => 'ir',
'allowed_types' => array('mobile'),
),
),
),
),
),

// Profile: phone number
'phone' => array(
'name' => 'phone',
'title' => _a('Telephone'),
// Edit element specs
'edit' => array(
'validators' => array(
array(
'name' => 'Zend\I18n\Validator\PhoneNumber',
'options' => array(
'country' => 'ir',
'allowed_types' => array('general'),
),
),
),
),
),

// Profile: address1
'address1' => array(
'name' => 'address1',
'title' => _a('Address 1'),
),

// Profile: address2
'address1' => array(
'name' => 'address2',
'title' => _a('Address 2'),
),

// Profile: country
'country' => array(
'name' => 'country',
'title' => _a('Country'),
),

// Profile: state
'state' => array(
'name' => 'state',
'title' => _a('State'),
),

// Profile: city
'city' => array(
'name' => 'city',
'title' => _a('City'),
),

// Profile: zip_code
'zip_code' => array(
'name' => 'zip_code',
'title' => _a('Zip code'),
),

// Profile: company
'company' => array(
'name' => 'company',
'title' => _a('Company'),
),

// Profile: company_id
'company_id' => array(
'name' => 'company_id',
'title' => _a('Company ID'),
),

// Profile: company_vat
'company_vat' => array(
'name' => 'company_vat',
'title' => _a('Company VAT'),
),
),
);


$config = include Pi::path('module/user/config/user.php');
foreach ($customConfig as $key => $cfg) {
$config[$key] = array_merge($config[$key], $cfg);
}

return $config;
4 changes: 4 additions & 0 deletions usr/module/system/src/Installer/Action/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,16 @@ public function installApplication(Event $e)
'solution',
'video',
'forum',
'form',
'page',
'demo',
'news',
'shop',
'contact',
'guide',
'portfolio',
'gallery',
'download',
'ask'
),
),
Expand All @@ -220,6 +223,7 @@ public function installApplication(Event $e)
'saml',
'favourite',
'payment',
'order',
'vote',
'sitemap',
'ads'
Expand Down
9 changes: 9 additions & 0 deletions usr/theme/default/asset/css/front.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,13 @@ html {
/* Module custom */
.tag-terms a {
padding: 0 5px;
}

/* Player */
.pi-player {
padding: 10px 0;
}

.pi-player .video-js {
margin: 0 auto;
}
Binary file added www/static/vendor/video-js/font/vjs.eot
Binary file not shown.
28 changes: 28 additions & 0 deletions www/static/vendor/video-js/font/vjs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added www/static/vendor/video-js/font/vjs.ttf
Binary file not shown.
Binary file added www/static/vendor/video-js/font/vjs.woff
Binary file not shown.
Loading

0 comments on commit b3f0745

Please sign in to comment.