This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('MVC_FRAMEWORK') or die; | |
/** | |
* Hide map in detail page when the listing doesn't have a street address | |
*/ | |
function hide_map_noaddress($viewVars, $params) | |
{ | |
$controller = $params['controller']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('MVC_FRAMEWORK') or die; | |
/** | |
* In front-end, load Google Maps API only while using the listing form | |
* if either the map service or geocoding service is set to Google | |
*/ | |
function google_api_listing_form_only($load, $params) | |
{ | |
if ( $params['in_admin'] ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( defined('MVC_FRAMEWORK_ADMIN') ) return false; | |
$listingHelper = ClassRegistry::getClass('ListingHelperHelper'); | |
$routesHelper = ClassRegistry::getClass('RoutesHelper'); | |
ob_start(); | |
$claim = $listingHelper->claim($entry); | |
$claimButton = ob_get_clean(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('MVC_FRAMEWORK') or die; | |
function antispam_filter($validation, $params) | |
{ | |
$files = glob(__DIR__.DS.'spamlists/*.conf'); | |
$list = ''; | |
foreach ($files as $file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace JReviews\Listeners; | |
defined( 'MVC_FRAMEWORK') or die; | |
use cmsFramework; | |
use S2Array; | |
use JReviews\Listeners\Traits\ListenerSetting; | |
use Clickfwd\Listener\QueueableListener; | |
use Clickfwd\Event\EventInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('MVC_FRAMEWORK') or die; | |
require dirname(dirname(__FILE__)).DS.'filters/stripe_config.php'; | |
DeveloperController::macro('stripe_checkout', function() use ($stripe_config) | |
{ | |
$config = $stripe_config; | |
$client = new \GuzzleHttp\Client(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('MVC_FRAMEWORK') or die; | |
/** | |
* Change the minimum word length requirement for a word to be included in a keyword search | |
*/ | |
function listing_search_minimum_characters($request, $params) | |
{ | |
ListingsRepositoryComponent::$min_word_chars = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.menu-horizontal .submenu:not(.menu-module) { | |
display: block; | |
} | |
.menu-horizontal.dropdown-hover .dropdown > .submenu { | |
visibility: hidden; | |
opacity: 0; | |
max-height: 0; | |
transition-duration: 0.5s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.floating-menu { | |
position: fixed; | |
top: 40px; /*adjustment for existing top-bar module, so the menu stacks below it*/ | |
left: 0; | |
right: 0; | |
width: 100%; | |
z-index: 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.floating-menu { | |
position: fixed; | |
top: 40px; /*adjustment for existing top-bar module, so the menu stacks below it*/ | |
left: 0; | |
right: 0; | |
width: 100%; | |
z-index: 1; | |
} | |
.moduleid-269 .menu-horizontal { |
OlderNewer