Skip to content

Commit

Permalink
featuredimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Jan 28, 2020
1 parent 6318e3f commit 82a7c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ INSERT INTO `core_form_field` (`Field_ID`, `type`, `label`, `fieldkey`, `tab`, `
(NULL, 'partial', 'Columns', 'indexcolumns', 'user-columns', 'user-single', 'col-md-12', '', '', 0, 1, 0, '', '', ''),
(NULL, 'partial', 'Tabs', 'tabs', 'user-tabs', 'user-single', 'col-md-12', '', '', 0, 1, 0, '', '', ''),
(NULL, 'partial', 'Fields', 'formfields', 'user-fields', 'user-single', 'col-md-12', '', '', 0, 1, 0, '', '', ''),
(NULL, 'partial', 'Widgets', 'widgets', 'user-widgets', 'user-single', 'col-md-12', '', '', '0', '1', '0', '', '', '');
(NULL, 'partial', 'Widgets', 'widgets', 'user-widgets', 'user-single', 'col-md-12', '', '', '0', '1', '0', '', '', ''),
(NULL, 'featuredimage', 'Featured Image', 'featured_image', 'user-base', 'user-single', 'col-md-3', '', '', '0', '1', '0', '', '', '');

--
-- Core Form Tab
Expand Down
1 change: 1 addition & 0 deletions src/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public function exchangeArray(array $data) {
$this->password_reset_token = !empty($data['password_reset_token']) ? $data['password_reset_token'] : '';
$this->password_reset_date = !empty($data['password_reset_date']) ? $data['password_reset_date'] : '0000-00-00 00:00:00';
$this->theme = !empty($data['theme']) ? $data['theme'] : 'default';
$this->featured_image = !empty($data['featured_image']) ? $data['featured_image'] : '';

# User XP Plugin
$this->xp_level = !empty($data['xp_level']) ? $data['xp_level'] : 1;
Expand Down

0 comments on commit 82a7c32

Please sign in to comment.