oc-content/themes/veronika/functions.php
// FLAT CATEGORIES SELECT (Publish)
FLAT CATEGORIES SELECT (Publish)
FLAT CATEGORIES SELECT ( Publish )
function veronika_flat_category_select(){  
  $root = Category::newInstance()->findRootCategoriesEnabled();
  $html = '<div class="category-box tr1">';
  foreach( $root as $c ) {
    $html .= '<div class="option tr1" style="background:' . veronika_get_cat_color( $c['pk_i_id'] ) . ';">' . veronika_get_cat_icon( $c['pk_i_id'] ) . '</div>';
  }
  $html .= '</div>';
  return $html;
}
function veronika_flat_category_select ( ) { $ root = Category :: newInstance ( ) -> findRootCategoriesEnabled ( ) ; $ html = '<div class="category-box tr1">' ; foreach ( $ root as $ c ) { $ html .= '<div class="option tr1" style="background:' . veronika_get_cat_color ( $ c [ 'pk_i_id' ] ) . ';">' . veronika_get_cat_icon ( $ c [ 'pk_i_id' ] ) . '</div>' ; } $ html .= '</div>' ; return $ html ; }
FLAT CATEGORIES SELECT (Publish)
FLAT CATEGORIES SELECT ( Publish )