- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
613 B
JavaScript
Executable File
34 lines
613 B
JavaScript
Executable File
/**
|
|
* Created by PhpStorm.
|
|
* User: Ovidiu
|
|
* Date: 1/16/2018
|
|
* Time: 10:56 AM
|
|
*/
|
|
|
|
var base = require( './base' ),
|
|
BreadcrumbLink = require( '../models/breadcrumb-link' );
|
|
/**
|
|
* Breadcrumb links collection
|
|
*/
|
|
module.exports = base.extend( {
|
|
model: Backbone.Model.extend( {
|
|
defaults: {
|
|
hash: '',
|
|
label: ''
|
|
}
|
|
} ),
|
|
/**
|
|
* helper function allows adding items to the collection easier
|
|
*
|
|
* @param {string} route
|
|
* @param {string} label
|
|
*/
|
|
add_page: function ( route, label ) {
|
|
var _model = new BreadcrumbLink( {
|
|
hash: route,
|
|
label: label
|
|
} );
|
|
return this.add( _model );
|
|
}
|
|
} );
|