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
<link href='https://fonts.googleapis.com/css?family=Lato:100,400,700' rel='stylesheet' type='text/css'> | |
<nav class="navigation" id="mainNav"> | |
<a class="navigation__link" href="#1">Section 1</a> | |
<a class="navigation__link" href="#2">Section 2</a> | |
<a class="navigation__link" href="#3">Section 3</a> | |
<a class="navigation__link" href="#4">Section 4</a> | |
<a class="navigation__link" href="#5">Section 5</a> | |
<a class="navigation__link" href="#6">Section 6</a> | |
<a class="navigation__link" href="#7">Section 7</a> |
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
<div class="container"> | |
<div class="text text-1"> | |
Lorem ipsum <span></span> | |
</div> | |
<div class="text text-2"> | |
Lorem ipsum <span></span> | |
</div> | |
</div> |
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
https://console.developers.google.com/apis/credentials?project=luca-project-210509 | |
**Add height on map id is must | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Styled Maps - Night Mode</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> |
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
<input class="form-control" type="email" required="" placeholder="username" | |
oninvalid="this.setCustomValidity('Please Enter valid email')" | |
oninput="setCustomValidity('')"></input> | |
<!-- Ref site: https://stackoverflow.com/questions/24391078/how-to-change-the-default-message-of-the-required-field-in-the-popover-of-form-c/24392931 --> |
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 add_filter( 'wp_authenticate_user', 'restrict_login', 10, 2 ); | |
function restrict_login( $user, $password ) { | |
if ( is_wp_error( $user ) ) { | |
return $user; | |
} | |
$roles = array('administrator','subscriber'); | |
//$roles[] = 'administrator'; | |
if (array_reduce( $roles, function ( $allowed, $role ) use ( $user ) { | |
return $allowed || user_can( $user, $role ); |
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
<div id="sidebarColumn" class="col-md-3"> | |
<!-- <div id="sidebar" class="sidebar selection-sec"> --> | |
<div class="selection-sec"> | |
<div class="selection-sec-inner"> | |
<div class="shape-sec"> | |
<h5>Select a Shape</h5> | |
<ul class="more"> | |
{% assign file_extension = 'png' %} | |
{% if collection.handle == 'all' %} | |
{% for tag in collection.all_tags %} |
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
// Goes in theme.liquid | |
{% if template contains 'contact' %} | |
{{ 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js' | script_tag }} | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
var n1 = Math.round(Math.random() * 10 + 1); | |
var n2 = Math.round(Math.random() * 10 + 1); | |
$("#question").val(n1 + " + " + n2); | |
$(".contact-form").submit(function (e) { | |
if (eval($("#question").val()) != $("#answer").val()) { |
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
$('a[href^="#"]').on('click', function(event) { | |
var target = $(this.getAttribute('href')); | |
if( target.length ) { | |
event.preventDefault(); | |
$('html, body').stop().animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
} |
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 | |
// Take from http://baylorrae.com/creating-a-cycle-function-in-php | |
function cycle($first_value, $values = '*') { | |
// keeps up with all counters | |
static $count = array(); | |
// get all arguments passed | |
$values = func_get_args(); | |
// set the default name to use | |
$name = 'default'; |
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 | |
//add additional columns to the users.php admin page | |
add_filter('manage_users_columns', 'project_add_user_id_column'); | |
function project_add_user_id_column($columns) { | |
$columns['church'] = 'Church name'; | |
// unset($columns['pmpro_membership_level']); //For remove a column | |
/*$columns = array( | |
"cb" => "", |