';
foreach( $box[ 'sett' ] as $slug ){
/* GET FIELDS */
if( isset( $sett[ $slug ] ) ){
$sett[ $slug ][ 'slug' ] = $slug;
$sett[ $slug ][ 'default' ] = mythemes_options::def( $slug );
$sett[ $slug ][ 'value' ] = mythemes_options::set_validate( $sett[ $slug ] , mythemes_options::val( $slug ) );
$rett .= self::field( $sett[ $slug ] );
}
/* IF NOT EXISTS SLUG */
else{
ob_start();
print_r( $sett );
$data = ob_get_clean();
$bt = debug_backtrace();
$caller = array_shift( $bt );
$result = '
' . $caller[ 'file' ] . ' : ' . $caller[ 'line' ];
$result .= '
Field not exist : [ ' . $slug . ' ]';
$result .= '
' . $data .'';
}
}
$rett .= ' ';
$rett .= '';
return $rett;
}
static function boxTitle( $box )
{
$rett = '';
if( isset( $box[ 'title' ] ) ){
$rett .= '';
}
return $rett;
}
static function boxStyle( $box )
{
$rett = '';
if( isset( $box[ 'top' ] ) ){
$rett = 'margin-top: ' . $box[ 'top' ] . 'px;';
}
if( isset( $box[ 'bottom' ] ) ){
$rett .= 'margin-bottom: ' . $box[ 'bottom' ] . 'px;';
}
if( !empty( $rett ) ){
$rett = ' style="' . $rett . '"';
}
return $rett;
}
/* FIELD */
static function field( $sett )
{
if( isset( $sett[ 'type' ][ 'field' ] ) && method_exists( new mythemes_ahtml() , $sett[ 'type' ][ 'field' ] ) ) {
return call_user_func_array( array( new mythemes_ahtml() , $sett[ 'type' ][ 'field' ] ) , array( $sett ) );
}
else{
ob_start();
print_r( $sett );
$data = ob_get_clean();
$bt = debug_backtrace();
$caller = array_shift( $bt );
$result = '';
$rett .= '
';
$rett .= self::label( $sett );
$rett .= self::hint( $sett );
$rett .= '
';
$rett .= '
';
$rett .= call_user_func_array( array( new mythemes_ahtml() , $type ) , array( $sett ) );
$rett .= '
';
$rett .= '
';
$rett .= '
';
}
return $rett;
}
static function inline( $sett )
{
$type = null;
if( method_exists( new mythemes_ahtml() , $sett[ 'type' ][ 'input' ] ) )
$type = $sett[ 'type' ][ 'input' ];
$rett = '';
if( !empty( $type ) ){
$rett .= '';
$rett .= '
';
$rett .= self::label( $sett );
$rett .= self::hint( $sett );
$rett .= '
';
$rett .= '
';
$rett .= call_user_func_array( array( new mythemes_ahtml() , $type ) , array( $sett ) );
$rett .= '
';
$rett .= '
';
$rett .= '
';
}
return $rett;
}
static function social( $sett )
{
$type = null;
if( method_exists( new mythemes_ahtml() , $sett[ 'type' ][ 'input' ] ) )
$type = $sett[ 'type' ][ 'input' ];
$rett = '';
if( !empty( $type ) ){
$rett .= '';
$rett .= '
';
$rett .= '';
$rett .= '
';
$rett .= '
';
$rett .= call_user_func_array( array( new mythemes_ahtml() , $type ) , array( $sett ) );
$rett .= '
';
$rett .= '
';
$rett .= '
';
}
return $rett;
}
static function none( $sett )
{
$rett = null;
if( isset( $sett[ 'content' ] ) )
$rett = $sett[ 'content' ];
return $rett;
}
static function label( $sett )
{
$rett = '';
if( isset( $sett[ 'label' ] ) )
$rett = ''
. $title
. $content
. '
';
}
/* URL */
static function url( $sett )
{
return '