Skip to content

Instantly share code, notes, and snippets.

@onurdemir
onurdemir / functions.php
Last active August 23, 2017 20:53
gravity and zendesk integration
<?php
/*
* ZENDESK API
*/
define("ZDAPIKEY", "YOUR Zendesk API Key");
define("ZDUSER", "YOUR ZENDESK USERNAME (e-mail)");
define("ZDURL", "https://yourdomain.zendesk.com/api/v2");
/*
* Here goes the Gravity Forms Functions
*/
@onurdemir
onurdemir / horizontal-menu.css
Last active August 29, 2015 14:07
centered-horizontal-menu
.menu{
margin:0px auto;
}
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function() {
for (i=0;i<1;i++) {
setTimeout('addDot()',1000);
}
});
function addDot() {
jQuery(document).ready(function($) {
jQuery('#<?php echo $this->id.'-item'; ?> .menu').wfMegaMenu({