can set image class for categories

v1.18.x
Baris Soner Usakli 11 years ago
parent eac6b23811
commit baa74958c5

@ -356,6 +356,7 @@ define(['composer'], function(composer) {
}
$('.topic').on('click', '.post_reply', function() {
console.log('gg twice');
var selectionText = '',
selection = window.getSelection() || document.getSelection();

@ -83,6 +83,12 @@
<input id="cid-{categories.cid}-class" type="text" class="form-control" placeholder="col-md-6 col-xs-6" data-name="class" value="{categories.class}" />
</div>
</div>
<div class="col-sm-4 col-xs-12">
<div class="form-group">
<label for="cid-{categories.cid}-imageClass">Image Class</label>
<input id="cid-{categories.cid}-imageClass" type="text" class="form-control" placeholder="default" data-name="imageClass" value="{categories.imageClass}" />
</div>
</div>
<div class="col-sm-4 col-xs-12">
<div class="form-group">
<label for="cid-{categories.cid}-numRecentReplies"># of Recent Replies Displayed</label>

@ -26,7 +26,7 @@
<!-- ELSE -->
<a href="{relative_path}/category/{categories.slug}" itemprop="url">
<!-- ENDIF categories.link -->
<div class="icon" style="background: {categories.background}; color: {categories.color};">
<div class="category-header icon category-header-image-{categories.imageClass}" style="background: {categories.background}; color: {categories.color};">
<div id="category-{categories.cid}" class="category-slider-{categories.post_count}">
<div class="category-box"><i class="fa {categories.icon} fa-4x"></i></div>
<div class="category-box" itemprop="description">{categories.description}</div>

@ -35,7 +35,8 @@ var db = require('./database.js'),
order: data.order,
link: "",
numRecentReplies: 2,
"class": 'col-md-3 col-xs-6'
class: 'col-md-3 col-xs-6',
imageClass: 'default'
};
db.setObject('category:' + cid, category, function(err, data) {

Loading…
Cancel
Save