public function get_cell_info($template) { $template['cell-image-url'] = DDL_ICONS_SVG_REL_PATH . 'post-loop-cell.svg'; // $template['preview-image-url'] = WPDDL_RES_RELPATH . '/images/child-layout.png'; $template['name'] = sprintf(__('Blog', 'ddl-layouts'), ''); $template['description'] = __('Display a WordPress ‘posts loop’ using styling from the theme. You need to include this cell, or a WordPress Archive cell, in layouts used for the blog, archives, search and other pages that display WordPress content lists.', 'ddl-layouts'); $template['button-text'] = __('Assign Post Loop cell', 'ddl-layouts'); $template['dialog-title-create'] = __('Create a Post Loop cell', 'ddl-layouts'); $template['dialog-title-edit'] = __('Edit Post Loop cell', 'ddl-layouts'); $template['dialog-template'] = $this->_dialog_template(); $template['allow-multiple'] = false; $template['cell-class'] = 'post-loop-cell'; $template['category'] = sprintf(__('%s elements', 'ddl-layouts'), WPDD_Layouts::get_theme_name()); $template['preview-image-url'] = DDL_ICONS_PNG_REL_PATH . 'post-loop_expand-image.png'; $template['has_settings'] = false; return $template; }
public function get_cell_info($template) { $template['cell-image-url'] = DDL_ICONS_SVG_REL_PATH . 'post-content.svg'; $template['preview-image-url'] = DDL_ICONS_PNG_REL_PATH . 'post-content_expand-image.png'; $template['name'] = sprintf(__('Post', 'ddl-layouts'), ''); $template['description'] = __('Display the content of a page, post or custom type using styling from the theme.', 'ddl-layouts'); $template['button-text'] = __('Assign Post content Box', 'ddl-layouts'); $template['dialog-title-create'] = __('Create a new Post content Cell', 'ddl-layouts'); $template['dialog-title-edit'] = __('Edit Post content Cell', 'ddl-layouts'); $template['dialog-template'] = $this->_dialog_template(); $template['category'] = sprintf(__('%s elements', 'ddl-layouts'), WPDD_Layouts::get_theme_name()); $template['has_settings'] = false; return $template; }