This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
<VirtualHost *:80> | |
ServerAdmin template.email | |
ServerName template.url | |
ServerAlias www.template.url | |
# redirect www.domain.tld to domain.tld | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC] | |
RewriteRule ^ https://%1%{REQUEST_URI} [L,QSA,R=301] |
This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
// dev note: make sure to use an autoprefixer... | |
@mixin underline($background: #fff, $text: #000, $selection: #ffc, $position: 86%){ | |
color: inherit; | |
text-decoration: none; | |
background: linear-gradient($background, $background), linear-gradient($background, $background), linear-gradient($text, $text); | |
background-size: .05em 1px, .05em 1px, 1px 1px; | |
background-repeat: no-repeat, no-repeat, repeat-x; | |
text-shadow: 0.03em 0 $background, -0.03em 0 $background, 0 0.03em $background, 0 -0.03em $background, 0.06em 0 $background, -0.06em 0 $background, 0.09em 0 $background, -0.09em 0 $background, 0.12em 0 $background, -0.12em 0 $background, 0.15em 0 $background, -0.15em 0 $background; | |
background-position-y: $position,$position, $position; |
/* ---------------------------------------------- | |
THE VOICE | |
// this class set is used to convey specific expressions in a coherent, global system: the voice of your application. | |
---------------------------------------------- */ | |
.voice{ | |
font-size:100%; | |
font-family: $font-sans; | |
&--info{ | |
background-color:#FFFFDD; |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
Voilà. C'est quasi fini. 25 avril --> 27 octobre 2017
185 jours
15.984.000 secondes
266.400 minutes
4440 heures
26 semaines et 3 jours.
Vous avez été la première promo de BeCode.
function add_nonbreaking_space_to_text($title, $id = null){ | |
$title = explode(' ', $title); | |
$length = count($title); | |
if( $length >0){ | |
$title[ $length-2 ] .= " " . $title[ $length-1 ]; | |
array_pop($title); | |
} | |
return implode(" ", $title); | |
} |
<?php | |
/** | |
* Class Popular_Posts_Data | |
* | |
* A class for retrieving an array of popular posts post data. This class is designed for use with the WordPress Popular | |
* Posts plugin (@see https://wordpress.org/plugins/wordpress-popular-posts/) and will not work without it. | |
* | |
* @source https://philsmart.me/wordpress-popular-posts-plugin-raw-data-array/ | |
* @author Phil Smart Alexandre Plennevaux |
<?php | |
/* | |
* | |
* WP-siege: Generates list of all published URLs from a Wordpress site, for use with Siege. | |
* Author: Alexandre Plennevaux alexandre@pixeline.be | |
* | |
*/ | |
//path to a wp-load file | |
include( './wp-load.php' ); |