Source
1346 if (file_exists($photo_ori_path)) {
1347 //$url = $this->processPhotoPath($photo_ori_path, 'croppedResize', 125, 166);
1348 $url = $this->processPhotoPath($photo_ori_path, 'croppedResize', 270, 360);
1349 return '<img src="' . $url . '" />';
1350 }
1351
1352 }
1353
1354 function getPhotoThumbURL() {
1355 $defaultPhoto = SiteConfig::current_site_config()->DefaultAgentimg()->CroppedImage(240, 240)->Filename;
1356 $photo_ori_path = Director::baseFolder() . '/' .$defaultPhoto;
1357 //echo $photo_ori_path;
1358 if ($this->PhotoID) {
1359 //$photo = $this->Photo()->CroppedImage(125, 166);
1360
1361 $photo = $this->Photo()->CroppedImage(250, 250);
Trace
- salestjandra->getPhotoThumbURL()
ViewableData.php:463
- ViewableData->obj(getPhotoThumbURL,,,1)
ViewableData.php:536
- ViewableData->XML_val(getPhotoThumbURL,,1)
- call_user_func_array(Array,Array)
SSViewer.php:187
- SSViewer_Scope->__call(XML_val,Array)
SSViewer.php:650
- SSViewer_DataPresenter->__call(XML_val,Array)
.cache.themes.xmarks-2020.templates.Layout.PropertyDetail.ss:576
- SSViewer_DataPresenter->XML_val(getPhotoThumbURL,,1)
.cache.themes.xmarks-2020.templates.Layout.PropertyDetail.ss:576
- include(/tmp/silverstripe-cache-var-www-html-xmarks/hestiamail-php5.6.40-81+ubuntu22.04.1+deb.sury.org+1/.cache.themes.xmarks-2020.templates.Layout.PropertyDetail.ss)
SSViewer.php:1172
- SSViewer->includeGeneratedTemplate(/tmp/silverstripe-cache-var-www-html-xmarks/hestiamail-php5.6.40-81+ubuntu22.04.1+deb.sury.org+1/.cache.themes.xmarks-2020.templates.Layout.PropertyDetail.ss,ViewableData_Customised,,Array,)
SSViewer.php:1234
- SSViewer->process(ViewableData_Customised,)
SSViewer.php:1230
- SSViewer->process(ViewableData_Customised,)
ViewableData.php:403
- ViewableData->renderWith(Array)
PropertyIndexPage.php:1386
- PropertyIndexPage_Controller->detail(SS_HTTPRequest)
RequestHandler.php:296
- RequestHandler->handleAction(SS_HTTPRequest,detail)
Controller.php:192
- Controller->handleAction(SS_HTTPRequest,detail)
RequestHandler.php:208
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:151
- Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:174
- ContentController->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:75
- ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:385
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:149
- Director::direct(/property-search/detail/RUMAH-BAGUS-BANGET,DataModel)
main.php:194