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 | |
| session_start(); | |
| require_once("twitteroauth/twitteroauth/twitteroauth.php"); //Path to twitteroauth library | |
| $twitteruser = "twitterusername"; | |
| $notweets = 30; | |
| $consumerkey = "12345"; | |
| $consumersecret = "123456789"; | |
| $accesstoken = "123456789"; | |
| $accesstokensecret = "12345"; |
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 | |
| echo '<ul class="iv-slider">'; | |
| $sliders = get_post_meta( get_the_id(), 'gp', false ); | |
| foreach ( $sliders as $slider ) { | |
| echo '<li class="iv-slide">'; | |
| echo '<h3>'.$slider["iv-slider-title"].'</h3>'; | |
| echo '<p>'.$slider["iv-slider-desc"].'</p>'; | |
| echo wp_get_attachment_image(array_shift($slider["iv-slider-img"])); |
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 iv_slider_metabox( array $meta_boxes ) { | |
| $fields = array( | |
| array( 'id' => 'iv-slider-title', 'name' => 'Text input field', 'type' => 'text' ), | |
| array( 'id' => 'iv-slider-desc', 'name' => 'WYSIWYG field', 'type' => 'wysiwyg', 'options' => array( 'editor_height' => '100' ) ), | |
| array( 'id' => 'iv-slider-img', 'name' => 'File field', 'type' => 'file', 'file_type' => 'image', 'repeatable' => 1, 'sortable' => 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
| ################# | |
| ## Eclipse | |
| ################# | |
| *.pydevproject | |
| .project | |
| .metadata | |
| bin/ | |
| tmp/ | |
| *.tmp |
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
| (function($) { | |
| $.rdCalendar = function(element, options) { | |
| var plugin = this, | |
| $element = $(element), | |
| defaults = { | |
| region : 'en', | |
| monthNames: 'monthNamesShort', | |
| dayNames: 'dayNamesShort', | |
| template: '<h2><%= month %><%= year %> | <a class="navigate" href="#prev">prev</a> | <a class="navigate" href="#next">next</a></h2><table class="calendar"><thead><tr><% for (var i = 0, l = days.length; i < l; i++) { %><th><%= days[i] %></th><% } %></tr></thead><tbody><% var rows = dates.length/7, cols=7; for (var x = 0, d = 0; x < rows; x++) { %><tr><% for (var y = 0; y < cols; y++) { var date = dates[d++]; %><% if (date != null) { %><td><h3 class="day"><span class="num"><%= date.date %></span></h3><% if (date.events.length > 0) { %><ul><% for (var e = 0, l = date.events.length; e < l; e++) {%><li><a href=""><%= date.events[e].name %></a></li><% } %></ul><% } %></td><% } else { %><td></td><% } %><% } %></tr><% } %></tbody></table>', | |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="description" content="A description about your site" /> | |
| <meta name="keywords" content="keywords, separated, by, comma" /> | |
| <title>Untitled Document</title> | |
| <link rel="shortcut icon" href="favicon.ico" /> | |
| <link rel="stylesheet" href="css/style.css" media="screen" /> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
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
| /*------------------------------------*\ | |
| $RESET | |
| \*------------------------------------*/ | |
| * { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } |
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 | |
| // Match Twitter handles and create a link to the profile | |
| $string = $value["text"]; | |
| $input = preg_replace('/(?<=^|\s)@([a-z0-9_]+)/i', '<a href="http://www.twitter.com/$1">@$1</a>', $string); | |
| echo $input; | |
| ?> |
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
| <? | |
| add_filter( 'gettext', 'change_howdy_text', 10, 2 ); | |
| function change_howdy_text( $translation, $original ) { | |
| if( 'Howdy, %1$s' == $original ) | |
| $translation = 'Logged in as %1$s'; | |
| return $translation; | |
| } | |
| ?> |
OlderNewer