| @@ -91,8 +91,13 @@ | ||
| 91 | 91 | */ |
| 92 | 92 | public $styles; |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | + * @var \Depicter\Document\Models\Common\InnerStyles|null | |
| 96 | + */ | |
| 97 | + public $innerStyles; | |
| 98 | + | |
| 99 | + /** | |
| 95 | 100 | * @var object|null |
| 96 | 101 | */ |
| 97 | 102 | public $options; |
| 98 | 103 | |
| @@ -433,8 +438,9 @@ | ||
| 433 | 438 | */ |
| 434 | 439 | public function getSelectorAndCssList(){ |
| 435 | 440 | |
| 436 | 441 | if( ! empty( $this->prepare()->styles ) ){ |
| 442 | + $this->prepare()->styles->setDataSheet( $this->getDataSheet() ); | |
| 437 | 443 | $this->selectorCssList[ '.' . $this->getStyleSelector() ] = $this->prepare()->styles->getGeneralCss('normal'); |
| 438 | 444 | |
| 439 | 445 | $transitionCss = $this->prepare()->styles->getTransitionCss(); |
| 440 | 446 | $hoverCss = $this->prepare()->styles->getGeneralCss('hover'); |
| @@ -463,8 +469,20 @@ | ||
| 463 | 469 | if ( ! is_null( $this->options ) && ! empty( $this->options->customStyle ) ) { |
| 464 | 470 | $customStyles = $this->options->customStyle; |
| 465 | 471 | // replace "selector" with unique selector of section |
| 466 | 472 | return str_replace('selector', '.'.$this->getStyleSelector(), $customStyles ); |
| 473 | + } | |
| 474 | + return ''; | |
| 475 | + } | |
| 476 | + | |
| 477 | + /** | |
| 478 | + * Get markup for preloading media urls | |
| 479 | + * | |
| 480 | + * @return string | |
| 481 | + */ | |
| 482 | + public function getPreloadTags(){ | |
| 483 | + if( method_exists( $this, 'getPreloadMarkup' ) ){ | |
| 484 | + return $this->getPreloadMarkup(); | |
| 467 | 485 | } |
| 468 | 486 | return ''; |
| 469 | 487 | } |
| 470 | 488 | |