Changeset 1825761
- Timestamp:
- 02/21/2018 01:14:32 AM (8 years ago)
- Location:
- jssor-slider/trunk
- Files:
-
- 1 deleted
- 6 edited
-
config/config.php (modified) (1 diff)
-
includes/bll/class-jssor-slider-slider.php (modified) (1 diff)
-
includes/bll/gencode/class-wjssl-slider-build-converter.php (modified) (1 diff)
-
includes/bll/gencode/class-wjssl-slider-code-document.php (modified) (8 diffs)
-
jssor-slider.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
resources/upload/script/jssor.slider-27.0.4.min.js (deleted)
Legend:
- Unmodified
- Added
- Removed
-
jssor-slider/trunk/config/config.php
r1820989 r1825761 14 14 15 15 if (!defined('WP_JSSOR_SLIDER_VERSION')) { 16 define('WP_JSSOR_SLIDER_VERSION', '3.1.1 4');16 define('WP_JSSOR_SLIDER_VERSION', '3.1.15'); 17 17 } 18 18 19 19 if (!defined('WP_JSSOR_MIN_JS_VERSION')) { 20 define('WP_JSSOR_MIN_JS_VERSION', '27.0. 4');20 define('WP_JSSOR_MIN_JS_VERSION', '27.0.3'); 21 21 } 22 22 -
jssor-slider/trunk/includes/bll/class-jssor-slider-slider.php
r1813491 r1825761 1014 1014 } 1015 1015 } 1016 if ( !empty($slide_json_model->thumb) && !empty($slide_json_model->thumb->images)) {1016 if (isset($slide_json_model->thumb) && !empty($slide_json_model->thumb) && isset($slide_json_model->thumb->images) && !empty($slide_json_model->thumb->images)) { 1017 1017 foreach ($slide_json_model->thumb->images as $t_key => $t_value) { 1018 1018 if (!empty($t_value)) { -
jssor-slider/trunk/includes/bll/gencode/class-wjssl-slider-build-converter.php
r1813491 r1825761 1440 1440 } 1441 1441 1442 $layerHas3dMotion = $layerHas3dMotion || $childHas3dMotion;1442 //$layerHas3dMotion = $layerHas3dMotion || $childHas3dMotion; 1443 1443 $runtimeLayer->has3dMotion = $layerHas3dMotion; 1444 1444 $layersHas3dMotion = $layersHas3dMotion || $layerHas3dMotion; -
jssor-slider/trunk/includes/bll/gencode/class-wjssl-slider-code-document.php
r1813491 r1825761 386 386 #endregion 387 387 #endregion 388 388 389 #region child elements 390 391 $has3dMotion = false; 392 389 393 if (!empty($runtimeLayer->children)) 390 394 { … … 395 399 { 396 400 $layerNode->appendChild($childLayerNode); 397 } 398 } 399 } 401 402 $has3dMotion = $has3dMotion || $runtimeLayer->has3dMotion; 403 } 404 } 405 } 406 400 407 #endregion 401 408 } … … 439 446 $slideNode->setAttribute("data-b", $runtimeSlide->slideoBreakIndex); 440 447 } 441 //$perspective442 //$perspective origin443 if (WjsslSliderBuildHelper::HasValue($runtimeSlide->pDepth))444 {445 $perspective = ($runtimeDocument->Layouts->layout->slideWidth + $runtimeDocument->Layouts->layout->slideHeight) * $runtimeSlide->pDepth / 2;446 $slideNode->setAttribute("data-p", $perspective);447 $this->BuildPercentAttribute($slideNode, "data-po", $runtimeSlide->poX, $runtimeSlide->poY);448 }449 448 if (WjsslSliderBuildHelper::HasValue($runtimeSlide->idle)) 450 449 { … … 465 464 #endregion 466 465 #endregion 466 467 467 #region child elements 468 foreach ($runtimeSlide->layers as $runtimeLayer) 469 { 470 $layerNode = $this->BuildLayerNode($runtimeLayer, !$isLinkSlide, $runtimeDocument, $htmlDocument); 471 if (!empty($layerNode)) 472 { 473 $slideNode->appendChild($layerNode); 474 } 475 } 468 469 $has3dMotion = false; 470 471 if(WjsslSliderBuildHelper::HasValue($runtimeSlide->layers)) { 472 foreach ($runtimeSlide->layers as $runtimeLayer) 473 { 474 $layerNode = $this->BuildLayerNode($runtimeLayer, !$isLinkSlide, $runtimeDocument, $htmlDocument); 475 if (!empty($layerNode)) 476 { 477 $slideNode->appendChild($layerNode); 478 479 $has3dMotion = $has3dMotion || $runtimeLayer->has3dMotion; 480 } 481 } 482 } 483 476 484 $runtimeThumbnails = $runtimeDocument->Layouts->thumbnails; 485 477 486 if (!empty($runtimeThumbnails)) 478 487 { … … 493 502 } 494 503 } 504 495 505 if (!WjsslSliderBuildHelper::EmptyOrWhiteSpace($runtimeSlide->image)) 496 506 { … … 503 513 } 504 514 } 515 505 516 $thumbnailNodeString = null; 506 if (!WjsslSliderBuildHelper::EmptyOrWhiteSpace($thumbnailSkin->itemHtml)) {517 if (!WjsslSliderBuildHelper::EmptyOrWhiteSpace($thumbnailSkin->itemHtml)) { 507 518 $skinId = WjsslSliderBuildHelper::GetSkinId($runtimeThumbnails, $thumbnailSkin); 508 519 $thumbnailNodeString = WjsslSliderBuildHelper::BuildFromThumbnailItemTemplate($htmlDocument, $thumbnailSkin->itemHtml, array($skinId, $runtimeThumbnails->itemWidth, $runtimeThumbnails->itemHeight), $images, $contents); 509 520 } 521 510 522 $slideThumbnailNodes = WjsslSliderBuildHelper::LoadHTML($thumbnailNodeString, $htmlDocument); 511 523 foreach($slideThumbnailNodes as $node) … … 517 529 } 518 530 } 519 #endregion 531 532 #endregion 533 534 #region perspective/perspective origin attribute 535 536 if (WjsslSliderBuildHelper::HasValue($runtimeSlide->pDepth) && $has3dMotion) 537 { 538 $perspective = ($runtimeDocument->Layouts->layout->slideWidth + $runtimeDocument->Layouts->layout->slideHeight) * $runtimeSlide->pDepth / 2; 539 $slideNode->setAttribute("data-p", $perspective); 540 $this->BuildPercentAttribute($slideNode, "data-po", $runtimeSlide->poX, $runtimeSlide->poY); 541 } 542 543 //#endregion 544 520 545 return $slideNode; 521 546 } … … 540 565 $slidesNode->setAttribute("style", $slidesNodeCss); 541 566 #endregion 567 542 568 #region child elements 569 543 570 $this->_ArraySlideNodes = array(); 571 544 572 //slides elements 545 foreach ($runtimeDocument->Slides as $i=>$runtimeSlide) 546 { 547 $slideNode = $this->BuildSlideNode($i, $runtimeSlide, $runtimeDocument, $htmlDocument); 548 //WjsslSliderBuildHelper::AlterJssorRes_Html($slideNode); 549 array_push($this->_ArraySlideNodes, $slideNode); 550 $slidesNode->appendChild($slideNode); 551 } 552 #endregion 573 if(isset($runtimeDocument->Slides) && !empty($runtimeDocument->Slides)) { 574 foreach ($runtimeDocument->Slides as $i=>$runtimeSlide) 575 { 576 $slideNode = $this->BuildSlideNode($i, $runtimeSlide, $runtimeDocument, $htmlDocument); 577 //WjsslSliderBuildHelper::AlterJssorRes_Html($slideNode); 578 array_push($this->_ArraySlideNodes, $slideNode); 579 $slidesNode->appendChild($slideNode); 580 } 581 } 582 583 #endregion 584 553 585 $this->_SlidesNode = $slidesNode; 554 586 } -
jssor-slider/trunk/jssor-slider.php
r1820989 r1825761 12 12 * Plugin URI: https://www.jssor.com 13 13 * Description: Touch swipe responsive image/content slider/slideshow/carousel/gallery/banner by jssor.com 14 * Version: 3.1.1 414 * Version: 3.1.15 15 15 * Author: Jssor 16 16 * Author URI: https://profiles.wordpress.org/jssor -
jssor-slider/trunk/readme.txt
r1820989 r1825761 89 89 90 90 == Changelog == 91 92 = Version 3.1.15 / (2018-02-21) = 93 - Change: code generation for slide with no 3d layer animation 94 - Rollback: jssor slider 27.0.3 91 95 92 96 = Version 3.1.14 / (2018-02-13) =
Note: See TracChangeset
for help on using the changeset viewer.