diff --git a/theme.js b/theme.js index db37a47..e89844c 100644 --- a/theme.js +++ b/theme.js @@ -118,9 +118,26 @@ $('#link-buscar').click(function(e) { }); } + function insert_notice_div(){ + var notice = $('.display-content-block').find('li'); + notice.each(function(){ + var $set = $(this).children(); + for(var i=1, len = $set.length; i < len; i+=5){ + $set.slice(i, i+5).wrapAll('
'); + } + for(var i=2, len = $set.length; i < len; i+=3){ + $set.slice(i, i+3).wrapAll('
'); + } + //$('
').wrap($(this).find( '.image', '.title', '.lead', '.read_more')); + }); + + + } + $(document).ready(function(){ set_events(); move_article_buttons(); add_link_to_article_div(); + insert_notice_div(); }); })(jQuery); -- libgit2 0.21.2