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
$('.pagination').jqPagination({ | |
paged: function(page) { | |
// do something with the page variable | |
} | |
}); |
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 | |
if (is_direct_call()) { | |
echo "abc"; | |
} | |
?> |
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 | |
// slap this in your functions file | |
function wp_url_func($atts, $content=null) | |
{ | |
return get_bloginfo('wp_url'); | |
} | |
add_shortcode('wp_url', 'wp_url_func'); |
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 | |
// when wordpress initialises, call our create event post type function | |
add_action('init', 'td_create_custom_post_type_event', 0); | |
function td_create_custom_post_type_event() | |
{ | |
// set the singular and plural label here, we can reuse these below | |
$name = array( |
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 get_week_number_date($week, $year) | |
{ | |
// Count from '0104' because January 4th is always in week 1 | |
// (according to ISO 8601). | |
$time = strtotime($year . '0104 +' . ($weekNumber - 1) . ' weeks'); | |
// Get the time of the first day of the week |
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
dfgdfgdf |
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
<article> | |
<h2>Sections</h2> | |
<p>The main page header of this guide is an <code>h1</code> element. Any header elements may include links, as depicted in the example.</p> | |
<p>The secondary header above is an <code>h2</code> element, which may be used for any form of important page-level header. More than one may be used per page. Consider using an <code>h2</code> unless you need a header level of less importance, or as a sub-header to an existing <code>h2</code> element.</p> | |
<h3>Third-Level Header</h3> | |
<p>The header above is an <code>h3</code> element, which may be used for any form of page-level header which falls below the <code>h2</code> header in a document hierarchy.</p> | |
<h4>Fourth-Level Header</h4> | |
<p>The header above is an <code>h4</code> element, which may be used for any form of page-level header which falls below the <code>h3</code> header in a document hierarchy.</p> |
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
AF AFGHANISTAN | |
AL ALBANIA | |
DZ ALGERIA | |
AS AMERICAN SAMOA | |
AD ANDORRA | |
AO ANGOLA | |
AI ANGUILLA | |
AQ ANTARCTICA | |
AG ANTIGUA AND BARBUDA | |
AR ARGENTINA |
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
.font-size(@font-size: 16) { | |
@rem: (@font-size / 16); | |
font-size: @font-size * 1px; | |
font-size: ~"@{rem}rem"; | |
} | |
/* usage */ | |
a { | |
.font-size(16); // 16px | |
} |
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
100 Hairline | |
200 Extra Light | |
300 Light | |
400 Regular | |
500 Medium | |
600 Semibold | |
700 Bold | |
800 ??? | |
900 Black |
OlderNewer