This file contains hidden or 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
| // Create the function to use in the action hook | |
| function example_remove_dashboard_widgets() { | |
| // Globalize the metaboxes array, this holds all the widgets for wp-admin | |
| global $wp_meta_boxes; | |
| // Remove the quickpress widget | |
| unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); |
This file contains hidden or 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
| /* First, let's get rid of the Help menu, update nag, Personal Options section */ | |
| echo "\n" . '<style type="text/css" media="screen">#your-profile { display: none; } .update-nag, #screen-meta, .color-option, .show-admin-bar { display: none !important; }</style>'; | |
| echo "\n" . '<script type="text/javascript">jQuery(document).ready(function($) { $(\'form#your-profile > h3:first\').hide(); $(\'form#your-profile > table:first\').hide(); $(\'form#your-profile\').show(); });</script>' . "\n"; | |
| add_action('admin_head', |
This file contains hidden or 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
| # SnipMate is required to use snippets | |
| # Download SnipMate: http://www.vim.org/scripts/script.php?script_id=2540 | |
| # Put this file in ~/.vim/snippets/ then restart vim | |
| # This snippet file includes many useful snippets for CodeIgniter. Please feel free to fork and contribute! | |
| snippet php | |
| <?php | |
| ${1} | |
| ?> | |
| snippet ec | |
| echo "${1:string}"${2}; |
This file contains hidden or 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
| * @property CI_DB_active_record $db | |
| * @property CI_DB_forge $dbforge | |
| * @property CI_Benchmark $benchmark | |
| * @property CI_Calendar $calendar | |
| * @property CI_Cart $cart | |
| * @property CI_Config $config | |
| * @property CI_Controller $controller | |
| * @property CI_Email $email | |
| * @property CI_Encrypt $encrypt | |
| * @property CI_Exceptions $exceptions |
This file contains hidden or 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 scale($isAtScale) | |
| { | |
| if ($isAtScale == false) | |
| { | |
| $task = $this->buy_bigger_server(); | |
| } | |
| return $task; | |
| } |
This file contains hidden or 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 getSearchString(){ | |
| var ref = top.document.referrer; | |
| if (ref.indexOf('?') == -1) return; | |
| var querys = ref.substr(ref.indexOf('?')+1); | |
| var qsa = querys.split('&'); | |
| for (var i=0;i<qsa.length;i++) { | |
| var qsip = qsa[i].split('='); | |
| if (qsip.length == 1) continue; | |
| if (qsip[0] == 'q' || qsip[0] == 'p') { // q= for Google + Bing, p= for Yahoo | |
| var wordstring = unescape(qsip[1].replace(/\+/g,' ')); |