Skip to content

Commit

Permalink
Update default.php
Browse files Browse the repository at this point in the history
Remove Bug when Content is empty
  • Loading branch information
coolcat-creations authored Mar 9, 2019
1 parent 749b3ce commit 89c8935
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mod_ccctwoclick/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
// No direct access
defined('_JEXEC') or die;

if ($contentBefore != '' || !empty($contentBefore)) :
$contentBefore = '<div class="tccontentbefore contentbefore-' . $moduleId . '">' . $contentBefore .'</div>';
$contentBeforeCenter = '<div class="tccontentbefore contentbefore-' . $moduleId . '" style="position:relative; top:50%;">' . $contentBefore .'</div>';
endif;

if ($contentAfter != '' || !empty($contentAfter)) :
$contentAfter = '<div class="tccontentafter contentafter-' . $moduleId . '" style="display:none;">' . $contentAfter .'</div>';
endif;

$btnReveal = '<a class="' . $btnclassEnable . ' ccctwoclickreveal-' . $moduleId . '">' . JText::_($btntxtReveal) .'</a>';
$btnRevealCenter = '<a class="' . $btnclassEnable . ' ccctwoclickreveal-' . $moduleId . '" style="position:relative; top:50%;">' . JText::_($btntxtReveal) .'</a>';
Expand Down Expand Up @@ -53,9 +49,9 @@ function enableContent() {
iframe.setAttribute('allowfullscreen', 'true');
iframe.setAttribute('allowtransparency', 'true');
iframe.setAttribute('scrolling', 'no');
iframe.setAttribute('title', 'fb:page Facebook Social Plugin');
iframe.setAttribute('title', '<?php echo $iframetitle; ?>');

iframe.setAttribute('name', 'f2f966e5973af');
iframe.setAttribute('name', '<?php echo $iframename; ?>');
iframe.setAttribute('width', content[0].dataset.width);
iframe.setAttribute('height', content[0].dataset.height);

Expand Down Expand Up @@ -151,5 +147,3 @@ class="ccctc ccctwoclick-<?php echo $moduleId; ?>"
?>

</div>


0 comments on commit 89c8935

Please sign in to comment.