Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
<?php | |
// Custom function to return the post slug | |
function the_slug($echo=true){ | |
$slug = basename(get_permalink()); | |
do_action('before_slug', $slug); | |
$slug = apply_filters('slug_filter', $slug); | |
if( $echo ) echo $slug; | |
do_action('after_slug', $slug); | |
return $slug; | |
} |
<?php | |
// Display a page parent's slug | |
$post_data = get_post($post->post_parent); | |
$parent_slug = $post_data->post_name; | |
echo $parent_slug; | |
?> |
<?php if (function_exists('the_function_name')) { the_function_name(); } ?> |
<?php get_site_url(); ?> |
<?php | |
// Run this code on 'after_theme_setup', when plugins have already been loaded. | |
add_action('after_setup_theme', 'my_load_plugin'); | |
// This function loads the plugin. | |
function my_load_plugin() { | |
// Check to see if your plugin has already been loaded. This can be done in several | |
// ways - here are a few examples: |
<?php _e("",THEME_CODE_NAME); ?> |
<?php echo home_url(); ?> |
.footer-links { | |
ul { | |
margin: 0 auto; | |
list-style-type: none; | |
li { | |
width:auto; | |
margin-right: 10px; | |
display:inline; | |
padding:0; |