';
echo '
';
echo ' ';
if ( $section['callback'] )
call_user_func( $section['callback'], $section );
if ( $section['id'] != 'status_report' ) {
echo '
';
}
echo '
';
echo '';
}
}
/**
* Render custom settings fields for a particular section
*
* @since Orbit 1.1.0
*/
function orbit_do_settings_fields($page, $section) {
global $wp_settings_fields;
if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section]) )
return;
foreach ( (array) $wp_settings_fields[$page][$section] as $field ) {
if ( strpos( $field['id'], 'slide_' ) === false)
$classes = '';
else
$classes = substr_replace( $field['id'], "", -2);
if ( (strpos( $field['id'], 'slide_text' ) === false ) && ( strpos( $field['id'], 'show_posts' ) === false) )
$classes .= '';
else
$classes .= ' ' . $field['id'];
if ( $classes != '' )
$custom_class = 'class="' . $classes . '"';
else
$custom_class = '';
echo '';
if ( !empty($field['args']['label_for']) )
echo ' | ';
else
echo '' . $field['title'] . ' | ';
echo '';
call_user_func( $field['callback'], $field['args'] );
echo ' | ';
echo '
';
}
}
/**
* Create the options page
*
* @since Orbit 1.0.0
*/
function orbit_options_do_page() {
?>
get_item_quantity( 10 );
$news_items = $orbit_news->get_items( 0, $maxitems );
}
?>
' . __( 'No news items.', 'orbit' ) . ''; else :
foreach( $news_items as $news_item ) : ?>
-
get_date( get_option( 'date_format' ) ); ?>
get_description() ), 20, '...' ) ; ?>
|
: |
|
: |
|
: |
|
: |
|
: |
|
: |
|
: |
db_version(); ?> |
: |
', $wc_plugins );
?>
|