2014-10-13 19:23:06 +04:00
|
|
|
|
<div class="content-cover" {{action "closeSettingsMenu"}}></div>
|
|
|
|
|
{{#gh-tabs-manager selected="showSubview" id="entry-controls" class="settings-menu-container"}}
|
|
|
|
|
<div id="entry-controls">
|
|
|
|
|
<div {{bind-attr class="isViewingSubview:settings-menu-pane-out-left:settings-menu-pane-in :settings-menu :settings-menu-pane"}}>
|
|
|
|
|
<div class="settings-menu-header">
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<h4>Post Settings</h4>
|
2014-10-13 19:23:06 +04:00
|
|
|
|
<button class="close icon-x settings-menu-header-action" {{action "closeSettingsMenu"}}><span class="hidden">Close</span></button>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
2014-10-13 19:23:06 +04:00
|
|
|
|
<div class="settings-menu-content">
|
2014-11-22 04:42:03 +03:00
|
|
|
|
{{gh-uploader uploaded="setCoverImage" canceled="clearCoverImage" image=image uploaderReference=uploaderReference tagName="section"}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<form>
|
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="url">Post URL</label>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<span class="input-icon icon-link">
|
2014-10-22 01:20:51 +04:00
|
|
|
|
{{gh-input class="post-setting-slug" id="url" value=slugValue name="post-setting-slug" focus-out="updateSlug" selectOnClick="true" stopEnterKeyDownPropagation="true"}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2014-08-16 01:18:36 +04:00
|
|
|
|
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="post-setting-date">Publish Date</label>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<span class="input-icon icon-calendar">
|
2014-10-22 01:20:51 +04:00
|
|
|
|
{{gh-input class="post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" stopEnterKeyDownPropagation="true"}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
2014-09-28 14:21:09 +04:00
|
|
|
|
{{#unless session.user.isAuthor}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="form-group for-select">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="author-list">Author</label>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<span class="input-icon icon-user">
|
2014-09-17 14:41:34 +04:00
|
|
|
|
<span class="gh-select" tabindex="0">
|
2014-10-21 20:02:11 +04:00
|
|
|
|
{{view "select"
|
2014-09-04 17:56:07 +04:00
|
|
|
|
name="post-setting-author"
|
2014-10-16 19:45:44 +04:00
|
|
|
|
id="author-list"
|
2014-09-04 17:56:07 +04:00
|
|
|
|
content=authors
|
|
|
|
|
optionValuePath="content.id"
|
|
|
|
|
optionLabelPath="content.name"
|
|
|
|
|
selection=selectedAuthor}}
|
|
|
|
|
</span>
|
2014-08-16 01:18:36 +04:00
|
|
|
|
</span>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
2014-09-28 14:21:09 +04:00
|
|
|
|
{{/unless}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
|
|
|
|
|
<ul class="nav-list nav-list-block">
|
2014-09-15 04:40:24 +04:00
|
|
|
|
{{#gh-tab tagName="li" classNames="nav-list-item"}}
|
2014-11-05 16:38:07 +03:00
|
|
|
|
<button type="button">
|
2014-09-15 04:40:24 +04:00
|
|
|
|
<b>Meta Data</b>
|
|
|
|
|
<span>Extra content for SEO and social media.</span>
|
2014-11-05 16:38:07 +03:00
|
|
|
|
</button>
|
2014-09-15 04:40:24 +04:00
|
|
|
|
{{/gh-tab}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</ul>
|
2014-09-23 12:47:35 +04:00
|
|
|
|
|
|
|
|
|
<div class="form-group for-checkbox">
|
|
|
|
|
<label class="checkbox" for="static-page" {{action "togglePage" bubbles="false"}}>
|
|
|
|
|
{{input type="checkbox" name="static-page" id="static-page" class="post-setting-static-page" checked=page}}
|
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
|
<p>Turn this post into a static page</p>
|
|
|
|
|
</label>
|
|
|
|
|
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label class="checkbox" for="featured" {{action "toggleFeatured" bubbles="false"}}>
|
2014-09-23 12:47:35 +04:00
|
|
|
|
{{input type="checkbox" name="featured" id="featured" class="post-setting-featured" checked=featured}}
|
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
|
<p>Feature this post</p>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2014-10-13 19:23:06 +04:00
|
|
|
|
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</form>
|
2014-10-13 19:23:06 +04:00
|
|
|
|
</div>{{! .settings-menu-content }}
|
|
|
|
|
</div>{{! .post-settings-menu }}
|
|
|
|
|
|
|
|
|
|
<div {{bind-attr class="isViewingSubview:settings-menu-pane-in:settings-menu-pane-out-right :settings-menu :settings-menu-pane"}}>
|
2014-09-19 03:42:07 +04:00
|
|
|
|
{{#gh-tab-pane}}
|
2014-10-13 19:23:06 +04:00
|
|
|
|
<div class="settings-menu-header subview">
|
|
|
|
|
<button {{action "closeSubview"}} class="back icon-chevron-left settings-menu-header-action"><span class="hidden">Back</span></button>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<h4>Meta Data</h4>
|
|
|
|
|
</div>
|
|
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
|
<div class="settings-menu-content">
|
2014-09-21 22:56:30 +04:00
|
|
|
|
<form>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="meta-title">Meta Title</label>
|
|
|
|
|
{{gh-input class="post-setting-meta-title" id="meta-title" value=metaTitleScratch name="post-setting-meta-title" focus-out="setMetaTitle" stopEnterKeyDownPropagation="true"}}
|
2014-09-21 22:56:30 +04:00
|
|
|
|
<p>Recommended: <b>70</b> characters. You’ve used {{gh-count-down-characters metaTitleScratch 70}}</p>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="meta-description">Meta Description</label>
|
|
|
|
|
{{gh-textarea class="post-setting-meta-description" id="meta-description" value=metaDescriptionScratch name="post-setting-meta-description" focus-out="setMetaDescription" stopEnterKeyDownPropagation="true"}}
|
2014-09-21 22:56:30 +04:00
|
|
|
|
<p>Recommended: <b>156</b> characters. You’ve used {{gh-count-down-characters metaDescriptionScratch 156}}</p>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label>Search Engine Result Preview</label>
|
|
|
|
|
<div class="seo-preview">
|
2014-09-19 03:42:07 +04:00
|
|
|
|
<div class="seo-preview-title">{{seoTitle}}</div>
|
2014-10-17 20:18:52 +04:00
|
|
|
|
<div class="seo-preview-link">{{seoURL}}</div>
|
2014-09-19 03:42:07 +04:00
|
|
|
|
<div class="seo-preview-description">{{seoDescription}}</div>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
2014-12-02 01:45:45 +03:00
|
|
|
|
</div>
|
2014-09-21 22:56:30 +04:00
|
|
|
|
</form>
|
2014-10-13 19:23:06 +04:00
|
|
|
|
</div>{{! .settings-menu-content }}
|
2014-09-19 03:42:07 +04:00
|
|
|
|
{{/gh-tab-pane}}
|
|
|
|
|
</div>
|
2014-09-15 04:40:24 +04:00
|
|
|
|
</div>
|
2014-09-19 03:42:07 +04:00
|
|
|
|
{{/gh-tabs-manager}}
|