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 | |
/* | |
Plugin Name: Export Jobs to HTML - Custom Bulk Action job manager wordpress theme -- modyfying custom bulk action | |
Description: Modifying Custom Bulk Action | |
Version: 1.0 | |
*/ | |
class THEME_Custom_Bulk_Action { |
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
// Slow down mouse-wheel by 1 second, | |
// add 200 pixels per-scroll | |
// with 150-pixel wheel-delta**/ | |
if (window.addEventListener) | |
window.addEventListener('DOMMouseScroll', wheel, false); | |
window.onmousewheel = document.onmousewheel = wheel; | |
function wheel(event) { | |
// set wheelDelta initial state to 0 |
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
/** Add pre-loader before page load **/ | |
jQuery(document).ready(function ($) { | |
$(window).load(function () { | |
// on window load | |
setTimeout(function() { | |
//set timeout duration for preloader function | |
$(function (){ | |
$('#preloader').fadeOut('3000', function () { | |
// fade out after 3 seconds | |
$(this).remove(); |
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
/** Collapse/Expand all bootstrap panels on Single Click Event on panels **/ | |
$('#accordion .panel-default').on('click', function () { | |
$('#accordion .panel-collapse').collapse('toggle'); | |
}); | |
<div class="panel-group" id="accordion"> | |
<!-- First Panel --> | |
<div class="panel panel-default"> | |
<div class="panel-heading"> |
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
/** Jquery Count up numbers when scrolled into view | |
* <div class="col-lg-4 stats"> | |
* <h3 class=""> | |
* <span class="statvalue" numx="895"></span> | |
* </h3> | |
* <p class="lead"> | |
* Since we started | |
* </p> | |
* </div> | |
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
$target_dir = "uploads/"; | |
$temp = explode(".", $_FILES["fileToUpload"]["name"]); | |
$newfilename = rand(1, 99999) . '.' . end($temp); | |
$target_file = $target_dir . '' . $newfilename; | |
$uploadOk = 1; | |
$imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); | |
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
/** | |
* The list of Social Media options for the site | |
* | |
* This is used to build Theme options to insert each Social Media link and to output it in the theme | |
* | |
* @return array | |
*/ | |
function cf_social_media_options() | |
{ | |
return array( |
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
// Codepen below | |
// https://codepen.io/paulgwamanda/pen/prdBzm | |
//Javascript for cube carousel slideshow animation | |
var myPresentation = function() { | |
var wrapper = null; | |
var defClass = null; | |
var slides = null; | |
var slidesNum = null; | |
var nextButton = document.createElement('a'); |
OlderNewer