{ /* // Place your snippets for PHP here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the // same ids are connected. // Example: "Print to console": { "prefix": "log", "body": [ "console.log('$1');", "$2" ], "description": "Log output to console" } */ "Remove Header Right Widget Area": { "prefix": "remove_header_right_widget_area", "body": [ "// Remove header right widget area.", "unregister_sidebar( 'header-right' );" ], "description": "Remove Header Right Widget Area" }, "Register Widget Area": { "prefix": "rwa", "body": [ "// Register `${1:home-featured}` widget area.", "genesis_register_widget_area(", " array(", " 'id' => '${1:home-featured}',", " 'name' => __( '${2:Home Featured}', 'my-theme-text-domain' ),", " 'description' => __( 'This is the ${3:home featured} section.', 'my-theme-text-domain' ),", " )", ");" ], "description": "Register a widget area in Genesis." }, "Register Multiple Widget Areas": { "prefix": "register_multiple_Widget_areas", "body": [ "// Register ${1:front-page} widget areas.", "for ( \\$i = 1; \\$i <= 4; \\$i++ ) {", " genesis_register_widget_area(", " array(", " 'id' => \"${1:front-page}-{\\$i}\",", " 'name' => __( \"${2:Front Page} {\\$i}\", 'my-theme-text-domain' ),", " 'description' => __( \"This is the ${3:front page} {\\$i} section.\", 'my-theme-text-domain' ),", " )", " );", "}" ], "description": "Register Multiple Widget Areas" }, "Display Widget Area": { "prefix": "dwa", "body": [ "// Display `${1:home-featured}` widget area.", "genesis_widget_area( '${1:home-featured}', array(", " 'before' => '