You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
3.6 KiB
PHP

<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
} ?> <style type="text/css">
.crm_fields_table{
width: 100%; margin-top: 30px;
}.crm_fields_table .crm_field_cell1 label{
font-weight: bold; font-size: 14px;
}
.crm_fields_table .clear{
clear: both;
}
.crm_fields_table .crm_field{
margin: 20px 0px;
}
.crm_fields_table .crm_text{
width: 100%;
}
.crm_fields_table .crm_field_cell1{
width: 20%; min-width: 100px; float: left; display: inline-block;
line-height: 26px;
}
.crm_fields_table .crm_field_cell2{
width: 80%; float: left; display: inline-block;
}
.vxc_alert{
padding: 10px 20px;
}
.vx_icons{
color: #888;
}
.vx_green{
color:rgb(0, 132, 0);
}
#tiptip_content{
max-width: 200px;
}
.vx_tr{
display: table; width: 100%;
}
.vx_td{
display: table-cell; width: 90%;
}
.vx_td2{
display: table-cell;
}
.crm_field .vx_td2 .vx_toggle_btn{
margin: 0 0 0 10px; vertical-align: baseline; width: 80px;
}
.submit{
display: none;
}
</style>
<script type="text/javascript">
jQuery(document).ready(function($){
$(".vx_tabs_radio").click(function(){
$(".vx_tabs").hide();
$("#tab_"+this.id).show();
});
$(".sf_login").click(function(e){
if($("#vx_custom_app_check").is(":checked")){
var client_id=$(this).data('id');
var new_id=$("#app_id").val();
if(client_id!=new_id){
e.preventDefault();
alert("<?php esc_html_e('HubSpot Client ID Changed.Please save new changes first','contact-form-hubspot-crm') ?>");
}
}
})
$("#vx_custom_app_check").click(function(){
if($(this).is(":checked")){
$("#vx_custom_app_div").show();
}else{
$("#vx_custom_app_div").hide();
}
});
$(document).on('click','#vx_revoke',function(e){
if(!confirm('<?php esc_html_e('Notification - Remove Connection?','contact-form-hubspot-crm'); ?>')){
e.preventDefault();
}
});
});
</script>
<div class="vx_wrap">
<form method="post" id="mainform">
<?php wp_nonce_field("vx_nonce") ?>
<h2 class="vx_img_head"><img alt="<?php esc_html_e("HubSpot Feeds", 'contact-form-hubspot-crm') ?>" title="<?php esc_html_e("HubSpot Feeds", 'contact-form-hubspot-crm') ?>" src="<?php echo $this->get_base_url()?>images/hubspot-crm-logo.png?ver=1" /> <?php
if(empty($id)){
esc_html_e("HubSpot Accounts", 'contact-form-hubspot-crm');
}else{
esc_html_e("HubSpot Account #", 'contact-form-hubspot-crm'); echo $id;
}
if(empty($id) || $new_account_id != $id){
?> <a href="<?php echo $new_account ?>" class="add-new-h2" title="<?php esc_html_e('Add New Account','contact-form-hubspot-crm'); ?>"><?php esc_html_e('Add New Account','contact-form-hubspot-crm'); ?></a>
<?php
}if(!empty($id)){
?>
<a href="<?php echo $page_link ?>" class="add-new-h2" title="<?php esc_html_e('Back to Accounts','contact-form-hubspot-crm'); ?>"><?php esc_html_e('Back to Accounts','contact-form-hubspot-crm'); ?></a>
<?php
}
?>
</h2>
<p style="text-align: left;"> <?php echo sprintf(esc_html__("If you don't have a HubSpot account, you can %ssign up for one here%s.", 'contact-form-hubspot-crm'), "<a href='http://www.hubspot.com/' target='_blank' title='".__('Sign Up for HubSpot CRM','contact-form-hubspot-crm')."'>" , "</a>") ?> </p>
<?php
$this->show_msgs($msgs);
if(!empty($id)){
$name=$this->post('name',$info);
include_once(self::$path . "templates/setting.php");
}else{
include_once(self::$path . "templates/settings-table.php");
}
do_action('vx_plugin_upgrade_notice_'.$this->type);
?>
<div>
</div>
</form>
</div>