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; | |
S2App::import('Model',['everywhere_com_content','import_listing'],'jreviews'); | |
S2App::import('Component','import_photo_helper','jreviews'); | |
class CustomImportController extends MyController { | |
var $uses = ['Media']; |
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
{ | |
"title": "Periods", | |
"type": "array", | |
"format": "table", | |
"items": { | |
"title": "Period", | |
"type": "object", | |
"properties": { | |
"day": { | |
"title": "Day", |
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; | |
/** | |
* Group A must review Group B first | |
* Group B, can then review Group A | |
* Reviews automatically closed after users review each other by disabling duplicate reviews in settings | |
*/ | |
function can_create_user_review_for_profile($permission, $params) | |
{ |
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
/* Smartphone */ | |
@media (max-width: 480px) { | |
.jrFieldGroup .jrFieldRow { | |
display: flex; | |
flex-flow: column; | |
} | |
.jrFieldGroup .jrFieldValue { | |
margin-left: 0; | |
margin-top: .5rem; |
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 JReviews\Listeners\Traits\ListenerSetting; | |
use Clickfwd\Listener\QueueableListener; | |
use League\Event\EventInterface; | |
use GuzzleHttp\Client as Guzzle; |
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 bitpixels_thumbnail($listings, $params) | |
{ | |
if ( $params['controller'] == 'com_content' ) | |
{ | |
$listings = [$listings]; | |
} |
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
.jrIconEditor { | |
width: 16px; | |
height: 16px; | |
display: inline-block; | |
background-size: 16px 16px; | |
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234a5568' class='w-8 h-8'%3E%3Cpath fill-rule='evenodd' d='M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z' clip-rule='evenodd'%3E%3C/path%3E%3C/svg%3E"); | |
} | |
.jrIconEditor:before { | |
content: unset; | |
} |
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; | |
/** | |
* Re-writes image URLs to the CloudFlare Image CDN | |
* https://developers.cloudflare.com/images/about/ | |
*/ | |
function jreviews_cloudflare_cdn_thumbnails ($attr, $params = []) | |
{ | |
// Skip if thumbnails are not yet generated |
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
return '<div class="jr-show-more" data-characters="50">'.nl2br(strip_tags($text)).'</div>'; |
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 close_future_event_reviews($open, $params) | |
{ | |
$listing = $params['listing']; | |
$fieldName = 'jr_eventstartdate'; | |
if ( !empty($listing['Field']['pairs'][$fieldName]['value'][0]) && $listing['Field']['pairs'][$fieldName]['value'][0] > date("Y-m-d H:i:s") ) |