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
<img src="/path/to/image.png"> |
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
5 print | |
10 w$="" | |
20 print "(greater than)_"; | |
30 get a$:if a$="" then 30 | |
40 a=asc(a$) | |
50 if a=13 then 200:rem return | |
60 if a=32 then 110:rem space | |
70 if a=20 then 300:rem backspace | |
100 if a<65 or a>90 then 30 | |
110 print chr$(20);a$;"D"; |
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
function isThisInThat ($needle, $haystack) { | |
return strpos($haystack, $needle) !==false; | |
} |
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
<p class="one"><a href=''>This line shall vanish.</a></p> | |
<p class="one"><a href='https://versluis.com'>This line shall prevail.</a></p> | |
<p>The End.</p> | |
<script> | |
// make empty links vanish | |
$('.one a').each(function() { | |
if(!$(this).attr('href')) { | |
$(this).parent().hide(); |
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
function your_theme_enqueue_styles() { | |
$parent_style = 'parent-style'; | |
wp_enqueue_style( $parent_style, | |
get_template_directory_uri() . '/style.css'); | |
wp_enqueue_style( 'child-style', | |
get_stylesheet_directory_uri() . '/style.css', | |
array($parent_style), |
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
yum history | |
Loaded plugins: fastestmirror, refresh-packagekit | |
ID | Login user | Date and time | Action(s) | Altered | |
------------------------------------------------------------------------------- | |
86 | root <root> | 2019-07-12 11:13 | I, O, U | 11 EE | |
85 | root <root> | 2019-07-12 11:09 | Install | 1 | |
84 | root <root> | 2019-07-12 10:43 | E, I, U | 19 EE | |
83 | root <root> | 2019-05-06 08:59 | E, I, U | 27 EE | |
82 | root <root> | 2018-12-19 22:41 | Update | 2 |
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
Dependencies Resolved | |
================================================================================ | |
Package Arch Version Repository Size | |
================================================================================ | |
Installing: | |
php-mysql i686 5.4.45-56.el6.art atomic 461 k | |
Removing: | |
gd-last i686 2.2.5-5.el6.remi @remi-safe 372 k | |
libargon2 i686 20161029-7.el6.remi @remi-safe 58 k |
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 file uploads to Contributor role | |
function add_uploads_to_contribs () { | |
global $pagenow; | |
// grab contribtor role | |
$role = get_role ('contributor'); | |
// if this theme is activated, add the upload capability | |
if ('themes.php' == $pagenow && isset ($_GET['activated'])) { | |
$role -> add_cap ('upload_files'); |
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
// make galleries link to Media File | |
// https://wordpress.stackexchange.com/questions/115368/overide-gallery-default-link-to-settings | |
function make_galleries_link_to_file() { | |
$post_type_object = get_post_type_object( 'post' ); | |
$post_type_object->template = array( | |
array( 'core/gallery', array( | |
'linkTo' => 'media', | |
) ), | |
); | |
} |
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
// print the categry title without a link | |
foreach((get_the_category()) as $category){ | |
echo '<h1 class="page-title">' . $category->name . '</h1>'; | |
} | |
// print the category description | |
the_archive_description('<blockquote class="wp-block-quote">', '</blockquote>'); |