Skip to main content
Toggle navigation menu
Home
Submit a Request
Sign in
Categories
Search
Welcome to the Pixami Support Center! How Can We Help?
Video Tutorials
Yearbook Pro Tutorials
Sales
The Sales page in Pixami Yearbook Pro.
Comments
0 comments
Please
sign in
to leave a comment.
<% if (typeof categoryId !== undefined) { var sectionIds = sections .filter(function(section) { return section['category_id'] === categoryId; }) .map(function(section) { return section.id }); articles = articles.filter(function(article) { return sectionIds.indexOf(article['section_id']) !== -1; }); } var promotedArticles = articles.filter(function(article) { return article.promoted; }); %> <% if (promotedArticles.length) { %>
Popular articles
<%= partial('article-list-partial-general', { articles: promotedArticles }) %>
<% } %>
<% if (articles.length) { %>
<% articles.forEach(function(article) { %>
<%= article.title %>
<% }); %>
<% } %>
<% if (articles.length) { %>
<% articles.forEach(function(article) { %>
<%= article.title %>
<%= Util.getExcerpt(article.body, 0) %>
<% }) %>
<% } else { %>
empty
<% } %>
Categories
<% categories.forEach(function(category, index) { %>
<%= category.name %>
<%= partial('partial-article-list-sections', { id: 'category-' + category.id, parentId: '#sidebar-article-navigation', sections: category.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %>
<% }); %>
<% var maxSections = 5 %>
Toggle navigation menu
<% categories.forEach(function(category, index) { %>
<%= category.name %>
<%= partial('partial-section-list-sections', { parent: category, sections: category.sections, maxSections: maxSections, partial: partial }) %>
<% }); %>
Categories
Categories
<% categories.forEach(function(category) { %>
<%= category.name %>
<% }); %>
<% if (sections.length) { %>
<% sections.slice(0, maxSections).forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-section-list-sections', { parent: section, sections: section.sections, maxSections: maxSections, partial: partial }) %>
<% }); %> <% if (sections.length > maxSections) { %>
See more
<% } %>
<% } %>
<% if (sections.length) { %>
<% sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-article-list-sections', { id: 'section-' + section.id, parentId: '#' + id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.forEach(function(article) { %>
<%= article.title %>
<% }); %>
<% } %>
<% }); %>
<% } %>
Comments
0 comments
Please sign in to leave a comment.