This is a basic blank README for new projects.
[COMPANY] | [SLOGAN]
My standard git commit prefix message five character format. Keeping your git commit messages simple and clean allows for more important commits to stand out. More important commit messages can have any number of characters in prefix.
Fixed
<?php | |
/* | |
* Searchable Ecwid products add to functions.php | |
*/ | |
// Pre post hook, query modifier | |
add_filter('pre_get_posts', 'tgm_io_cpt_search'); | |
// Modifier function | |
function tgm_io_cpt_search($query) { | |
if ($query->is_search) { | |
// Add ec-product post type; will also except other custom post types |
:: Turn off print output string | |
ECHO OFF | |
:: Change title | |
title JBCreativFirm GIT Merge/Push | |
:: GIT branch algorithm | |
cls | |
git add . | |
git status | |
git commit -m "Default" |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
<?php | |
// Flush Rewrites | |
register_activation_hook( __FILE__, 'myplugin_flush_rewrites' ); | |
function myplugin_flush_rewrites() { | |
// call your rewrite rules registration function here (it should also be hooked into 'init') | |
myplugin_custom_rewrite_rules_registration(); | |
flush_rewrite_rules(); | |
} | |
?> |
RedirectMatch 301 ^/xxx/(.*)$ http://xxx.domain.com/$1 |
<script> | |
jQuery("video-iframe")[0].src += "&autoplay=1"; | |
</script> |
<?php | |
// Detect device | |
if(!function_exists('device_switch')){ | |
function device_switch() { | |
$device = ''; | |
if(stristr($_SERVER['HTTP_USER_AGENT'],'ipad')) { | |
$device = "ipad"; | |
} else if(stristr($_SERVER['HTTP_USER_AGENT'],'iphone') || strstr($_SERVER['HTTP_USER_AGENT'],'iphone')) { | |
$device = "iphone"; |
<iframe width="0" height="1" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/xxxxxxxxx&color=%23800080&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe> |