Skip to content

Commit 5c4b259

Browse files
committed
Updates
1 parent 62af45c commit 5c4b259

File tree

6 files changed

+50
-50
lines changed

6 files changed

+50
-50
lines changed

.DS_Store

0 Bytes
Binary file not shown.

includes/AdminPage.php

+9-7
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,29 @@
33
if (!function_exists('justuno_plugin_menu')) {
44
function justuno_plugin_menu()
55
{
6-
add_options_page('Justuno', 'Justuno', 'manage_options', 'justuno-settings-conf', 'justuno_plugin_page');
6+
add_options_page('Justuno Reimagined', 'Justuno Reimagined', 'manage_options', 'justuno-settings-conf', 'justuno_plugin_page');
77
}
88
}
99

1010
if (!function_exists('justuno_plugin_page')) {
1111
function justuno_plugin_page()
1212
{
1313
$link = 'http://www.justuno.com/getstarted.html';
14-
?>
14+
?>
1515
<div class="wrap">
16-
<?php screen_icon('plugins'); ?> <h2>Justuno</h2>
16+
<?php screen_icon('plugins'); ?>
17+
<h2>Justuno Reimagined</h2>
1718
<form action="options.php" method="post">
1819
<?php settings_fields('justuno_base_settings'); ?>
1920
<?php do_settings_sections('justuno_base_settings'); ?>
2021
<input name="Submit" class="button button-primary" type="submit" value="Save Changes" />
21-
<?php if (class_exists('WooCommerce')) : ?>
22-
<input name="button" class="button button-secondary" type="button" onclick="justuno_generate_random_token()" value="Regenerate Token" />
22+
<?php if (class_exists('WooCommerce')): ?>
23+
<input name="button" class="button button-secondary" type="button" onclick="justuno_generate_random_token()"
24+
value="Regenerate Token" />
2325
<?php endif; ?>
2426
</form>
2527
</div>
26-
<?php
28+
<?php
2729
}
2830
}
2931

@@ -67,7 +69,7 @@ function justuno_display_options()
6769

6870
add_settings_section(
6971
'justuno_sub_domain',
70-
'Subdomain URL',
72+
'Visibility Boost Domain',
7173
'justuno_sub_domain_description',
7274
'justuno_base_settings'
7375
);

includes/Frontend.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
function justuno_script_for_subdomain()
2323
{
2424
$data = esc_attr(get_option('justuno_api_key', ''));
25-
$baseURL = "https://justone.ai";
25+
$baseURL = "https://" . esc_attr(get_option('justuno_api_key', ''));
2626
$apiURL = "https://api.justuno.com";
2727
$objRESTManager = new Integrations\JustRESTManager();
2828
$code = $objRESTManager->getConversionTrackingCodes();
2929
$data_field_result = get_option('justuno_sub_domain');
3030
if ($data_field_result != "") {
31-
$baseURL = get_option('justuno_sub_domain');
31+
$baseURL = "https://" . get_option('justuno_sub_domain');
3232
}
3333
global $post;
3434
echo '<script data-cfasync="false">window.ju4_auth="' . $data . '";window.ju4_num="' . $data . '";window.ju4_asset_host="' . $baseURL . '/embed";window.ju4_pApi="' . $baseURL . '";(function(i,s,o,g,r,a,m){i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)};a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script",ju4_asset_host+"/ju_woocommerce_init.js?v=2","ju4app");' . $code . '</script>';
@@ -77,7 +77,7 @@ function action_woocommerce_thankyou($order_get_id)
7777
});';
7878
}
7979
echo '<script type="text/javascript">' . $code . '</script>';
80-
};
80+
}
8181

8282
// add the action
8383
add_action('woocommerce_thankyou', 'action_woocommerce_thankyou', 10, 1);

justuno.php

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* @package Justuno Flex
4+
* @package Justuno Reimagined
55
*/
66
/*
77
Plugin Name: Justuno Reimagined
@@ -22,6 +22,7 @@ function justuno_activation()
2222
// send any api calls when activation
2323
update_option('justuno_api_key', '');
2424
update_option('justuno_woocommerce_token', '');
25+
update_option('justuno_sub_domain', 'justone.ai');
2526
}
2627
}
2728

@@ -43,11 +44,13 @@ function justuno_deactivation()
4344
function nc_settings_link($links)
4445
{
4546
// Build and escape the URL.
46-
$url = esc_url(add_query_arg(
47-
'page',
48-
'justuno-settings-conf',
49-
get_admin_url() . 'options-general.php'
50-
));
47+
$url = esc_url(
48+
add_query_arg(
49+
'page',
50+
'justuno-settings-conf',
51+
get_admin_url() . 'options-general.php'
52+
)
53+
);
5154
// Create the link.
5255
$settings_link = "<a href='$url'>" . __('Settings') . '</a>';
5356
// Adds the link to the end of the array.

0 commit comments

Comments
 (0)