Viewing File: /usr/local/cpanel/base/frontend/jupiter/socialbee/index.html.tt
[%
# Copyright 2025 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
%]
[%
USE Master;
USE JSON;
USE CPBranding;
USE EcosystemFeatures;
SET CPANEL.CPVAR.dprefix = "../";
SET dprefix = CPANEL.CPVAR.dprefix;
SET TEMPLATE_PATH = 'socialbee/';
SET APP_KEY = 'cpanel-socialbee-plugin';
SET FEATURE = 'socialbee';
SET ROUTER_PATH = cp_security_token _ breadcrumb_url;
SET style_sheets = [];
SET scripts = []; # Do not change this name unless it is also changed in the partials below.
SET SECONDS_TO_REDIRECT = 15;
# The following content is inserted by underscore-template-loader's require macro.
#
#----------------------------------------------------
# ∨∨∨ THIS IS GENERATED CODE, DO NOT MODIFY IT ∨∨∨
#----------------------------------------------------
#
# Build webpack css bundle list
style_sheets.push(TEMPLATE_PATH _ 'vendor-c0d76f48.css');
style_sheets.push(TEMPLATE_PATH _ 'vendor-89d5c698.css');
style_sheets.push(TEMPLATE_PATH _ 'styles.css');
# Build webpack javascript bundle list
scripts.push(TEMPLATE_PATH _ 'runtime.js' _ locale_query_string);
scripts.push(TEMPLATE_PATH _ 'vendor-c0d76f48.js' _ locale_query_string);
scripts.push(TEMPLATE_PATH _ 'vendor-89d5c698.js' _ locale_query_string);
scripts.push(TEMPLATE_PATH _ 'polyfills.js' _ locale_query_string);
scripts.push(TEMPLATE_PATH _ 'main.js' _ locale_query_string);
#
#----------------------------------------------------
# ^^^ THIS IS GENERATED CODE, DO NOT MODIFY IT ^^^
#----------------------------------------------------
# has the current feature installed
SET has_feature = CPANEL.feature(FEATURE);
# if the plugin's UI is installed
SET is_setup = EcosystemFeatures.is_plugin_added_to_features(FEATURE);
# language tag
SET locale_tag = locale.get_language_tag(); # es_419
SET language_tag = locale.get_language_tag().split('_').0; # es
# home url
SET PROTOCOL = 'http';
IF CPANEL.ENV.HTTPS == 'on';
SET PROTOCOL = 'https';
END;
SET HOME_URL = PROTOCOL _ '://' _ CPANEL.ENV.SERVER_NAME _ ':' _ CPANEL.ENV.SERVER_PORT _ cp_security_token _ '/';
# list of commonly used variables
SET domains = execute_or_die('DomainInfo', 'list_domains', {}).data;
# See: http://documentation.cpanel.net/display/DD/cPanel+API+2+Functions+-+CustInfo%3A%3Acontactemails
Api2.pre_exec("CustInfo", "contactemails");
SET contact_emails = Api2.exec("CustInfo" , "contactemails" , {});
Api2.post_exec("CustInfo", "contactemails");
SET primary_contact_email = '';
IF contact_emails.size();
FOREACH contact_email IN contact_emails;
IF contact_email.name == "email";
primary_contact_email = contact_email.value;
END;
END;
END;
SET WINDOW_KEY = "socialBeePlugin";
links_code = PROCESS links_block;
WRAPPER '_assets/master.html.tt'
app_key = APP_KEY,
include_legacy_stylesheets = 0,
include_legacy_scripts = 0,
include_cjt = 0,
use_master_bootstrap = 1,
page_stylesheets = style_sheets,
page_scripts = scripts,
is_ng = 1,
hide_license_warnings = 1,
page_title = locale.maketext('Social Media Management'),
app_key = 'cpanel-socialbee-plugin'
page_sub_heading = locale.maketext('Powered by SocialBee');
is_jupiter_style = 1;
page_styles = links_code
%]
[% IF !is_setup || !has_feature %]
<div class="body-content">
<div class="alert alert-danger">
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span>
<div class="alert-message">
[% locale.maketext('[output,strong,Error:] This feature, “[_1]”, is not enabled on your account. Please contact your hosting provider for access.', 'Social Media Management') %]
</div>
</div>
</div>
<meta http-equiv="refresh" content="[% SECONDS_TO_REDIRECT %];url=[% dprefix %]"/>
[% ELSE %]
<socialbee-cp-root></socialbee-cp-root>
<script>
window.PAGE = {
...window.PAGE,
deprefix: [% dprefix.json() %],
[% WINDOW_KEY %]: {
isSandbox: [% CPANEL.is_sandbox ? 'true' :'false' %],
isCpanel: true,
languageTag: [% language_tag.json() %],
localeTag: [% locale_tag.json() %],
sessionToken: [% cp_security_token.json() %],
basePath: [% ROUTER_PATH.json() %],
user: [% CPANEL.authuser.json() %],
homeUrl: [% HOME_URL.json() %],
homeDir: [% CPANEL.homedir.json() || '""'%],
companyId: [% get_company_id() %],
dprefix: [% dprefix.json() %],
contactEmail: [% primary_contact_email.json() %],
trackingId: [% CPANEL.CPDATA.UUID.json() %]
}
}
</script>
[% END %]
[% END %]
[% BLOCK links_block %]
<script src="https://kit.fontawesome.com/340ae01d97.js" crossorigin="anonymous"></script>
<style>
<!-- fix any leaky css from between the spa and panel -->
/* Correction for the page title and subtitle */
h1.page-header {
display: inline-block !important;
border-bottom: 0;
font-weight: lighter;
font-family: "Open Sans",sans-serif;
line-height: 1.1;
color: inherit;
font-size: 2em;
margin-bottom: 0.67em;
}
h1.page-header .page-title-section {
vertical-align: top;
font-size: 20px;
}
h1.page-header .page-title-section .page-title {
display: block;
font-size: 30px;
text-transform: capitalize;
}
h1.page-header .page-title-section #pageSubHeading {
display: block;
font-size: 65%;
font-weight: 400;
line-height: 1;
color: #999;
}
</style>
[% END %]
Back to Directory
File Manager