A Pen by Beibit Sakhanov on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//отрисовка рекламы в статьях | |
function addContent($addTo, $add, $cntRep, $after = '</p>', $openTag = '<div align="center">', $closeTag = '</div>'){ | |
$posAfter = 0; | |
for ($i=0; $i < $cntRep; $i++) { | |
$pos = stripos($addTo, $after, $posAfter); | |
$posAfter = $pos+strlen($after); | |
if($pos===FALSE){ | |
return $addTo; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //вывод позиции модулей | |
$document = JFactory::getDocument(); | |
$renderer = $document->loadRenderer('modules'); | |
$options = array('style' => 'xhtml'); | |
$position = 'user1'; | |
echo $renderer->render($position, $options, null); | |
?> | |
<!-- или --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- codepen editor mode - you could open the HTML tab in full width + only one extra line of CSS (not from uikit core) on this example | |
**since rc.20(October 24, 2018)Offcanvas no longer requires a wrapping content div | |
--> | |
<!-- Sticky navbar --> | |
<div class="uk-position-top" id="top"> | |
<nav class="uk-navbar-container uk-navbar-transparent uk-light" data-uk-navbar="dropbar: false;" | |
data-uk-sticky="animation: uk-animation-slide-top; | |
sel-target: .uk-navbar-container; | |
cls-active: uk-navbar-sticky; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="uk-section"> | |
<div class="uk-container uk-container-small"> | |
<div id="switcher"> | |
<label class="uk-switch" for="on-1"> | |
<input type="checkbox" id="on-1" /> | |
<div class="uk-switch-slider uk-switch-on-off round"></div> | |
</label> | |
</div> | |
<div class="uk-timeline" uk-scrollspy="cls: uk-animation-fade; target: > div > .uk-card; delay: 500;"> | |
<div class="uk-timeline-item"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="uk-section"> | |
<div class="uk-container"> | |
<div class="uk-grid uk-grid-medium" uk-height-match="target: > div > .uk-card; row: false" uk-grid> | |
<div class="uk-width-1-2@m"> | |
<div class="uk-card uk-card-default uk-grid-collapse uk-child-width-1-2@s uk-margin featured uk-background-cover" uk-grid> | |
<div class="uk-card-media-left uk-cover-container"> | |
<img src="https://getuikit.com/docs/images/light.jpg" alt="" hidden uk-cover> | |
<canvas width="600" height="400"></canvas> | |
</div> | |
<div> |
Hello World in 92 Languages falling down in Matrix code rain
A Pen by Beibit Sakhanov on CodePen.
A Pen by Beibit Sakhanov on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.container | |
ol | |
li: a(href='#link1') Click on me and watch new disappear | |
li: a(href='#link2') Pretty cool eh? Try again here | |
li: a(href='#link3') One last try | |
//- Clicked on all of the links? Just change the href! |
NewerOlder