Compare commits
2 commits
2cfaf89b3f
...
01cd47dd5e
Author | SHA1 | Date | |
---|---|---|---|
|
01cd47dd5e | ||
|
74100e99bf |
13 changed files with 15 additions and 10396 deletions
|
@ -1,6 +1,6 @@
|
||||||
<div class="card card-primary">
|
<div class="card card-primary">
|
||||||
<div class="card-header"><i class="fa fa-rss"></i> Publications</div>
|
<div class="card-header"><i class="fa fa-rss"></i> Publications</div>
|
||||||
<div class="card-menu">
|
<div class="card-menu trim-that">
|
||||||
<?php
|
<?php
|
||||||
wp_get_archives( array(
|
wp_get_archives( array(
|
||||||
'type' => 'postbypost',
|
'type' => 'postbypost',
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/components/footer-content.php'); ?>
|
<?php include(TEMPLATEPATH . '/components/footer-content.php'); ?>
|
||||||
<?php wp_footer(); ?>
|
<?php wp_footer(); ?>
|
||||||
<script src="<?php echo get_template_directory_uri();?>/dep/jquery/js/jquery.min.js"></script>
|
<script src="<?php echo get_template_directory_uri();?>/js/trim.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet"/>
|
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet"/>
|
||||||
|
|
||||||
|
<script src="<?php echo get_template_directory_uri();?>/dep/jquery/jquery.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<!-- Début du vrai HTML -->
|
<!-- Début du vrai HTML -->
|
||||||
|
|
6444
js/bootstrap.bundle.js
vendored
6444
js/bootstrap.bundle.js
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
7
js/bootstrap.bundle.min.js
vendored
7
js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3927
js/bootstrap.js
vendored
3927
js/bootstrap.js
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
7
js/bootstrap.min.js
vendored
7
js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5
js/jquery.min.js
vendored
5
js/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
11
js/trim.js
Normal file
11
js/trim.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
var length = 35;
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
$(".trim-that a, limit").each(function(i){
|
||||||
|
len=$(this).text().length;
|
||||||
|
if(len>length)
|
||||||
|
{
|
||||||
|
$(this).text($(this).text().substr(0,(length-3))+'...');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
Reference in a new issue