This file contains 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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test offset Bootstrap</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<style> | |
.col { color: #ffffff; height: 250px; line-height: 250px; font-size: 4em; text-align: center; } | |
.col1 { background-color: #34495e; } | |
.col2 { background-color: #2c3e50; } | |
.col3 { background-color: #95a5a6; } |
This file contains 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
// New task: | |
[...] | |
karma: { | |
[...] | |
}, | |
less: { | |
server: { | |
files: { | |
"<%= yeoman.app %>/styles/style.css": "<%= yeoman.app %>/less/*.less" | |
} |
This file contains 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 | |
// Ajout le nouveau 'vrai' champ et change celui qui existe en leurre à spambot | |
function addAntiSpambotField($fields) { | |
$newUrlFieldName = "url2"; | |
$fields["url2"] = str_replace(array("for=\"url\"", "id=\"url\"", "name=\"url\""), array("for=\"$newUrlFieldName\"", "id=\"$newUrlFieldName\"", "name=\"$newUrlFieldName\""), $fields["url"]); | |
$fields["url"] = '<input type="url" id="url" name="url" value="">'; | |
return $fields; | |
} | |
add_filter("comment_form_default_fields", "addAntiSpambotField"); |
This file contains 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 | |
/** | |
* En-tête du template mono page pour Twenty Thirteen | |
* Copié du header.php et modifié pour un thème enfant | |
*/ | |
?><!DOCTYPE html> | |
<!--[if IE 7]> | |
<html class="ie ie7" <?php language_attributes(); ?>> | |
<![endif]--> | |
<!--[if IE 8]> |
This file contains 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 | |
/** | |
Template name: Mono page | |
Copié depuis page.php de Twenty Thirteen | |
*/ | |
get_header("mono-page"); ?> | |
<div id="primary" class="content-area"> | |
<div id="content" class="site-content" role="main"> |
This file contains 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 | |
// Ajoute Bootstrap pour le scrollspy et l'affix | |
function enqueueStyles() { | |
wp_enqueue_style("bootstrap", get_stylesheet_directory_uri() . "/css/bootstrap/css/bootstrap.min.css"); | |
wp_enqueue_script('jquery'); | |
wp_enqueue_script('bootstrap-js', get_stylesheet_directory_uri() . '/js/bootstrap.min.js', 'jquery' ); | |
} | |
add_action("wp_enqueue_scripts", "enqueueStyles"); |
This file contains 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 | |
/** | |
* The carousel shortcode | |
* | |
* This is the new version, accepting order criterias, limit, | |
* type of post and sticky posts | |
* Examples: | |
* - [carousel categories="my-categorie-slug,my-other-category-slug"] | |
* - [carousel tags="my-tag-slug" active="2" messageIfEmpty="No posts for this tag"] | |
* - [carousel tags="my-tag-slug" link="/my-tag-page/"] |
This file contains 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
'use strict'; | |
angular.module('testBlueimpApp') | |
.controller('UploaderCtrl', function ($scope, $http) { | |
var uploadScriptUrl = 'http://localhost/test-upload/index.php'; | |
$scope.options = { | |
url: uploadScriptUrl | |
}; | |
$scope.loadingFiles = true; | |
$http.get(uploadScriptUrl) |
This file contains 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
'use strict'; | |
angular.module('testBlueimpApp') | |
.controller('FileDestroyCtrl', function ($scope, $http) { | |
var file = $scope.file, | |
state; | |
if (file.url) { | |
file.$state = function () { | |
return state; | |
}; |
This file contains 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
<form id="fileupload" method="POST" enctype="multipart/form-data" ng-controller="UploaderCtrl" file-upload="options" ng-class="{'fileupload-processing': processing() || loadingFiles}"> | |
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload --> | |
<div class="row fileupload-buttonbar"> | |
<div class="col-lg-7"> | |
<!-- The fileinput-button span is used to style the file input field as button --> | |
<span class="btn btn-success fileinput-button" ng-class="{disabled: disabled}"> | |
<i class="glyphicon glyphicon-plus"></i> | |
<span>Add files...</span> | |
<input type="file" name="files[]" multiple ng-disabled="disabled"> | |
</span> |
OlderNewer