forked from ceekayel/Tevolution-LocationManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle_box.php
executable file
·42 lines (42 loc) · 2.37 KB
/
bundle_box.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
* Add action for display the Digital Download bundle box in tevolution plugin dashboard.
*/
add_action('templconnector_bundle_box','add_tevolution_location_bundle_box');
function add_tevolution_location_bundle_box()
{
$activated = @$_REQUEST['activated'];
$deactivate = @$_REQUEST['deactivate'];
if(function_exists('templatic_module_activationmsg'))
{
if($activated)
templatic_module_activationmsg('tevolution_location','Tevolution Location Manager','',$mod_message='',$realted_mod ='');
else
templatic_module_activationmsg('tevolution_location','Tevolution Location Manager','',$mod_message='',$realted_mod ='');
}
?>
<div id="templatic_tevolution_location" class="postbox widget_div">
<div title="Click to toggle" class="handlediv"></div>
<h3 class="hndle"><span><?php echo __('Tevolution Location Manager',LMADMINDOMAIN); ?></span></h3>
<div class="inside">
<img class="dashboard_img" src="<?php echo TEVOLUTION_LOCATION_URL?>images/icon-directory.png" />
<?php
echo __('A directory module from Templatic that helps you to enhance your website with some brilliant features like showing map, places, sorting places with the help of map etc. This feature gives you freedom and flexibility to add,sort and monitor your places from your back-end. ',LMADMINDOMAIN);
?>
<div class="clearfixb"></div>
<?php if(!is_active_addons('tevolution_location')) :?>
<div id="publishing-action">
<a href="<?php echo site_url()."/wp-admin/admin.php?page=templatic_system_menu&activated=tevolution_location&true=1";?>" class="templatic-tooltip button-primary"><?php echo __('Activate →',LMADMINDOMAIN); ?></a>
</div>
<?php endif;?>
<?php if (is_active_addons('tevolution_location')) : ?>
<div class="settings_style">
<a href="<?php echo site_url()."/wp-admin/admin.php?page=templatic_system_menu&deactivate=tevolution_location&true=0";?>" class="deactive_lnk"><?php echo __('Deactivate ',LMADMINDOMAIN); ?></a>|
<a class="templatic-tooltip set_lnk" href="<?php echo site_url()."/wp-admin/admin.php?page=directory_settings";?>"><?php echo __('Settings',LMADMINDOMAIN); ?></a>
</div>
<?php endif; ?>
</div>
</div>
<?php
}
?>