$res[] = '#shadow>div{' . wsHTML5::writeCSSUA('box-shadow', '0 0 20px ' . $shadowColor) . '}';
}
+ $lessVariables['links-color']=wsHTML5::colorToCSS($this->theme->parametres->linksColor);
+
// Links Styles
$res = array_merge($res, $links);
- $res[] = '.link a.displayArea:hover,.link a.displayArea.animating{background-color:' . wsHTML5::colorToCSS($this->theme->parametres->linksColor, 0.4) . ';}';
- $res[] = '.link a.displayArea:hover{opacity:1 !important;}';
- $res[] = '.link a.displayArea{-webkit-tap-highlight-color:' . wsHTML5::colorToCSS($this->theme->parametres->linksColor, 0.4) . ';background-color:' . wsHTML5::colorToCSS($this->theme->parametres->linksColor, 0.0001) . ';}';
// Bookmarks
if (!isset($this->book->parametres->bookmarkCornerSize)) {
$this->config->thumbHeight = $thumbh;
$lessVariables['thumb-height'] = $thumbh . 'px';
- # Tooltip
- $res[] = '#tooltip{background-color:' . wsHTML5::colorToCSS($this->theme->parametres->tooltipBackColor) . ';color:' . wsHTML5::colorToCSS($this->theme->parametres->tooltipTextColor) . ';}';
+ #tooltip
+ $lessVariables['tooltip-background'] = wsHTML5::colorToCSS($this->theme->parametres->tooltipBackColor);
+ $lessVariables['tooltip-color'] = wsHTML5::colorToCSS($this->theme->parametres->tooltipTextColor);
# ZoomPopup close button background
$res[] = '.zoomPopupClose {background-color:' . wsHTML5::colorToCSS($this->theme->parametres->couleurB) . ';}';
public $video_service;
public $inline;
public $display_area;
+ public $read_mode;
public $infobulle;
public $extra;
public $id;
return new webVideoPopupLink($id, $init, $compiler);
}
case 11:
- if ($init['to'] == 'fullScreen') {
- return null;
- }
return new actionLink($id, $init, $compiler);
case 12:
public function getURL() {
$this->copyExternalFile($this->alternative);
- return '#/multimedia/' . md5($this->alternative);
+ $read = ($this->read_mode) ? 'r_' : '';
+ return '#/multimedia/' . $read . md5($this->alternative);
}
public function getAdditionnalContent() {
$dim = getimagesize($this->wdir . '/' . $this->alternative);
$markup = '<div class="multimediaContainer"><img data-width="' . $dim[0] . '" data-height="' . $dim[1] . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $dim[0] . '" height="' . $dim[1] . '" class="multimedia" /></div>';
- return ' data-multimedia="' . rawurlencode($markup) . '" ';
+ $read = '';
+ if ($this->read_mode) {
+ $read = ' data-readmode="1"';
+ }
+ return $read . ' data-multimedia="' . rawurlencode($markup) . '" ';
}
public function keep() {
protected $_share = array('facebook', 'twitter', 'googleplus', 'linkedin', 'viadeo');
public function getURL() {
- if (in_array($this->to, $this->_share)) {
return '#';
}
- return '#/' . $this->to;
- }
public function getClasses() {
if (in_array($this->to, $this->_share)) {
if (in_array($this->to, $this->_share)) {
return parent::getAdditionnalContent() . ' data-service="' . $this->to . '" ';
} else {
- return parent::getClasses();
+ return parent::getClasses() . ' data-action="' . $this->to . '" ';
}
}
class zoomLink extends normalLink {
+ public function getHTMLContainerClass() {
+ return parent::getHTMLContainerClass() . ' zoomarea';
+ }
+
public function getDefaultTooltip() {
return 'zoom in';
}