oc-content/themes/veronika/functions.php
// SIMPLE PRICE TYPE SELECT (publish)
SIMPLE PRICE TYPE SELECT (publish)
SIMPLE PRICE TYPE SELECT ( publish )
function veronika_simple_price_type() {
  $item = osc_item(); 
  if( isset($item['i_price']) ) {
    if( $item['i_price'] > 0 ) {
      $default_key = 0;
      $default_name = '<i class="fa fa-pencil help"></i> ' . __('Enter price', 'veronika');
    } else if( $item['i_price'] == 0 ) {
      $default_key = 1;
      $default_name = '<i class="fa fa-cut help"></i> ' . __('Free', 'veronika');
    } else if( $item['i_price'] == '' ) {
      $default_key = 2;
      $default_name = '<i class="fa fa-phone help"></i> ' . __('Check with seller', 'veronika');
    } 
  } else {
    $default_key = 0;
    $default_name = '<i class="fa fa-pencil help"></i> ' . __('Enter price', 'veronika');
  }
  $html  = '<div class="simple-price-type simple-select">';
  $html .= '<span class="text round3 tr1"><span>' . $default_name . '</span> <i class="fa fa-angle-down"></i></span>';
  $html .= '<div class="list">';
  $html .= '<div class="option info">' . __('Choose price type', 'veronika') . '</div>';
  $html .= '<div class="option' . ($default_key == 0 ? ' selected' : '') . '" data-id="0"><i class="fa fa-pencil help"></i> ' . __('Enter price', 'veronika') . '</span></div>';
  $html .= '<div class="option' . ($default_key == 1 ? ' selected' : '') . '" data-id="1"><i class="fa fa-cut help"></i> ' . __('Free', 'veronika') . '</span></div>';
  $html .= '<div class="option' . ($default_key == 2 ? ' selected' : '') . '" data-id="2"><i class="fa fa-phone help"></i> ' . __('Check with seller', 'veronika') . '</span></div>';
  $html .= '</div>';
  $html .= '</div>';
  return $html;
}
function veronika_simple_price_type ( ) { $ item = osc_item ( ) ; if ( isset ( $ item [ 'i_price' ] ) ) { if ( $ item [ 'i_price' ] > 0 ) { $ default_key = 0 ; $ default_name = '<i class="fa fa-pencil help"></i> ' . __ ( 'Enter price' , 'veronika' ) ; } else if ( $ item [ 'i_price' ] == 0 ) { $ default_key = 1 ; $ default_name = '<i class="fa fa-cut help"></i> ' . __ ( 'Free' , 'veronika' ) ; } else if ( $ item [ 'i_price' ] == '' ) { $ default_key = 2 ; $ default_name = '<i class="fa fa-phone help"></i> ' . __ ( 'Check with seller' , 'veronika' ) ; } } else { $ default_key = 0 ; $ default_name = '<i class="fa fa-pencil help"></i> ' . __ ( 'Enter price' , 'veronika' ) ; } $ html = '<div class="simple-price-type simple-select">' ; $ html .= '<span class="text round3 tr1"><span>' . $ default_name . '</span> <i class="fa fa-angle-down"></i></span>' ; $ html .= '<div class="list">' ; $ html .= '<div class="option info">' . __ ( 'Choose price type' , 'veronika' ) . '</div>' ; $ html .= '<div class="option' . ( $ default_key == 0 ? ' selected' : '' ) . '" data-id="0"><i class="fa fa-pencil help"></i> ' . __ ( 'Enter price' , 'veronika' ) . '</span></div>' ; $ html .= '<div class="option' . ( $ default_key == 1 ? ' selected' : '' ) . '" data-id="1"><i class="fa fa-cut help"></i> ' . __ ( 'Free' , 'veronika' ) . '</span></div>' ; $ html .= '<div class="option' . ( $ default_key == 2 ? ' selected' : '' ) . '" data-id="2"><i class="fa fa-phone help"></i> ' . __ ( 'Check with seller' , 'veronika' ) . '</span></div>' ; $ html .= '</div>' ; $ html .= '</div>' ; return $ html ; }
SIMPLE PRICE TYPE SELECT (publish)
SIMPLE PRICE TYPE SELECT ( publish )
// Item edit // Item publish