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 | |
| /* | |
| Plugin Name: Test | |
| */ | |
| class My_Like_Button { | |
| function __construct() | |
| { | |
| $this->hooks(); | |
| } |
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
| //#1 http://stackoverflow.com/questions/15118802/jquery-fade-out-div-display-after-certain-set-time | |
| $("#message").fadeIn('slow').delay(5000).fadeOut('slow'); | |
| //or http://stackoverflow.com/questions/17677398/hide-a-div-after-5-seconds-or-when-the-user-clicks-the-close-link | |
| $(window).load(function(){ | |
| setTimeout(function(){ $('.video-field-new').fadeOut() }, 5000); | |
| }); |
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: Sets, Tracks and Displays the Count of Post Views (Post View Counter) | |
| *********************************************************************************/ | |
| //Set the Post Custom Field in the WP dashboard as Name/Value pair | |
| function dp_PostViews($post_ID) { | |
| //Set the name of the Posts Custom Field. | |
| $count_key = 'post_views_count'; |
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
| $Error | |
| if(count( $errors )==0) echo 'no errors'; else 'some errors'; | |
| WP_Error $errors | |
| if(count( $errors->errors )==0) echo 'no errors'; else echo 'some errors'; | |
| https://github.com/astockwell/countries-and-provinces-states-regions/blob/master/countries/france.json |
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
| http://spyrestudios.com/design-a-foursquare-like-user-profile-page-in-html5css3/ | |
| http://bloomwebdesign.net/2012/11/30-user-profile-page-designs-for-inspiration/ | |
| http://webdesignledger.com/inspiration/35-inspirational-user-profile-webpage-layouts | |
| http://designshack.net/articles/css/how-to-build-a-minimalist-user-profile-layout-with-content-tabs/ | |
| http://wpsites.net/web-design/team-members-staff-authors-or-user-profile-page-template-for-genesis/ | |
| http://ewebdesign.com/css3-navigation-menu/ | |
| http://stackoverflow.com/questions/13132864/creating-a-radial-menu-in-css | |
| http://pepsized.com/css-only-alternative-to-the-select-element/ |
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
| http://jsfiddle.net/v57JF/ | |
| http://www.programming-free.com/2013/12/fading-list-grid-view-switch-jquery.html | |
| http://www.wpbeginner.com/wp-tutorials/how-to-display-an-author-list-with-avatars-in-wordpress-contributors-page/ | |
| http://vandelaydesign.com/blog/web-development/list-grid-view-switch/ | |
| http://davecavins.com/2010/04/switch-list-displays-with-jquery-and-css/ | |
| http://designm.ag/tutorials/jquery-display-switch/ | |
| http://www.jqueryscript.net/layout/View-Mode-Switch-Layout-With-CSS3-Javascript.html | |
| http://tympanus.net/codrops/2013/07/01/view-mode-switch/ | |
| http://wordpress.org/support/topic/plugin-woocommerce-grid-list-toggle-make-list-view-default-instead-of-grid |
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
| <!--- Start : Ajax Auto Complete ---> | |
| <script type="text/javascript" src="js/jquery.js"></script> | |
| <script type='text/javascript' src='js/jquery.autocomplete.js'></script> | |
| <link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" /> | |
| <script type="text/javascript"> | |
| $(document).ready(function() { | |
| $("#CountryName").autocomplete("get_countries_list.php", { | |
| width: 260, | |
| matchContains: true, |
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://gist.github.com/jameskoster/5181523 | |
| https://gist.github.com/darklycan/6097873 | |
| https://gist.github.com/darklycan/6097870 | |
| https://gist.github.com/sweeney/260620 | |
| https://github.com/umpirsky/country-list | |
| https://github.com/amer3000/Countries---States-Lists | |
| https://gist.github.com/PintuKumarPal/7168294 | |
| https://gist.github.com/PintuKumarPal/7664654 |
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
| <select name="countries"> | |
| <option value="USA" selected>United States</option> | |
| <option value="GBR">United Kingdom</option> | |
| <option value="AUS">Australia</option> | |
| <option value="CAN">Canada</option> | |
| <option value="IND">India</option> | |
| <option value="BRA">Brazil</option> | |
| <option value="">-------------------------------</option> | |
| <option value="ALB">Albania</option> | |
| <option value="DZA">Algeria</option> |
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 | |
| // Country code | |
| $countries = array(); | |
| $countries[1] = 'Canada (+1)'; // 1 so array doesn't start at 0 and show empty | |
| $countries[] = 'China (+86)'; | |
| $countries[] = 'France (+33)'; | |
| $countries[] = 'Germany (+49)'; | |
| $countries[] = 'India (+91)'; | |
| $countries[] = 'Japan (+81)'; | |
| $countries[] = 'Pakistan (+92)'; |