Changeset 3479072
- Timestamp:
- 03/10/2026 12:46:13 PM (3 weeks ago)
- Location:
- wp-businessdirectory/trunk
- Files:
-
- 26 edited
-
admin/controllers/jbusinessdirectory.php (modified) (1 diff)
-
admin/models/applicationsettings.php (modified) (1 diff)
-
admin/models/category.php (modified) (1 diff)
-
admin/models/database.php (modified) (3 diffs)
-
admin/models/jbusinessdirectory.php (modified) (6 diffs)
-
admin/models/updates.php (modified) (1 diff)
-
admin/views/applicationsettings/tmpl/businesslistings.php (modified) (1 diff)
-
admin/views/applicationsettings/tmpl/default.php (modified) (1 diff)
-
admin/views/applicationsettings/tmpl/frontend.php (modified) (1 diff)
-
admin/views/jbusinessdirectory/tmpl/default.php (modified) (2 diffs)
-
admin/views/statistics/tmpl/default.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
site/classes/services/EmailService.php (modified) (1 diff)
-
site/classes/services/NotificationService.php (modified) (1 diff)
-
site/classes/services/PaymentService.php (modified) (1 diff)
-
site/classes/services/TripBookingService.php (modified) (2 diffs)
-
site/classes/traits/OfferSellingSummary.php (modified) (1 diff)
-
site/helpers/utils.php (modified) (3 diffs)
-
site/models/catalog.php (modified) (1 diff)
-
site/models/companies.php (modified) (1 diff)
-
site/models/directoryrss.php (modified) (1 diff)
-
site/models/search.php (modified) (1 diff)
-
site/views/cart/tmpl/default.php (modified) (5 diffs)
-
site/views/jbdview.php (modified) (10 diffs)
-
site/views/userdashboard/tmpl/default.php (modified) (3 diffs)
-
wp-businessdirectory.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-businessdirectory/trunk/admin/controllers/jbusinessdirectory.php
r3467989 r3479072 72 72 73 73 public function installApp() { 74 if (!current_user_can('manage_options')) { 75 wp_send_json_error(['message' => __('You do not have permission to install apps.', 'jbusinessdirectory')], 403); 76 } 77 78 if (!isset($_POST['wpbd_install_app_nonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['wpbd_install_app_nonce'])), 'wpbd_install_app')) { 79 wp_send_json_error(['message' => __('Security check failed.', 'jbusinessdirectory')], 403); 80 } 81 74 82 $model = $this->getModel(); 75 83 $result = $model->bulkInstallApps(); -
wp-businessdirectory/trunk/admin/models/applicationsettings.php
r3467989 r3479072 1105 1105 */ 1106 1106 public function clearOSMCache() { 1107 $cacheDir = JPATH_ SITE.'/components/com_jbusinessdirectory/libraries/cache';1107 $cacheDir = JPATH_COMPONENT_SITE . '/libraries/cache'; 1108 1108 1109 1109 $result = true; -
wp-businessdirectory/trunk/admin/models/category.php
r3467989 r3479072 714 714 715 715 public function getCategoryTypes() { 716 BaseDatabaseModel::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/ components/com_jbusinessdirectory/models', 'Categories');716 BaseDatabaseModel::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/models', 'Categories'); 717 717 $model = BaseDatabaseModel::getInstance('Categories', 'JBusinessDirectoryModel', array('ignore_request' => true)); 718 718 $types = $model->getCategoryTypes(); -
wp-businessdirectory/trunk/admin/models/database.php
r3467989 r3479072 121 121 */ 122 122 public function getInstallationDBSchema() { 123 $installationSQLPath = JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/sql/install.sql';123 $installationSQLPath = JPATH_COMPONENT_ADMINISTRATOR . '/sql/install.sql'; 124 124 $installationSQL=""; 125 125 try { … … 139 139 */ 140 140 public function getItems() { 141 $folder = JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/sql/updates/';141 $folder = JPATH_COMPONENT_ADMINISTRATOR . '/sql/updates/'; 142 142 143 143 try { … … 690 690 $db = $this->getDbo(); 691 691 692 $updateSQLPath = JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/sql/update_default.sql';692 $updateSQLPath = JPATH_COMPONENT_ADMINISTRATOR . '/sql/update_default.sql'; 693 693 $updateSQL=""; 694 694 try { -
wp-businessdirectory/trunk/admin/models/jbusinessdirectory.php
r3467989 r3479072 777 777 public function getAppPackage($file) { 778 778 $userfile = $file; 779 $packageName = $userfile['name']; 779 780 // Sanitize the raw filename: strip directory components and normalize. 781 $packageName = sanitize_file_name(basename($userfile['name'])); 782 783 // Enforce that the uploaded file is a .zip — reject anything else. 784 if (strtolower(pathinfo($packageName, PATHINFO_EXTENSION)) !== 'zip') { 785 throw new Exception(Text::_('LNG_BAD_PACKAGE')); 786 } 787 788 // Validate against the whitelist BEFORE touching the filesystem. 789 if (!$this->isFound($this->directoryApps, $packageName)) { 790 throw new Exception(Text::_('LNG_BAD_PACKAGE')); 791 } 792 793 $packageSlug = pathinfo($packageName, PATHINFO_FILENAME); 780 794 781 795 $upload_dir = wp_upload_dir(); … … 785 799 } 786 800 787 $filename = wp_unique_filename($user_dirname, $ file['name']);801 $filename = wp_unique_filename($user_dirname, $packageName); 788 802 $filePath = $user_dirname . '/' . $filename; 789 803 move_uploaded_file($userfile['tmp_name'], $filePath); … … 792 806 WP_Filesystem(); 793 807 794 $dest = $user_dirname."/".substr($packageName, 0, strpos($packageName,".")); 795 808 // Use the sanitized slug (no raw user input) as the extraction subdirectory. 809 $dest = $user_dirname . '/' . $packageSlug; 810 796 811 if (!file_exists($dest)) { 797 812 wp_mkdir_p($dest); … … 799 814 unzip_file($filePath, $dest); 800 815 801 $package = array(); 802 803 $package["dir"] = $dest; 804 805 if ($this->isFound($this->directoryApps, $packageName)) { 806 $package["name"] = $packageName; 807 } 816 $package = array(); 817 $package["dir"] = $dest; 818 $package["name"] = $packageName; 808 819 809 820 return $package; … … 859 870 */ 860 871 public function installApp($file) { 861 try { 862 $package = $this->getAppPackage($file); 863 } catch (Exception $e) { 864 throw(new Exception($e->getMessage())); 865 } 866 867 if (isset($package["name"])) { 868 return $this->installDirectoryApp($package); 869 } 870 871 872 return $result; 872 // getAppPackage() throws on any validation failure, so $package is 873 // always a fully-populated array when we reach installDirectoryApp(). 874 $package = $this->getAppPackage($file); 875 return $this->installDirectoryApp($package); 873 876 } 874 877 … … 1259 1262 $dir = opendir($src); 1260 1263 if (!is_dir($dst)) { 1261 mkdir($dst, 07 77);1264 mkdir($dst, 0755); 1262 1265 } 1263 1266 1264 1267 while (($file = readdir($dir)) !== false) { 1265 if (($file != '.') && ($file != '..') && ($file != '.svn')) { 1266 if (is_dir($src . '/' . $file)) { 1267 $this->copyToDestination($src . DS . $file, $dst . DS . $file); 1268 } else { 1269 copy($src . DS . $file, $dst . DS . $file); 1270 } 1268 if (($file === '.') || ($file === '..') || ($file === '.svn')) { 1269 continue; 1270 } 1271 1272 $srcFile = $src . DS . $file; 1273 $dstFile = $dst . DS . $file; 1274 1275 if (is_dir($srcFile)) { 1276 $this->copyToDestination($srcFile, $dstFile); 1277 } else { 1278 copy($srcFile, $dstFile); 1271 1279 } 1272 1280 } -
wp-businessdirectory/trunk/admin/models/updates.php
r3467989 r3479072 346 346 public function store($post) { 347 347 // Load the ApplicationSettings table class 348 Table::addIncludePath(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/tables');348 Table::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables'); 349 349 $table = Table::getInstance('ApplicationSettings', 'JTable'); 350 350 -
wp-businessdirectory/trunk/admin/views/applicationsettings/tmpl/businesslistings.php
r3467989 r3479072 627 627 </div> 628 628 629 <?php if(file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/companyservice.php')) { ?>629 <?php if(file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/companyservice.php')) { ?> 630 630 <div class="control-group"> 631 631 <div class="control-label"><label id="enable_services-lbl" for="enable_services" class="hasTooltip" data-toggle="tooltip" data-original-title="<strong><?php echo Text::_('LNG_ENABLE_COMPANY_SERVICES');?></strong><br/><?php echo Text::_('LNG_ENABLE_COMPANY_SERVICES_DESCRIPTION');?>" title=""><?php echo Text::_('LNG_ENABLE_COMPANY_SERVICES'); ?></label></div> -
wp-businessdirectory/trunk/admin/views/applicationsettings/tmpl/default.php
r3467989 r3479072 300 300 echo $jbdTabs->endTab(); 301 301 302 if (file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/conferences.php')){302 if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/conferences.php')){ 303 303 echo $jbdTabs->addTab('tab_general_id','panel_11', Text::_('LNG_CONFERENCES')); 304 304 require_once 'conferences.php'; -
wp-businessdirectory/trunk/admin/views/applicationsettings/tmpl/frontend.php
r3467989 r3479072 263 263 <?php 264 264 $disabled = ""; 265 if (!file_exists(JPATH_ SITE.'/components/com_jbusinessdirectory/libraries/cache')) {265 if (!file_exists(JPATH_COMPONENT_SITE . '/libraries/cache')) { 266 266 $disabled = "disabled"; 267 267 } -
wp-businessdirectory/trunk/admin/views/jbusinessdirectory/tmpl/default.php
r3467989 r3479072 700 700 }); 701 701 702 var wpbdInstallNonce = "<?php echo esc_js(wp_create_nonce('wpbd_install_app')); ?>"; 703 702 704 jQuery("#file-upload").dropzone({ 703 acceptedFiles: ".zip ,.rar",705 acceptedFiles: ".zip", 704 706 url: jbdUtils.getAjaxUrl('installApp', 'jbusinessdirectory'), 705 707 clickable: ".fileinput-button", … … 709 711 addRemoveLinks: true, 710 712 parallelUploads: 10, 713 sendingmultiple: function(files, xhr, formData) { 714 formData.append('wpbd_install_app_nonce', wpbdInstallNonce); 715 }, 711 716 init: function() { 712 717 let myDropzone = this; -
wp-businessdirectory/trunk/admin/views/statistics/tmpl/default.php
r3467989 r3479072 33 33 <option value="<?php echo STATISTIC_ITEM_EVENT ?>"><?php echo Text::_('LNG_EVENTS');?></option> 34 34 <?php } ?> 35 <?php if(file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/conference.php')) { ?>35 <?php if(file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/conference.php')) { ?> 36 36 <option value="<?php echo STATISTIC_ITEM_SESSION_LOCATION ?>"><?php echo Text::_('LNG_SESSION_LOCATIONS');?></option> 37 37 <?php } ?> -
wp-businessdirectory/trunk/readme.txt
r3467989 r3479072 4 4 Tags: directory, business directory, classifieds, listings, membership, events, appointments, quote requests, directory plugin, directory mobile app, member directory, company directory, team directory, chamber of commerce business directory, church directory, address book, contact directory, local business directory, listings directory, link directory 5 5 Requires at least: 4.9 6 Tested up to: 6. 8.07 Stable tag: 4.0. 06 Tested up to: 6.9.1 7 Stable tag: 4.0.1 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later -
wp-businessdirectory/trunk/site/classes/services/EmailService.php
r3467989 r3479072 105 105 } 106 106 $applicationSettings = JBusinessUtil::getApplicationSettings(); 107 Table::addIncludePath(JPATH_ ROOT.'/administrator/components/com_jbusinessdirectory/tables');107 Table::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables'); 108 108 $offerTable = Table::getInstance("Offer", "JTable"); 109 109 $offer = $offerTable->getOffer($offerId); -
wp-businessdirectory/trunk/site/classes/services/NotificationService.php
r3467989 r3479072 461 461 { 462 462 463 BaseDatabaseModel::addIncludePath(JPATH_ ROOT . '/administrator/components/com_jbusinessdirectory/models', 'JBusinessDirectoryModel');463 BaseDatabaseModel::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/models', 'JBusinessDirectoryModel'); 464 464 $model = BaseDatabaseModel::getInstance('MobileAppNotifications', 'JBusinessDirectoryModel', array('ignore_request' => true)); 465 465 -
wp-businessdirectory/trunk/site/classes/services/PaymentService.php
r3467989 r3479072 13 13 use Joomla\CMS\Table\Table; 14 14 15 Table::addIncludePath( 'administrator/components/com_jbusinessdirectory/tables');15 Table::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables'); 16 16 17 17 class PaymentService { -
wp-businessdirectory/trunk/site/classes/services/TripBookingService.php
r3467989 r3479072 74 74 } 75 75 76 Table::addIncludePath(JPATH_ ROOT.'/administrator/components/com_jbusinessdirectory/tables');76 Table::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables'); 77 77 $tripBookingsTable = Table::getInstance('TripBookings', 'JTable', array()); 78 78 $booking = $tripBookingsTable->getBookingDetails($orderId); … … 104 104 } 105 105 106 Table::addIncludePath(JPATH_ ROOT.'/administrator/components/com_jbusinessdirectory/tables');106 Table::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables'); 107 107 $tripBookingsTable = Table::getInstance('TripBookings', 'JTable', array()); 108 108 -
wp-businessdirectory/trunk/site/classes/traits/OfferSellingSummary.php
r3467989 r3479072 27 27 */ 28 28 public static function getOrderSummary($cartDetails) { 29 $enableShipping = file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/shippingmethod.php') && JBusinessUtil::getApplicationSettings()->enable_shipping;29 $enableShipping = file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/shippingmethod.php') && JBusinessUtil::getApplicationSettings()->enable_shipping; 30 30 31 31 // Need to recalculate the total from $cartDetails based on country selection tax -
wp-businessdirectory/trunk/site/helpers/utils.php
r3467989 r3479072 634 634 JBusinessUtil::enqueueStyle('css/common.css?v=' . $version); 635 635 636 if (file_exists(JPATH_ SITE . '/components/com_jbusinessdirectory/assets/css/custom.css')) {636 if (file_exists(JPATH_COMPONENT_SITE . '/assets/css/custom.css')) { 637 637 JBusinessUtil::enqueueStyle('css/custom.css?v=' . $version); 638 638 } … … 4715 4715 $tag = JBusinessUtil::getCurrentLanguageCode(); 4716 4716 4717 if (!file_exists(JPATH_ SITE . '/components/com_jbusinessdirectory/assets/libraries/validation-engine/jquery.validationEngine-' . $tag . '.js')) {4717 if (!file_exists(JPATH_COMPONENT_SITE . '/assets/libraries/validation-engine/jquery.validationEngine-' . $tag . '.js')) { 4718 4718 $tag = "en"; 4719 4719 } … … 6787 6787 } 6788 6788 $jsSettings->baseUrl = Route::_('index.php?option=com_jbusinessdirectory'); 6789 $jsSettings->imageRepo = get_site_url() . 'components/com_jbusinessdirectory';6789 $jsSettings->imageRepo = WP_BUSINESSDIRECTORY_URL; 6790 6790 6791 6791 $jsSettings->imageBaseUrl = (BD_PICTURES_PATH); -
wp-businessdirectory/trunk/site/models/catalog.php
r3467989 r3479072 114 114 } 115 115 116 BaseDatabaseModel::addIncludePath(JPATH_ SITE . '/components/com_jbusinessdirectory/models', 'Companies');116 BaseDatabaseModel::addIncludePath(JPATH_COMPONENT_SITE . '/models', 'Companies'); 117 117 $comanyModel = BaseDatabaseModel::getInstance('Companies', 'JBusinessDirectoryModel', array('ignore_request' => true)); 118 118 -
wp-businessdirectory/trunk/site/models/companies.php
r3467989 r3479072 1320 1320 */ 1321 1321 public function getServices() { 1322 if (!file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/tables/companyservices.php')) {1322 if (!file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/tables/companyservices.php')) { 1323 1323 return null; 1324 1324 } -
wp-businessdirectory/trunk/site/models/directoryrss.php
r3467989 r3479072 13 13 use Joomla\CMS\MVC\Model\ListModel; 14 14 15 Table::addIncludePath(JPATH_ ROOT.'/administrator/components/com_jbusinessdirectory/tables');15 Table::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables'); 16 16 17 17 class JBusinessDirectoryModelDirectoryRSS extends ListModel { -
wp-businessdirectory/trunk/site/models/search.php
r3467989 r3479072 718 718 } 719 719 720 BaseDatabaseModel::addIncludePath(JPATH_ SITE . '/components/com_jbusinessdirectory/models', 'Companies');720 BaseDatabaseModel::addIncludePath(JPATH_COMPONENT_SITE . '/models', 'Companies'); 721 721 $comanyModel = BaseDatabaseModel::getInstance('Companies', 'JBusinessDirectoryModel', array('ignore_request' => true)); 722 722 -
wp-businessdirectory/trunk/site/views/cart/tmpl/default.php
r3467989 r3479072 103 103 <div class="row"> 104 104 <div class="col-md-4"> 105 <?php if(file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?>105 <?php if(file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?> 106 106 <select id="shipping_method_<?php echo $companyId ?>" class="form-control shipping-method" onchange="selectShippingMethod('<?php echo $companyId ?>')"> 107 107 <option value="-1"><?php echo Text::_('LNG_SELECT_SHIPPING_METHOD') ?></option> … … 132 132 </div> 133 133 134 <?php if(file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?>134 <?php if(file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?> 135 135 <div class="price-item"> 136 136 <div class="price-text"> … … 188 188 189 189 190 <?php if(file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?>190 <?php if(file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?> 191 191 <div class="order-section"> 192 192 <div class="order-item-title"> … … 231 231 function checkoutCart() { 232 232 let selectAll = true; 233 <?php if(file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?>233 <?php if(file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?> 234 234 jQuery('.shipping-method').each(function () { 235 235 let val = jQuery(this).val(); … … 315 315 } 316 316 317 <?php if(file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?>317 <?php if(file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/shippingmethod.php') && $this->appSettings->enable_shipping) { ?> 318 318 function selectShippingMethod(companyId) { 319 319 let urlSelectShippingMethod = jbdUtils.getAjaxUrl('selectShippingMethodAjax', 'cart'); -
wp-businessdirectory/trunk/site/views/jbdview.php
r3467989 r3479072 346 346 347 347 348 if ($this->appSettings->enable_services == 1 && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/companyservice.php')) {348 if ($this->appSettings->enable_services == 1 && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/companyservice.php')) { 349 349 350 350 $menuItem = array( … … 406 406 407 407 408 if ($this->appSettings->enable_offer_selling && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/offerorder.php')) {408 if ($this->appSettings->enable_offer_selling && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/offerorder.php')) { 409 409 $smenuItem = array( 410 410 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_OFFER_ORDERS'), … … 415 415 $submenu[] = $smenuItem; 416 416 417 if (file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/shippingmethod.php') && $this->appSettings->enable_shipping) {417 if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/shippingmethod.php') && $this->appSettings->enable_shipping) { 418 418 $smenuItem = array( 419 419 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_SHIPPING_METHODS'), … … 456 456 $submenu[] = $smenuItem; 457 457 458 if ($this->appSettings->enable_event_reservation && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/eventticket.php')) {458 if ($this->appSettings->enable_event_reservation && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/eventticket.php')) { 459 459 $smenuItem = array( 460 460 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_EVENT_TICKETS'), … … 472 472 } 473 473 474 if ($this->appSettings->enable_event_appointments && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/eventappointment.php')) {474 if ($this->appSettings->enable_event_appointments && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/eventappointment.php')) { 475 475 $smenuItem = array( 476 476 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_EVENT_APPOINTMENTS'), … … 717 717 $menus[] = $menuItem; 718 718 719 if (file_exists(JPATH_ ADMINISTRATOR.'/components/com_jbusinessdirectory/models/conference.php')) {719 if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/conference.php')) { 720 720 $menuItem = array( 721 721 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_CONFERENCE_SUGGESTIONS'), … … 774 774 } 775 775 776 if ($this->appSettings->enable_events && $this->appSettings->enable_event_reservation && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/eventticket.php')) {776 if ($this->appSettings->enable_events && $this->appSettings->enable_event_reservation && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/eventticket.php')) { 777 777 778 778 $menuItem = array( … … 785 785 } 786 786 787 if ($this->appSettings->enable_services == 1 && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/companyservice.php')) {787 if ($this->appSettings->enable_services == 1 && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/companyservice.php')) { 788 788 $menuItem = array( 789 789 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_SERVICE_BOOKINGS'), … … 795 795 } 796 796 797 if ($this->appSettings->enable_events && $this->appSettings->enable_event_appointments && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/eventappointment.php')) {797 if ($this->appSettings->enable_events && $this->appSettings->enable_event_appointments && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/eventappointment.php')) { 798 798 $menuItem = array( 799 799 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_EVENT_APPOINTMENTS'), … … 805 805 } 806 806 807 if ($this->appSettings->enable_offers && $this->appSettings->enable_offer_selling && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/offerorder.php')) {807 if ($this->appSettings->enable_offers && $this->appSettings->enable_offer_selling && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/offerorder.php')) { 808 808 $menuItem = array( 809 809 "title" => Text::_('COM_JBUSINESS_DIRECTORY_SUBMENU_OFFER_ORDERS'), -
wp-businessdirectory/trunk/site/views/userdashboard/tmpl/default.php
r3467989 r3479072 57 57 <div class="row pt-5"> 58 58 <?php if($this->actions->get('directory.access.listing.service.reservation')|| !$appSettings->front_end_acl) { 59 if ($this->appSettings->enable_services == 1 && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/companyservice.php')) {59 if ($this->appSettings->enable_services == 1 && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/companyservice.php')) { 60 60 ?> 61 61 <div class="col-lg-4"> … … 79 79 80 80 <?php if($enableOffers && ($this->actions->get('directory.access.offers')|| !$appSettings->front_end_acl) 81 && $this->appSettings->enable_offers && $this->appSettings->enable_offer_selling && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/offerorder.php')81 && $this->appSettings->enable_offers && $this->appSettings->enable_offer_selling && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/offerorder.php') 82 82 ){?> 83 83 <div class="col-lg-4"> … … 101 101 102 102 <?php if($appSettings->enable_events && ($this->actions->get('directory.access.event.tickets')|| !$appSettings->front_end_acl) 103 && $this->appSettings->enable_event_reservation && file_exists(JPATH_ ADMINISTRATOR . '/components/com_jbusinessdirectory/models/eventticket.php')103 && $this->appSettings->enable_event_reservation && file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/models/eventticket.php') 104 104 ){?> 105 105 <div class="col-lg-4"> -
wp-businessdirectory/trunk/wp-businessdirectory.php
r3467989 r3479072 5 5 * Description: Professional Business Directory 6 6 * Author: CMSJunkie 7 * Version: 4.0. 07 * Version: 4.0.1 8 8 * Author URI: https://www.cmsjunkie.com 9 9 */ … … 27 27 $startTime = microtime(true); // Gets current microtime as one long string 28 28 29 define('WP_BUSINESSDIRECTORY_VERSION_NUM', '4.0. 0');29 define('WP_BUSINESSDIRECTORY_VERSION_NUM', '4.0.1'); 30 30 define('WP_BUSINESSDIRECTORY_VERSION_KEY', 'wpbd_plugin_version'); 31 define('WP_BUSINESSDIRECTORY_DB_VERSION_NUM', '4.0. 0');31 define('WP_BUSINESSDIRECTORY_DB_VERSION_NUM', '4.0.1'); 32 32 define('WP_BUSINESSDIRECTORY_DB_VERSION_KEY', 'wpbd_db_version'); 33 33
Note: See TracChangeset
for help on using the changeset viewer.