Skip to content

Commit

Permalink
1.7.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshaggarwal committed May 29, 2020
1 parent ec444b0 commit 58830a9
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 29 deletions.
2 changes: 1 addition & 1 deletion com_jdbuilder/jdbuilder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<author>Team Joomdev</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomdev.com</authorUrl>
<version>1.7.0</version>
<version>1.7.1</version>
<description>{jdbcomdesc}</description>
<install> <!-- Runs on install -->
<sql>
Expand Down
2 changes: 1 addition & 1 deletion mod_jdbuilder/mod_jdbuilder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<authorUrl>https://www.joomdev.com</authorUrl>
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>1.7.0</version>
<version>1.7.1</version>
<description>This Module allows you to create your own Module using the JD Builder.</description>
<files>
<filename>mod_jdbuilder.xml</filename>
Expand Down
2 changes: 1 addition & 1 deletion pkg_jdbuilder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<packagerurl>https://www.joomdev.com</packagerurl>
<author>Team JoomDev</author>
<creationDate>Apr 2020</creationDate>
<version>1.7.0</version>
<version>1.7.1</version>
<url>https://www.joomdev.com</url>
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
Expand Down
2 changes: 1 addition & 1 deletion plg_jdbuilder/elements/video/video.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<!-- Video Link -->
<field name="videoYoutubeLink" type="text" default="https://www.youtube.com/watch?v=5xwaA-fphvc" label="JDB_VIDEO_LINK" group="basic" showon="params.videoType=='youtube'"></field>
<field name="videoVimeoLink" type="text" default="https://vimeo.com/417726689" label="JDB_VIDEO_LINK" group="basic" showon="params.videoType=='vimeo'"></field>
<field name="videoVimeoLink" type="text" default="https://vimeo.com/259400046" label="JDB_VIDEO_LINK" group="basic" showon="params.videoType=='vimeo'"></field>
<field name="videoDailymotionLink" type="text" default="https://www.dailymotion.com/video/x7tv3sz" label="JDB_VIDEO_LINK" group="basic" showon="params.videoType=='dailymotion'"></field>

<!-- Video Options -->
Expand Down
2 changes: 1 addition & 1 deletion plg_jdbuilder/jdbuilder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<authorUrl>https://www.joomdev.com</authorUrl>
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>1.7.0</version>
<version>1.7.1</version>
<description>{jdbplgdesc}</description>
<files>
<filename plugin="jdbuilder">jdbuilder.php</filename>
Expand Down
14 changes: 7 additions & 7 deletions plg_jdbuilder/libraries/jdpagebuilder/element/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ public function addJavascript($file)
public function getBackgroundVideo()
{
$background = $this->params->get('background', 'none');
$return = [];

$html = '';
if ($background == "video") {
$this->addClass('jdb-has-video-background');
$return[] = '<div class="jdb-video-background" jdb-video="type:html5;autoplay:true;muted:true;loop:true;controls:false;thumbnail:false;sticky:false;size:1by1" data-src="' . \JDPageBuilder\Helper::mediaValue($this->params->get('backgroundVideoMedia', '')) . '">';
$return[] = '</div>';
$link = $this->params->get('backgroundVideoMedia', '');
if (!empty($link)) {
$this->addClass('jdb-has-video-background');
$html = '<div jdb-video-background data-src="' . \JDPageBuilder\Helper::mediaValue($link) . '"></div>';
}
}

return implode("", $return);
return $html;
}

public function getParticlesBackground()
Expand Down
14 changes: 14 additions & 0 deletions plg_jdbuilder/media/js/builder/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Builder</title>
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="styles.css"></head>
<body>
<app-root></app-root>
<script src="runtime.js" defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills.js" defer></script><script src="scripts.js" defer></script><script src="main.js" defer></script></body>
</html>
4 changes: 2 additions & 2 deletions plg_jdbuilder/media/js/jdb.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plg_jdbuilder/media/js/jdb.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plg_jdbuilder/media/js/jdbfrontend.js

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions plg_jdbuilder/media/scss/_jdb-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -536,19 +536,15 @@ Video Background -> 5
display: flex;
align-items: center;

.jdb-video {
width: 100%;

video {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: auto;
height: auto;
min-width: 100%;
min-height: 100%;
position: absolute;
}
video {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: auto;
height: auto;
min-width: 100%;
min-height: 100%;
position: absolute;
}
}
}
Expand Down

0 comments on commit 58830a9

Please sign in to comment.