Commit 299c6d2c authored by John Punzalan's avatar John Punzalan

Add social network links form

parent 72beaa9b
......@@ -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?
......
......@@ -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>
......
......@@ -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)
)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment