'use strict' if (window.plugins === undefined || window.plugins === null) { window.plugins = [] } window.plugins.append({ sidebar: [ { click: function (event) { console.log('evt') }, icon: 'settings_applications', name: 'Settings' }, { click: function (event) { console.log('evt') }, icon: 'remove_red_eye', name: 'Preview' } ] }) /* {{ define "sidebar-addon" }} subject Posts and Pages format_paint Themes settings Settings {{ end }} */