Вход Регистрация
Файл: sngine-v2.8/Script/content/themes/default/templates/_js_files.tpl
Строк: 940
{strip} <!-- Initialize --> <script> /* initialize
vars */ var site_title = "{$system['system_title']}";
var site_path = "{$system['system_url']}"; var ajax_path =
site_path+"/includes/ajax/"; var uploads_path =
"{$system['system_uploads']}"; var current_page =
"{$page}"; /* language */ var system_langauge_dir =
"{strtolower($system['language']['dir'])}"; var
system_langauge_code = "{substr($system['language']['code'], 0,
-3)}"; /* datetime */ var system_datetime_format = {if
$system['system_datetime_format'] == "m/d/Y H:i"}'MM/DD/YYYY
HH:mm'{else}'DD/MM/YYYY HH:mm'{/if}; /* theme */ var
theme_mode_night = {if $system['theme_mode_night']}true{else}false{/if};
var theme_dir_rtl = {if $system['language']['dir'] ==
"LTR"}false{else}true{/if}; /* ajax */ var
min_data_heartbeat = "{$system['data_heartbeat']*1000}"; var
min_chat_heartbeat = "{$system['chat_heartbeat']*1000}"; /*
uploads */ var secret = "{$secret}"; var
accpeted_video_extensions =
"{$system['accpeted_video_extensions']}"; var
accpeted_audio_extensions =
"{$system['accpeted_audio_extensions']}"; var
accpeted_file_extensions =
"{$system['accpeted_file_extensions']}"; var
tinymce_photos_enabled = {if
$system['tinymce_photos_enabled']}true{else}false{/if}; /* chat */
var chat_enabled = {if $system['chat_enabled']}true{else}false{/if};
var chat_typing_enabled = {if
$system['chat_typing_enabled']}true{else}false{/if}; var
chat_seen_enabled = {if
$system['chat_seen_enabled']}true{else}false{/if}; var chat_sound =
{if $user->_data['chat_sound']}true{else}false{/if}; /*
notifications */ var notifications_sound = {if
$user->_data['notifications_sound']}true{else}false{/if}; var
noty_notifications_enabled = {if
$system['noty_notifications_enabled']}true{else}false{/if}; var
browser_notifications_enabled = {if
$system['browser_notifications_enabled']}true{else}false{/if}; /*
posts */ var daytime_msg_enabled = {if
$daytime_msg_enabled}true{else}false{/if}; var giphy_key =
"{$system['giphy_key']}"; var geolocation_enabled = {if
$system['geolocation_enabled']}true{else}false{/if}; var yandex_key =
"{$system['yandex_key']}"; var post_translation_enabled =
{if $system['post_translation_enabled']}true{else}false{/if}; var
mobile_infinite_scroll = {if
$system['mobile_infinite_scroll']}true{else}false{/if}; /* payments
*/ var currency = "{$system['system_currency']}"; var
stripe_key = {if $system['stripe_mode'] ==
"live"}"{$system['stripe_live_publishable']}"{else}"{$system['stripe_test_publishable']}"{/if};
var twocheckout_merchant_code =
"{$system['2checkout_merchant_code']}"; var
twocheckout_publishable_key =
"{$system['2checkout_publishable_key']}"; /* features */
var adblock_detector = {if !$user->_is_admin &&
$system['adblock_detector_enabled']}true{else}false{/if}; </script> <script>
/* i18n for JS */ var __ = []; __['Ask something'] =
"{__('Ask something')}"; __['Add Friend'] = "{__('Add
Friend')}"; __['Friends'] = "{__('Friends')}";
__['Friend Request Sent'] = "{__('Friend Request Sent')}";
__['Following'] = "{__('Following')}"; __['Follow'] =
"{__('Follow')}"; __['Pending'] =
"{__('Pending')}"; __['Remove'] =
"{__('Remove')}"; __['Error'] = "{__('Error')}";
__['Success'] = "{__('Success')}"; __['Loading'] =
"{__('Loading')}"; __['Like'] = "{__('Like')}";
__['Unlike'] = "{__('Unlike')}"; __['Joined'] =
"{__('Joined')}"; __['Join'] = "{__('Join')}";
__['Remove Admin'] = "{__('Remove Admin')}"; __['Make
Admin'] = "{__('Make Admin')}"; __['Going'] =
"{__('Going')}"; __['Interested'] =
"{__('Interested')}"; __['Delete'] =
"{__('Delete')}"; __['Delete Cover'] = "{__('Delete
Cover')}"; __['Delete Picture'] = "{__('Delete
Picture')}"; __['Delete Post'] = "{__('Delete
Post')}"; __['Delete Comment'] = "{__('Delete
Comment')}"; __['Delete Conversation'] = "{__('Delete
Conversation')}"; __['Report'] = "{__('Report')}";
__['Block User'] = "{__('Block User')}"; __['Unblock User']
= "{__('Unblock User')}"; __['Mark as Available'] =
"{__('Mark as Available')}"; __['Mark as Sold'] =
"{__('Mark as Sold')}"; __['Save Post'] = "{__('Save
Post')}"; __['Unsave Post'] = "{__('Unsave Post')}";
__['Boost Post'] = "{__('Boost Post')}"; __['Unboost
Post'] = "{__('Unboost Post')}"; __['Pin Post'] =
"{__('Pin Post')}"; __['Unpin Post'] = "{__('Unpin
Post')}"; __['Verify'] = "{__('Verify')}";
__['Decline'] = "{__('Decline')}"; __['Boost'] =
"{__('Boost')}"; __['Unboost'] =
"{__('Unboost')}"; __['Mark as Paid'] = "{__('Mark as
Paid')}"; __['Read more'] = "{__('Read more')}";
__['Read less'] = "{__('Read less')}"; __['Turn On Chat'] =
"{__('Turn On Chat')}"; __['Turn Off Chat'] =
"{__('Turn Off Chat')}"; __['Monthly Average'] =
"{__('Monthly Average')}"; __['Jan'] =
"{__('Jan')}"; __['Feb'] = "{__('Feb')}";
__['Mar'] = "{__('Mar')}"; __['Apr'] =
"{__('Apr')}"; __['May'] = "{__('May')}";
__['Jun'] = "{__('Jun')}"; __['Jul'] =
"{__('Jul')}"; __['Aug'] = "{__('Aug')}";
__['Sep'] = "{__('Sep')}"; __['Oct'] =
"{__('Oct')}"; __['Nov'] = "{__('Nov')}";
__['Dec'] = "{__('Dec')}"; __['Users'] =
"{__('Users')}"; __['Pages'] = "{__('Pages')}";
__['Groups'] = "{__('Groups')}"; __['Events'] =
"{__('Events')}"; __['Posts'] = "{__('Posts')}";
__['Translated'] = "{__('Translated')}"; __['Are you sure
you want to delete this?'] = "{__('Are you sure you want to delete
this?')}"; __['Are you sure you want to remove your cover
photo?'] = "{__('Are you sure you want to remove your cover
photo?')}"; __['Are you sure you want to remove your profile
picture?'] = "{__('Are you sure you want to remove your profile
picture?')}"; __['Are you sure you want to delete this post?'] =
"{__('Are you sure you want to delete this post?')}";
__['Are you sure you want to delete this comment?'] = "{__('Are you
sure you want to delete this comment?')}"; __['Are you sure you
want to delete this conversation?'] = "{__('Are you sure you want to
delete this conversation?')}"; __['Are you sure you want to
report this?'] = "{__('Are you sure you want to report
this?')}"; __['Are you sure you want to block this user?'] =
"{__('Are you sure you want to block this user?')}"; __['Are
you sure you want to unblock this user?'] = "{__('Are you sure you
want to unblock this user?')}"; __['Are you sure you want to
delete your account?'] = "{__('Are you sure you want to delete your
account?')}"; __['Are you sure you want to verify this request?']
= "{__('Are you sure you want to verify this request?')}";
__['Are you sure you want to decline this request?'] = "{__('Are you
sure you want to decline this request?')}"; __['Are you sure you
want to approve this request?'] = "{__('Are you sure you want to
approve this request?')}"; __['Are you sure you want to do
this?'] = "{__('Are you sure you want to do this?')}";
__['There is something that went wrong!'] = "{__('There is something
that went wrong!')}"; __['There is no more data to show'] =
"{__('There is no more data to show')}"; __['This website
uses cookies to ensure you get the best experience on our website'] =
"{__('This website uses cookies to ensure you get the best experience
on our website')}"; __['Got It!'] = "{__('Got
It!')}"; __['Learn More'] = "{__('Learn More')}";
__['No result found'] = "{__('No result found')}"; __['Turn
on Commenting'] = "{__('Turn on Commenting')}"; __['Turn off
Commenting'] = "{__('Turn off Commenting')}"; __['Day Mode']
= "{__('Day Mode')}"; __['Night Mode'] = "{__('Night
Mode')}"; __['Message'] = "{__('Message')}";
__['You haved poked'] = "{__('You haved poked')}"; __['Touch
to unmute'] = "{__('Touch to unmute')}"; __['Press space to
see next'] = "{__('Press space to see next')}"; __['Visit
link'] = "{__('Visit link')}"; __['ago'] =
"{__('ago')}"; __['hour ago'] = "{__('hour
ago')}"; __['hours ago'] = "{__('hours ago')}";
__['minute ago'] = "{__('minute ago')}"; __['minutes ago'] =
"{__('minutes ago')}"; __['from now'] = "{__('from
now')}"; __['seconds ago'] = "{__('seconds ago')}";
__['yesterday'] = "{__('yesterday')}"; __['tomorrow'] =
"{__('tomorrow')}"; __['days ago'] = "{__('days
ago')}"; __['Nothing selected'] = "{__('Nothing
selected')}"; __['Seen by'] = "{__('Seen by')}";
__['Ringing'] = "{__('Ringing')}"; __['is Offline'] =
"{__('is Offline')}"; __['is Busy'] = "{__('is
Busy')}"; __['No Answer'] = "{__('No Answer')}";
__['You can not connect to this user'] = "{__('You can not connect to
this user')}"; __['You have an active call already'] =
"{__('You have an active call already')}"; __['The recipient
declined the call'] = "{__('The recipient declined the
call')}"; __['Connection has been lost'] = "{__('Connection
has been lost')}"; __['You must fill in all of the fields'] =
"{__('You must fill in all of the fields')}"; __['Hide from
Timeline'] = "{__('Hide from Timeline')}"; __['Allow on
Timeline'] = "{__('Allow on Timeline')}"; __['Are you sure
you want to hide this post from your profile timeline? It may still appear
in other places like newsfeed and search results'] = "{__('Are you
sure you want to hide this post from your profile timeline? It may still
appear in other places like newsfeed and search results')}";
__['Select All'] = "{__('Select All')}"; __['Deselect All']
= "{__('Deselect All')}"; __['Total'] =
"{__('Total')}"; /* i18n for DataTables */
__['Processing...'] = "{__('Processing...')}"; __['Search:']
= "{__('Search:')}"; __['Show _MENU_ entries'] =
"{__('Show _MENU_ entries')}"; __['Showing _START_ to _END_
of _TOTAL_ entries'] = "{__('Showing _START_ to _END_ of _TOTAL_
entries')}"; __['Showing 0 to 0 of 0 entries'] =
"{__('Showing 0 to 0 of 0 entries')}"; __['(filtered from
_MAX_ total entries)'] = "{__('(filtered from _MAX_ total
entries)')}"; __['Loading...'] =
"{__('Loading...')}"; __['No matching records found'] =
"{__('No matching records found')}"; __['No data available
in table'] = "{__('No data available in table')}";
__['First'] = "{__('First')}"; __['Previous'] =
"{__('Previous')}"; __['Next'] = "{__('Next')}";
__['Last'] = "{__('Last')}"; __[': activate to sort
column ascending'] = "{__(': activate to sort column
ascending')}"; __[': activate to sort column descending'] =
"{__(': activate to sort column descending')}"; /* i18n for
OneSignal */ __['Subscribe to notifications'] = "{__('Subscribe
to notifications')}"; __['You are subscribed to notifications'] =
"{__('You are subscribed to notifications')}"; __['You have
blocked notifications'] = "{__('You have blocked
notifications')}"; __['Click to subscribe to notifications'] =
"{__('Click to subscribe to notifications')}"; __['Thanks
for subscribing!'] = "{__('Thanks for subscribing!')}";
__['You are subscribed to notifications'] = "{__('You are subscribed
to notifications')}"; __['You will not receive notifications
again'] = "{__('You will not receive notifications again')}";
__['Manage Site Notifications'] = "{__('Manage Site
Notifications')}"; __['SUBSCRIBE'] =
"{__('SUBSCRIBE')}"; __['UNSUBSCRIBE'] =
"{__('UNSUBSCRIBE')}"; __['Unblock Notifications'] =
"{__('Unblock Notifications')}"; __['Follow these
instructions to allow notifications:'] = "{__('Follow these
instructions to allow notifications:')}"; </script> <!--
Initialize --> <!-- Dependencies Libs [jQuery|Bootstrap]
--> <script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous" {if
!$user->_logged_in}defer{/if}></script> <script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous" {if
!$user->_logged_in}defer{/if}></script> {if
$system['language']['dir'] == "LTR"} <script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous" {if
!$user->_logged_in}defer{/if}></script> {else} <script
src="https://cdn.rtlcss.com/bootstrap/v4.2.1/js/bootstrap.min.js"
integrity="sha384-a9xOd0rz8w0J8zqj1qJic7GPFfyMfoiuDjC9rqXlVOcGO/dmRqzMn34gZYDTel8k"
crossorigin="anonymous" {if
!$user->_logged_in}defer{/if}></script> {/if} <!--
Dependencies Libs [jQuery|Bootstrap] --> <!-- Dependencies Plugins
--> <script
src="{$system['system_url']}/includes/assets/js/plugins/mustache/mustache.min.js"
{if !$user->_logged_in}defer{/if}></script> <script
src="{$system['system_url']}/includes/assets/js/plugins/jquery.form/jquery.form.min.js"
{if !$user->_logged_in}defer{/if}></script> <script
src="{$system['system_url']}/includes/assets/js/plugins/jquery.inview/jquery.inview.min.js"
{if !$user->_logged_in}defer{/if}></script> <script
src="{$system['system_url']}/includes/assets/js/plugins/autosize/autosize.min.js"
{if !$user->_logged_in}defer{/if}></script> <script
src="{$system['system_url']}/includes/assets/js/plugins/readmore/readmore.min.js"
{if !$user->_logged_in}defer{/if}></script> <script
src="{$system['system_url']}/includes/assets/js/plugins/moment/moment-with-locales.min.js"
{if !$user->_logged_in}defer{/if}></script> <script
src="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.js"
{if !$user->_logged_in}defer{/if}></script> <link
rel="stylesheet"
href="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.css"
type="text/css"/> {if $user->_logged_in} <!--
jQuery-UI --> <script>var _tooltip =
jQuery.fn.tooltip;</script> <script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
crossorigin="anonymous"></script>
<script>jQuery.fn.tooltip = _tooltip;</script> <script
src="{$system['system_url']}/includes/assets/js/plugins/jquery-ui.triggeredAutocomplete/jquery-ui.triggeredAutocomplete.js"></script>
<!-- jQuery-UI --> <!-- Sticky Sidebar -->
<script
src="{$system['system_url']}/includes/assets/js/plugins/sticky-sidebar/theia-sticky-sidebar.min.js"></script>
<!-- Sticky Sidebar --> <!-- Google Geocomplete -->
{if $system['geolocation_enabled']} <script
src="{$system['system_url']}/includes/assets/js/plugins/jquery.geocomplete/jquery.geocomplete.min.js"></script>
<script
src="https://maps.googleapis.com/maps/api/js?libraries=places&key={$system['geolocation_key']}"></script>
{/if} <!-- Google Geocomplete --> <!-- Noty
Notifications --> {if $system['noty_notifications_enabled']}
<script
src="{$system['system_url']}/includes/assets/js/plugins/noty/noty.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/noty/noty.css">
{/if} <!-- Noty Notifications --> <!-- Crop Profile
Picture & Reposition Cover Photo --> {if $page ==
"started" || $page == "profile" || $page ==
"page" || $page == "group" || $page ==
"event"} <script
src="{$system['system_url']}/includes/assets/js/plugins/jquery-ui.touch-punch/jquery-ui.touch-punch.min.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/plugins/jquery.imagedrag/jquery.imagedrag.min.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/plugins/rcrop/rcrop.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/rcrop/rcrop.min.css">
{/if} <!-- Crop Profile Picture & Reposition Cover Photo
--> <!-- Stories --> {if $page == "index"
&& $view == ""} <script
src="{$system['system_url']}/includes/assets/js/plugins/zuck/zuck.js"></script>
{if $system['language']['dir'] == "LTR"}
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/zuck/zuck.css">
{else} <link rel="stylesheet"
type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/zuck/zuck.rtl.css">
{/if} <script
src="{$system['system_url']}/includes/assets/js/plugins/slick/slick.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/slick/slick.css">
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/slick/slick-theme.css">
{/if} <!-- Stories --> <!-- Voice Notes -->
{if $system['voice_notes_posts_enabled'] ||
$system['voice_notes_comments_enabled'] ||
$system['voice_notes_chat_enabled']} <script
src="{$system['system_url']}/includes/assets/js/plugins/recorder/recorder.js"></script>
{/if} <!-- Voice Notes --> <!-- Slick Slider
--> {if $page == "index"} <script
src="{$system['system_url']}/includes/assets/js/plugins/slick/slick.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/slick/slick.css">
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/slick/slick-theme.css">
{/if} <!-- Slick Slider --> <!-- TinyMCE -->
{if $page == "admin" || $page == "blogs" || $page ==
"forums"} <script
src="{$system['system_url']}/includes/assets/js/plugins/tinymce/tinymce.min.js"></script>
{/if} <!-- TinyMCE --> <!-- Bootstrap selectpicker
& datetimepicker --> {if $page == "admin" || $page ==
"groups" || $page == "group" || $page ==
"events" || $page == "event" || $page ==
"ads"} <script
src="{$system['system_url']}/includes/assets/js/plugins/bootstrap.select/bootstrap-select.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/bootstrap.select/bootstrap-select.min.css">
<script
src="{$system['system_url']}/includes/assets/js/plugins/bootstrap.datetimepicker/bootstrap-datetimepicker.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/bootstrap.datetimepicker/bootstrap-datetimepicker.min.css">
{/if} <!-- Bootstrap selectpicker & datetimepicker
--> <!-- Stripe & 2Checkout --> {if $page ==
"packages" || $page == "ads"} {if
$system['creditcard_enabled'] || $system['alipay_enabled']}
<script
src="https://checkout.stripe.com/checkout.js"></script>
{/if} {if $system['2checkout_enabled']}
<script
src="https://www.2checkout.com/checkout/api/2co.min.js"></script>
{/if} {/if} <!-- Stripe & 2Checkout -->
<!-- Twilio --> {if $system['audio_call_enabled'] ||
$system['video_call_enabled']} <script
src="https://media.twiliocdn.com/sdk/js/video/releases/1.20.0/twilio-video.min.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/plugins/easytimer/easytimer.min.js"></script>
{/if} <!-- Twilio --> <!-- Datatables -->
{if $page == "admin" || $page == "ads" || $page ==
"developers"} <link rel="stylesheet"
type="text/css"
href="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.css"/>
<script
src="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.js"></script>
{/if} <!-- Datatables --> {/if} <!-- Dependencies
Plugins --> <!-- Sngine [JS] --> <script
src="{$system['system_url']}/includes/assets/js/sngine/core.js"
{if !$user->_logged_in}defer{/if}></script> {if
$user->_logged_in} <script
src="{$system['system_url']}/includes/assets/js/sngine/user.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/sngine/post.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/sngine/chat.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/sngine/showads.js"></script> {/if} <!--
Sngine [JS] --> {if $page == "admin"} <!--
Dependencies Plugins --> <script
src="{$system['system_url']}/includes/assets/js/plugins/bootstrap.colorpicker/bootstrap-colorpicker.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/bootstrap.colorpicker/bootstrap-colorpicker.min.css">
<script
src="{$system['system_url']}/includes/assets/js/plugins/jquery.treegrid/jquery.treegrid.min.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/plugins/jquery.treegrid/jquery.treegrid.fontawesome.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/jquery.treegrid/jquery.treegrid.css">
<script
src="{$system['system_url']}/includes/assets/js/plugins/codemirror/lib/codemirror.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/plugins/codemirror/mode/css/css.js"></script>
<script
src="{$system['system_url']}/includes/assets/js/plugins/codemirror/mode/javascript/javascript.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/codemirror/lib/codemirror.css">
<script
src="{$system['system_url']}/includes/assets/js/plugins/tagify/jquery.tagify.min.js"></script>
<link rel="stylesheet" type='text/css'
href="{$system['system_url']}/includes/assets/js/plugins/tagify/tagify.css">
<!-- Dependencies Plugins [JS] --> <!-- Sngine [JS]
--> <script
src="{$system['system_url']}/includes/assets/js/sngine/admin.js"></script>
<!-- Sngine [JS] --> <!-- Admin Charts -->
<script
src="https://code.highcharts.com/highcharts.js"></script>
<script
src="https://code.highcharts.com/modules/exporting.js"></script>
{if $view == "dashboard"} <script>
$(function () { $('#admin-chart-dashboard').highcharts({
chart: { type: 'column',
backgroundColor: 'transparent', },
title: { text: __['Monthly Average']
}, xAxis: { categories: [
__['Jan'], __['Feb'],
__['Mar'], __['Apr'],
__['May'], __['Jun'],
__['Jul'], __['Aug'],
__['Sep'], __['Oct'],
__['Nov'], __['Dec'] ],
crosshair: true }, yAxis:
{ min: 0, title: {
text: __['Total'] } },
tooltip: { headerFormat: '<span
style="font-size:10px">{literal}{point.key}{/literal}</span><table>',
pointFormat: '<tr><td
style="color:{literal}{series.color}{/literal};padding:0">{literal}{series.name}{/literal}:
</td>' + '<td
style="padding:0"><b>{literal}{point.y}{/literal}</b></td></tr>',
footerFormat: '</table>',
shared: true, useHTML: true },
plotOptions: { column: {
pointPadding: 0.2, borderWidth: 0
} }, series: [{
name: __['Users'], data:
[{','|implode:$chart['users']}] }, {
name: __['Pages'], data:
[{','|implode:$chart['pages']}] }, {
name: __['Groups'], data:
[{','|implode:$chart['groups']}] }, {
name: __['Events'], data:
[{','|implode:$chart['events']}] }, {
name: __['Posts'], data:
[{','|implode:$chart['posts']}] }] });
}); </script> {/if} {if $view ==
"packages" && $sub_view == "earnings"}
<script> $(function () {
$('#admin-chart-earnings').highcharts({ chart: {
type: 'column', backgroundColor:
'transparent', }, title: {
text: __['Monthly Average'] },
xAxis: { categories: [
__['Jan'], __['Feb'],
__['Mar'], __['Apr'],
__['May'], __['Jun'],
__['Jul'], __['Aug'],
__['Sep'], __['Oct'],
__['Nov'], __['Dec'] ],
crosshair: true }, yAxis:
{ min: 0, title: {
text: __['Total'] } },
tooltip: { headerFormat: '<span
style="font-size:10px">{literal}{point.key}{/literal}</span><table>',
pointFormat: '<tr><td
style="color:{literal}{series.color}{/literal};padding:0">{literal}{series.name}{/literal}:
</td>' + '<td
style="padding:0"><b>{literal}{point.y}{/literal}</b></td></tr>',
footerFormat: '</table>',
shared: true, useHTML: true },
plotOptions: { column: {
pointPadding: 0.2, borderWidth: 0
} }, series: [
{foreach $rows as $key => $value} {
name: "{$key}",
data: [{','|implode:$value['months_sales']}] },
{/foreach} ] });
}); </script> {/if} <!-- Admin
Charts --> <!-- Admin Code Editor --> {if $view ==
"design"} <script> $(function () {

CodeMirror.fromTextArea(document.getElementById('custome_js_header'), {
mode: "javascript",
lineNumbers: true, readOnly: false
});
CodeMirror.fromTextArea(document.getElementById('custome_js_footer'), {
mode: "javascript",
lineNumbers: true, readOnly: false
});
CodeMirror.fromTextArea(document.getElementById('custom-css'), {
mode: "css", lineNumbers: true,
readOnly: false }); });
</script> {/if} <!-- Admin Code Editor
--> {/if} <!-- Cookies Policy --> {if
$system['cookie_consent_enabled']} <script
src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"
{if !$user->_logged_in}defer{/if}></script> <link
rel="stylesheet" type="text/css"
href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css"
/> <script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({ "palette": {
"popup": {
"background": "#1e2321",
"text": "#fff" },
"button": { "background":
"#3367d6" } },
"theme": "edgeless",
"position": {if $system['language']['dir'] ==
'LTR'}"bottom-left"{else}"bottom-right"{/if},
"content": { "message":
__['This website uses cookies to ensure you get the best experience on our
website'], "dismiss": __['Got It!'],
"link": __['Learn More'],
"href": site_path+"/static/privacy"
} }) }); </script> {/if} <!-- Cookies
Policy --> <!-- OneSignal Notifications --> {if
$user->_logged_in &&
$system['onesignal_notification_enabled']} <script
src="https://cdn.onesignal.com/sdks/OneSignalSDK.js"
async=""></script> <script> var
onesignal_basepath = "{$system['BASEPATH']}"; var
onesignal_app_id = "{$system['onesignal_app_id']}"; var
onesignal_user_id = "{$user->_data['onesignal_user_id']}";
var onesignal_push_id = ""; var OneSignal =
window.OneSignal || []; OneSignal.push(function() {
OneSignal.SERVICE_WORKER_PARAM = { scope: '/' + onesignal_basepath + '/'
}; OneSignal.SERVICE_WORKER_PATH = onesignal_basepath +
'/OneSignalSDKWorker.js';
OneSignal.SERVICE_WORKER_UPDATER_PATH = onesignal_basepath +
'/OneSignalSDKUpdaterWorker.js'; OneSignal.init({
appId: onesignal_app_id, autoResubscribe: false,
notifyButton: { enable: true, /* Required
to use the Subscription Bell */ size: 'medium', /* One
of 'small', 'medium', or 'large' */ theme: 'default',
/* One of 'default' (red-white) or 'inverse" (white-red) */
position: (theme_dir_rtl)? 'bottom-left' : 'bottom-right', /*
Either 'bottom-left' or 'bottom-right' */ offset: {
bottom: '20px', left:
'20px', /* Only applied if bottom-left */ right:
'20px' /* Only applied if bottom-right */ },
prenotify: true, /* Show an icon with 1 unread message for
first-time site visitors */ showCredit: false, /* Hide
the OneSignal logo */ text: {
'tip.state.unsubscribed': __['Subscribe to notifications'],
'tip.state.subscribed': __['You are subscribed to
notifications'], 'tip.state.blocked': __['You have
blocked notifications'], 'message.prenotify':
__['Click to subscribe to notifications'],
'message.action.subscribed': __['Thanks for subscribing!'],
'message.action.resubscribed': __['You are subscribed to
notifications'], 'message.action.unsubscribed':
__['You will not receive notifications again'],
'dialog.main.title': __['Manage Site Notifications'],
'dialog.main.button.subscribe': __['SUBSCRIBE'],
'dialog.main.button.unsubscribe': __['UNSUBSCRIBE'],
'dialog.blocked.title': __['Unblock Notifications'],
'dialog.blocked.message': __['Follow these instructions to allow
notifications:'] }, colors: {
'circle.background': 'rgb(84,110,123)',
'circle.foreground': 'white',
'badge.background': 'rgb(84,110,123)',
'badge.foreground': 'white', 'badge.bordercolor':
'white', 'pulse.color': 'white',
'dialog.button.background.hovering': 'rgb(77, 101, 113)',
'dialog.button.background.active': 'rgb(70, 92, 103)',
'dialog.button.background': 'rgb(84,110,123)',
'dialog.button.foreground': 'white' },
}, allowLocalhostAsSecureOrigin: true,
}); OneSignal.getUserId(function(userId) {
onesignal_push_id = userId; if (userId !=
onesignal_user_id) {
$.post(api['users/notifications'], { handle: 'update', id:
onesignal_push_id }); } });
OneSignal.on('subscriptionChange', function (isSubscribed) {
if (isSubscribed == false) {
$.post(api['users/notifications'], { handle: 'delete' });
} else { $.post(api['users/notifications'], { handle:
'update', id: onesignal_push_id }); } });
}); </script> {/if} <!-- OneSignal Notifications
--> {/strip}
Онлайн: 0
Реклама