Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-management
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John
esi-management
Commits
299c6d2c
Commit
299c6d2c
authored
Jan 12, 2017
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add social network links form
parent
72beaa9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
2 deletions
+35
-2
class-esi-management-entity-form.php
...admin/modules/entity/class-esi-management-entity-form.php
+7
-1
esi-management-entity-form.php
...in/modules/entity/partials/esi-management-entity-form.php
+24
-0
class-esi-management-activator.php
...si-management/includes/class-esi-management-activator.php
+4
-1
No files found.
wp-content/plugins/esi-management/admin/modules/entity/class-esi-management-entity-form.php
View file @
299c6d2c
...
...
@@ -58,6 +58,9 @@ class Esi_Management_Entity_Form {
$ability_ids
=
isset
(
$_POST
[
'ability_id'
]
)
?
(
$_POST
[
'ability_id'
]
)
:
''
;
$industry_ids
=
isset
(
$_POST
[
'industry_id'
]
)
?
(
$_POST
[
'industry_id'
]
)
:
''
;
$industry_sub_ids
=
isset
(
$_POST
[
'industry_sub_id'
]
)
?
(
$_POST
[
'industry_sub_id'
]
)
:
''
;
$facebook
=
isset
(
$_POST
[
'facebook'
]
)
?
(
$_POST
[
'facebook'
]
)
:
''
;
$twitter
=
isset
(
$_POST
[
'twitter'
]
)
?
(
$_POST
[
'twitter'
]
)
:
''
;
$linkedin
=
isset
(
$_POST
[
'linkedin'
]
)
?
(
$_POST
[
'linkedin'
]
)
:
''
;
if
(
$is_investor
==
"on"
)
{
$is_investor
=
1
;
...
...
@@ -98,7 +101,10 @@ class Esi_Management_Entity_Form {
'acquired_at'
=>
$acquired_date
,
'acquired_amount'
=>
$acquired_amount
,
'total_raised'
=>
$total_raised
,
'latest_round_type'
=>
$latest_round_type
'latest_round_type'
=>
$latest_round_type
,
'facebook_link'
=>
$facebook
,
'twitter_link'
=>
$twitter
,
'linkedin_link'
=>
$linkedin
);
// New or edit?
...
...
wp-content/plugins/esi-management/admin/modules/entity/partials/esi-management-entity-form.php
View file @
299c6d2c
...
...
@@ -221,6 +221,30 @@ add_thickbox();
</select><br
/>
</td>
</tr>
<tr
class=
"row-facebook"
>
<th
scope=
"row"
>
<label
for=
"facebook"
>
<?php
_e
(
'Facebook'
,
'esi'
);
?>
</label>
</th>
<td>
<input
type=
"text"
name=
"facebook"
id=
"facebook"
class=
"regular-text"
placeholder=
"
<?php
echo
esc_attr
(
'Facebook URL'
,
'esi'
);
?>
"
value=
"
<?php
echo
(
$item
)
?
esc_attr
(
$item
->
facebook_link
)
:
''
;
?>
"
/>
</td>
</tr>
<tr
class=
"row-twitter"
>
<th
scope=
"row"
>
<label
for=
"twitter"
>
<?php
_e
(
'Twitter'
,
'esi'
);
?>
</label>
</th>
<td>
<input
type=
"text"
name=
"twitter"
id=
"twitter"
class=
"regular-text"
placeholder=
"
<?php
echo
esc_attr
(
'Twitter URL'
,
'esi'
);
?>
"
value=
"
<?php
echo
(
$item
)
?
esc_attr
(
$item
->
twitter_link
)
:
''
;
?>
"
/>
</td>
</tr>
<tr
class=
"row-linkedin"
>
<th
scope=
"row"
>
<label
for=
"employees"
>
<?php
_e
(
'LinkedIn'
,
'esi'
);
?>
</label>
</th>
<td>
<input
type=
"text"
name=
"linkedin"
id=
"linkedin"
class=
"regular-text"
placeholder=
"
<?php
echo
esc_attr
(
'LinkedIn URL'
,
'esi'
);
?>
"
value=
"
<?php
echo
(
$item
)
?
esc_attr
(
$item
->
linkedin_link
)
:
''
;
?>
"
/>
</td>
</tr>
</tbody>
</table>
...
...
wp-content/plugins/esi-management/includes/class-esi-management-activator.php
View file @
299c6d2c
...
...
@@ -156,7 +156,10 @@ class Esi_Management_Activator {
acquired_at date DEFAULT '0000-00-00',
acquired_amount INT NULL,
total_raised INT NULL,
latest_round_type INT NULL
latest_round_type INT NULL,
facebook_link text NOT NULL,
twitter_link text NOT NULL,
linkedin_link text NOT NULL
PRIMARY KEY (id)
)"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment