123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- window.wp = window.wp || {};
- window.wp.customize = window.wp.customize || { get: function() {} };
- var customizerRootElement;
- customizerRootElement = jQuery( '<div id="customize-theme-controls"><ul></ul></div>' );
- customizerRootElement.css( { position: 'absolute', left: -10000, top: -10000 } ); // Remove from view.
- jQuery( document.body ).append( customizerRootElement );
- window._wpCustomizeSettings = {
- 'autofocus': {},
- 'browser': {
- 'ios': false,
- 'mobile': false
- },
- 'controls': {
- 'fixture-control': {
- 'active': true,
- 'content': '<li id="accordion-section-fixture-section" class="accordion-section control-section control-section-default"> <h3 class="accordion-section-title" tabindex="0"> Section Fixture <span class="screen-reader-text">Press return or enter to open</span> </h3> <ul class="accordion-section-content"> <li class="customize-section-description-container"> <div class="customize-section-title"> <button class="customize-section-back" tabindex="-1"> <span class="screen-reader-text">Back</span> </button> <h3> <span class="customize-action">Customizing ▸ Fixture Panel</span> Section Fixture </h3> </div> </li> </ul> </li>',
- 'description': '',
- 'instanceNumber': 8,
- 'label': 'Fixture Control',
- 'priority': 10,
- 'section': 'fixture-section',
- 'settings': {
- 'default': 'fixture-setting'
- },
- 'type': 'text'
- }
- },
- 'documentTitleTmpl': 'Customize: %s',
- 'nonce': {
- 'preview': '',
- 'save': ''
- },
- 'panels': {
- 'fixture-panel': {
- 'active': true,
- 'content': '<li id="accordion-panel-fixture-panel" class="accordion-section control-section control-panel control-panel-default"> <h3 class="accordion-section-title" tabindex="0"> Fixture Panel <span class="screen-reader-text">Press return or enter to open this panel</span> </h3> <ul class="accordion-sub-container control-panel-content"> <li class="panel-meta customize-info accordion-section cannot-expand"> <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text">Back</span></button> <div class="accordion-section-title"> <span class="preview-notice">You are customizing <strong class="panel-title">Fixture Panel</strong></span> <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text">Help</span></button> </div> </li> </ul> </li>',
- 'description': 'Lorem ipsum',
- 'instanceNumber': 1,
- 'priority': 110,
- 'title': 'Fixture panel with content',
- 'type': 'default'
- },
- 'fixture-panel-default-templated': {
- 'active': true,
- 'description': 'Lorem ipsum',
- 'instanceNumber': 2,
- 'priority': 110,
- 'title': 'Fixture default panel using template',
- 'type': 'default'
- },
- 'fixture-panel-titleless-templated': {
- 'active': true,
- 'description': 'Lorem ipsum',
- 'instanceNumber': 3,
- 'priority': 110,
- 'title': 'Fixture titleless panel using template',
- 'type': 'titleless'
- },
- 'fixture-panel-reusing-default-template': {
- 'active': true,
- 'description': 'Lorem ipsum',
- 'instanceNumber': 3,
- 'priority': 110,
- 'title': 'Fixture panel of custom type re-using default template',
- 'type': 'reusing-default-template'
- },
- 'fixture-panel-without-params': {}
- },
- 'sections': {
- 'fixture-section': {
- 'active': true,
- 'content': '<li id="accordion-section-fixture-section" class="accordion-section control-section control-section-default"> <h3 class="accordion-section-title" tabindex="0"> Section Fixture <span class="screen-reader-text">Press return or enter to open</span> </h3> <ul class="accordion-section-content"> <li class="customize-section-description-container"> <div class="customize-section-title"> <button class="customize-section-back" tabindex="-1"> <span class="screen-reader-text">Back</span> </button> <h3> <span class="customize-action">Customizing ▸ Fixture Panel</span> Section Fixture </h3> </div> </li> </ul> </li>',
- 'description': '',
- 'instanceNumber': 2,
- 'panel': 'fixture-panel',
- 'priority': 20,
- 'title': 'Fixture Section',
- 'type': 'default'
- },
- 'fixture-section-default-templated': {
- 'active': true,
- 'description': '',
- 'instanceNumber': 3,
- 'panel': 'fixture-panel',
- 'priority': 20,
- 'title': 'Fixture default section using template',
- 'type': 'default'
- },
- 'fixture-section-titleless-templated': {
- 'active': true,
- 'description': '',
- 'instanceNumber': 4,
- 'panel': 'fixture-panel',
- 'priority': 20,
- 'title': 'Fixture titleless section using template',
- 'type': 'titleless'
- },
- 'fixture-section-reusing-default-template': {
- 'active': true,
- 'description': '',
- 'instanceNumber': 4,
- 'panel': 'fixture-panel',
- 'priority': 20,
- 'title': 'Fixture section of custom type re-using default template',
- 'type': 'reusing-default-template'
- },
- 'publish_settings': {
- 'active': true,
- 'description': '',
- 'instanceNumber': 6,
- 'priority': 20,
- 'title': 'Fixture section of custom type re-using default template',
- 'type': 'outer'
- },
- 'fixture-section-without-params': {}
- },
- 'settings': {
- 'fixture-setting': {
- 'transport': 'postMessage',
- 'value': 'Lorem Ipsum'
- },
- 'fixture-setting-abbr': {
- 'transport': 'postMessage',
- 'value': 'NASA',
- 'type': 'abbreviation'
- }
- },
- 'theme': {
- 'active': true,
- 'stylesheet': 'twentyfifteen'
- },
- 'url': {
- 'activated': 'http://example.org/wp-admin/themes.php?activated=true&previewed',
- 'ajax': '/wp-admin/admin-ajax.php',
- 'allowed': [
- 'http://example.org/'
- ],
- 'fallback': 'http://example.org/?preview=1&template=twentyfifteen&stylesheet=twentyfifteen&preview_iframe=1&TB_iframe=true',
- 'home': 'http://example.org/',
- 'isCrossDomain': false,
- 'login': 'http://example.org/wp-login.php?interim-login=1&customize-login=1',
- 'parent': 'http://example.org/wp-admin/',
- 'preview': 'http://example.org/'
- },
- 'previewableDevices': {
- 'desktop': {
- 'label': 'Enter desktop preview mode',
- 'default': true
- },
- 'tablet': {
- 'label': 'Enter tablet preview mode'
- },
- 'mobile': {
- 'label': 'Enter mobile preview mode'
- }
- },
- initialClientTimestamp: 1506510531595,
- initialServerDate: '2017-09-27 16:38:49',
- initialServerTimestamp: 1506510529913,
- changeset: {
- status: '',
- uuid: '0c674ff4-c159-4e7a-beb4-cb830ae73979',
- autosaved: false,
- branching: false,
- currentUserCanPublish: false,
- hasAutosaveRevision: false,
- latestAutoDraftUuid: '341b06f6-3c1f-454f-96df-3cf197f3e347',
- publishDate: '',
- locked: false
- },
- timeouts: {
- windowRefresh: 250,
- changesetAutoSave: 60000,
- keepAliveCheck: 2500,
- reflowPaneContents: 100,
- previewFrameSensitivity: 2000
- }
- };
- window._wpCustomizeControlsL10n = {};
- jQuery.ajaxSetup( {
- beforeSend: function( e, data ) {
- if ( data.url.indexOf( '//example.org' ) !== -1 ) {
- return false;
- }
- }
- } );
|