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
import React from 'react'; | |
import qs from 'qs'; | |
import request from 'axios'; | |
import Isotope from 'isotope-layout'; | |
const Posts = React.createClass({ | |
getInitialState() { | |
return { | |
posts: [], | |
paged: 1, |
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
<script> | |
var modal = $('.modal'); | |
$('.videos__open-modal').on('click', function(e) { | |
e.preventDefault(); | |
var src = $(this).attr('href') + '?autoplay=1'; | |
modal.find('iframe').attr('src', src); | |
var h = $(window).height(); | |
modal.find('.iframe-container').css({'height': h}); | |
modal.addClass('modal--show'); |
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
<button class="dropdown"> | |
DE <i class="ion-chevron-down"></i> | |
<div class="dropdown__content"> | |
<a href="http://africa.acninternational.org/sw/fr">FR</a> | |
<a href="http://africa.acninternational.org/sw/it">IT</a> | |
</div> | |
</button> | |
<button class="dropdown"> |
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
<script> | |
var modal = $('.modal'); | |
$('.videos__open-modal').on('click', function(e) { | |
e.preventDefault(); | |
var src = $(this).attr('href') + '?autoplay=1'; | |
modal.find('iframe').attr('src', src); | |
modal.find('.iframe-container').css({'padding-bottom': '56.25%'}); | |
modal.addClass('modal--show'); |
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
<!-- Google Analytics Australia --> | |
<script src='https://www.google-analytics.com/analytics.js'></script> | |
<script> | |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | |
ga('create', 'UA-768926-1', 'auto'); | |
ga('create', 'UA-92355502-2', 'auto', 'int'); | |
ga('send', 'pageview'); |
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 | |
function bs_contact_form_sc($atts, $content = null) { | |
$attributes = [ | |
'name-placeholder' => 'Name', | |
'email-placeholder' => 'Email' | |
]; | |
$at = shortcode_atts( $attributes , $atts ); |
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
'use strict'; | |
import multipleRender from './multiple_render'; | |
const contactForm = React.createClass({ | |
getInitialState() { | |
return { | |
name: '', | |
email: '' | |
} | |
}, |
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
import React from "react"; | |
import { render } from "react-dom"; | |
export default function multipleRender(selector, component) { | |
if (document.querySelectorAll(selector).length >= 1) { | |
let forms = [...document.querySelectorAll(selector)]; | |
forms.forEach(el => { | |
let props = el.getAttribute("data-props") | |
? JSON.parse(el.getAttribute("data-props")) |
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
<script> | |
$(function() { | |
var slider = $('.slider'); | |
var viewport = slider.find('.slider__viewport'); | |
var slides = slider.find('.slider__slide'); | |
var sliderWidth = (100 * slides.length) + '%'; | |
var slidesWidth = (100 / slides.length) + '%'; | |
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
#!/bin/bash | |
apt-get install -y zip curl git | |
curl -O https://wordpress.org/latest.zip && unzip latest.zip | |
mv latest wp | |
cd wp && cp wp-config-sample.php wp-config.php |