- Posts: 3
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- Responsive Template default.php Override not working anymore with 5.0
Responsive Template default.php Override not working anymore with 5.0
- Markward Kufleitner
-
Topic Author
- Offline
- New Member
Less
More
5 years 8 months ago #172806
by Markward Kufleitner
Responsive Template default.php Override not working anymore with 5.0 was created by Markward Kufleitner
Hello,
with 5.0 our Template Override templates/ourtemplatename/html/jw_allvideos/Responsive/default.php is not working anymore.
The override default.php has following contents (in Short it is an GDPR Overlay before starting the youtube video):
<?php
/**
* @version 4.8.0
* @package AllVideos (plugin)
* @author JoomlaWorks - www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2017 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$lang = JFactory::getLanguage();
?>
<div class="avPlayerWrapper<?php echo $output->mediaTypeClass; ?>">
<div class="avPlayerContainer">
<div id="<?php echo $output->playerID; ?>" class="avPlayerBlock">
<?php if($lang->getTag() == "de-DE") { echo '<div class="iframe-div"><p><br><br><br>Um unsere Videos ansehen zu können müssen Sie akzeptieren,<br>dass Ihre Daten nach Youtube übertragen werden (siehe <a class="dsgvo jcepopup" href="index.php?option=com_content&view=article&id=20154&Itemid=1087&tmpl=component">unsere Datenschutzerklärung</a>).
<br><input class="datenschutz-checkbox" name="datenschutz-checkbox" type="checkbox" value="1" /> <label for="datenschutz-checkbox"><strong>Ich willige ein, dass meine Daten nach Youtube übertragen werden.</strong></label></p></div>'; } elseif($lang->getTag() == "en-GB") { echo '<div class="iframe-div"><p><br><br><br>To watch our videos you have to accept,<br>that your data is transferred to YouTube. (see <a class="dsgvo jcepopup" href="index.php?option=com_content&view=article&id=20155&Itemid=1088&tmpl=component">our privacy policy</a>).
<br><input class="datenschutz-checkbox" name="datenschutz-checkbox" type="checkbox" value="1" /> <label for="datenschutz-checkbox"><strong>I agree that my data will be transferred to YouTube.</strong></label></p></div>'; } echo $output->player; ?>
<?php if ($allowAudioDownloading && $output->mediaType=='audio'): ?>
<div class="avDownloadLink">
<a target="_blank" href="<?php echo $output->source; ?>">
<span><?php echo JText::_('JW_PLG_AV_DOWNLOAD'); ?></span>
</a>
<span class="hint">(<?php echo JText::_('JW_PLG_AV_DOWNLOAD_HINT'); ?>)</span>
</div>
<?php endif; ?>
</div>
</div>
</div>
with 5.0 our Template Override templates/ourtemplatename/html/jw_allvideos/Responsive/default.php is not working anymore.
The override default.php has following contents (in Short it is an GDPR Overlay before starting the youtube video):
<?php
/**
* @version 4.8.0
* @package AllVideos (plugin)
* @author JoomlaWorks - www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2017 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$lang = JFactory::getLanguage();
?>
<div class="avPlayerWrapper<?php echo $output->mediaTypeClass; ?>">
<div class="avPlayerContainer">
<div id="<?php echo $output->playerID; ?>" class="avPlayerBlock">
<?php if($lang->getTag() == "de-DE") { echo '<div class="iframe-div"><p><br><br><br>Um unsere Videos ansehen zu können müssen Sie akzeptieren,<br>dass Ihre Daten nach Youtube übertragen werden (siehe <a class="dsgvo jcepopup" href="index.php?option=com_content&view=article&id=20154&Itemid=1087&tmpl=component">unsere Datenschutzerklärung</a>).
<br><input class="datenschutz-checkbox" name="datenschutz-checkbox" type="checkbox" value="1" /> <label for="datenschutz-checkbox"><strong>Ich willige ein, dass meine Daten nach Youtube übertragen werden.</strong></label></p></div>'; } elseif($lang->getTag() == "en-GB") { echo '<div class="iframe-div"><p><br><br><br>To watch our videos you have to accept,<br>that your data is transferred to YouTube. (see <a class="dsgvo jcepopup" href="index.php?option=com_content&view=article&id=20155&Itemid=1088&tmpl=component">our privacy policy</a>).
<br><input class="datenschutz-checkbox" name="datenschutz-checkbox" type="checkbox" value="1" /> <label for="datenschutz-checkbox"><strong>I agree that my data will be transferred to YouTube.</strong></label></p></div>'; } echo $output->player; ?>
<?php if ($allowAudioDownloading && $output->mediaType=='audio'): ?>
<div class="avDownloadLink">
<a target="_blank" href="<?php echo $output->source; ?>">
<span><?php echo JText::_('JW_PLG_AV_DOWNLOAD'); ?></span>
</a>
<span class="hint">(<?php echo JText::_('JW_PLG_AV_DOWNLOAD_HINT'); ?>)</span>
</div>
<?php endif; ?>
</div>
</div>
</div>
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
- Posts: 6227
5 years 8 months ago #172821
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Responsive Template default.php Override not working anymore with 5.0
There is no change in how overrides work.
Are you seeing some error or just not seeing your override at all?
Are you seeing some error or just not seeing your override at all?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Markward Kufleitner
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
5 years 8 months ago #172832
by Markward Kufleitner
Replied by Markward Kufleitner on topic Responsive Template default.php Override not working anymore with 5.0
There is no error. I don't see the override at all.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
- Posts: 6227
5 years 8 months ago #172837
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Responsive Template default.php Override not working anymore with 5.0
Rename the folder in your Joomla template from "Responsive" to something else, e.g. "MyResponsive". Then open the AllVideos plugin parameters and select the renamed override.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Markward Kufleitner
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
5 years 8 months ago #172842
by Markward Kufleitner
Replied by Markward Kufleitner on topic Responsive Template default.php Override not working anymore with 5.0
Thanks, now it works!
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
Less
More
- Posts: 6227
5 years 8 months ago #172873
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Responsive Template default.php Override not working anymore with 5.0
Great :)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- AllVideos
- Responsive Template default.php Override not working anymore with 5.0