window.wp = window.wp || {};
( function($) {
var themes, l10n;
themes = wp.themes = wp.themes || {};
themes.data = _wpThemeSettings;
l10n = themes.data.l10n;
themes.isInstall = !! themes.data.settings.isInstall;
_.extend( themes, { model: {}, view: {}, routes: {}, router: {}, template: wp.template });
themes.Model = Backbone.Model.extend({
initialize: function() {
var description;
if ( this.get( 'slug' ) ) {
if ( _.indexOf( themes.data.installedThemes, this.get( 'slug' ) ) !== -1 ) {
this.set({ installed: true });
}
if ( themes.data.activeTheme === this.get( 'slug' ) ) {
this.set({ active: true });
}
}
this.set({