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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Fix Footer With CSS & Jquery/JS</title> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | |
<script src="public.js"></script> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> |
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
fairly self explanatory, but just in case, this package will replace t.co urls on twitter and tweetdeck by using other attributes in the anchor tag. | |
install in firefox with Greasmonkey addon and in google chrome with Tampermonkey | |
Install: | |
https://openuserjs.org/scripts/parsa-kafi/t.co_bypass |
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 | |
function wp_dropdown_categories_pk($name, $taxonomy, $selected = array()) | |
{ | |
$select = wp_dropdown_categories(array( | |
'name' => $name, | |
'show_option_none' => '- Category -', | |
'option_none_value' => '-1', | |
'taxonomy' => $taxonomy, | |
'hierarchical' => 1, | |
'echo' => 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
function current_user_can_vy($caps, $all_capability = false) | |
{ | |
if (is_array($caps)) { | |
foreach ($caps as $cap) { | |
$capability = current_user_can($cap); | |
if (!$all_capability && $capability) | |
return true; | |
elseif ($all_capability && !$capability) | |
return 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
<?php | |
/* | |
Plugin Name: MyPlugin | |
Plugin URI: http://parsa.ws | |
Description: MyPlugin | |
Author: Parsa Kafi | |
Version: 1.0 | |
Author URI: http://parsa.ws | |
*/ |