PluginProbe
Depicter — Popup & Slider Builder / 1.9.2
Depicter — Popup & Slider Builder v1.9.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
← All changes | app/src/Document/Models/Element.php +18 -0 1.3.21.9.2 View file →
@@ -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