Skip to content

Instantly share code, notes, and snippets.

Mohammad Reza Shariatzadeh Mrshcom

Block or report user

Report or block Mrshcom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Mrshcom
Mrshcom / gist:3992304
Created Nov 1, 2012 — forked from AliMD/gist:3865955
Create A Somple Product Catalog width Wordpress.
View gist:3992304

ali.md/pcwp

Step One: Create the custom post type

The following code goes into the functions.php file:

// Create A Somple Product Catalog width Wordpress. ali.md/pcwp
// Step One: Create the custom post type
View Ringing-Bell-Animation.markdown
View gist:3861212

For using g+ badges to your website you have to follow these:

at fist you must add this script to your page:

<script src="https://apis.google.com/js/plusone.js"></script>

for adding +1 button add below code: (note:don't forget change the href attribute to your own address)

<g:plusone href="http://Mampel.ir"></g:plusone>
@Mrshcom
Mrshcom / gist:3848859
Created Oct 7, 2012
Redirect all url to .php
View gist:3848859

Redirect all url (without type) to .php

(Add this code to .htaccess file)

    • => *.php
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f [OR]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([A-z0-9/_+-]+)$ /$1.php [L]
@Mrshcom
Mrshcom / gist:3842356
Created Oct 5, 2012
CSS3 Animation Generator
View gist:3842356
@Mrshcom
Mrshcom / gist:3842287
Created Oct 5, 2012
Html5 Canvas Tutorials
View gist:3842287
You can’t perform that action at this time.