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 | |
/** | |
* A post page | |
*/ | |
/* @var $this View */ | |
/* @var $vv VV_post */ | |
/** @noinspection PhpUndefinedVariableInspection */ | |
$vv = $_vars; |
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
$(".row.auto-clearfix").each(function(){ | |
$(this).find(".created-by-auto-clearfix").remove(); //start cleaning previous stuff | |
var prevPos=0; | |
$(this).find(">[class^='col-'],>[class^='span']").each(function(){ | |
var thisPos=$(this).position().left; | |
if(thisPos!=0 && thisPos==prevPos){ //this element should be on a new line dude! | |
$(this).before($("<div class='clearfix created-by-auto-clearfix'>")); | |
} | |
prevPos=$(this).position().left; | |
}) |
NewerOlder