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
<?php | |
$image_arr=array('path1.png', 'path2.png', 'path3.png'); | |
echo gd_gen_image($image_arr); | |
function gd_gen_image($arr){ | |
$base = imagecreatetruecolor(913, 500); | |
$color = imagecolorallocatealpha($base, 0, 0, 0, 127); | |
imagefill($base, 0, 0, $color); |
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
<?php if ( is_singular() || is_front_page() ) { ?> | |
<meta name="twitter:card" content="summary" /> | |
<meta name="twitter:creator" content="@YOUR-TWITTER-NAME" /> | |
<meta name="twitter:url" content="<?php the_permalink() ?>" /> | |
<meta name="twitter:title" content="<?php do_action('wpseo_the_title') ?>" /> | |
<meta name="twitter:description" content="<?php do_action('wpseo_the_desc') ?>" /> | |
<meta property="og:title" content="<?php do_action('wpseo_the_title') ?>"> | |
<meta property="og:type" content="article"> | |
<meta property="og:url" content="<?php the_permalink() ?>"> |
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
<?php | |
/** Thanks to Pascal Landau | |
** https://plus.google.com/105523642741376989823/posts | |
**/ | |
$handle = fopen("path/log.log","a"); | |
fwrite($handle, var_export($array_or_object, true)); | |
fclose($handle); | |
?> |