/home/vianto5/ceibaresidencial.mx/wp-content/plugins/olympus-google-fonts/lib/src
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/plugins/olympus-google-fonts/lib/src/Components.php (9035B)
$options );
} elseif ( ! is_array( $options ) ) {
$options = array();
}
$options = array_merge(
array(
'header_meta' => '',
'wrap_body' => true,
'class' => '',
),
$options
);
$class = 'pln-card';
if ( $options['class'] ) {
$class .= ' ' . $options['class'];
}
echo '
';
if ( $title ) {
echo '';
}
if ( is_callable( $content ) ) {
if ( $options['wrap_body'] ) {
echo '
';
call_user_func( $content );
echo '
';
} else {
call_user_func( $content );
}
} elseif ( is_string( $content ) ) {
if ( $options['wrap_body'] ) {
echo '
' . wp_kses_post( $content ) . '
';
} else {
echo wp_kses_post( $content );
}
}
echo '
';
}
/**
* @deprecated Cards auto-close since Plinth 0.1. No longer needed.
* @return void
*/
public static function card_close() {
}
/**
* Render a recommendation row.
*
* @param string $severity 'low', 'medium', or 'high'.
* @param string $icon Icon name from the Shell icon set.
* @param string $title Row title.
* @param string $desc Row description.
* @param string $action Action button HTML (pre-escaped), or empty for no action.
* @param string $badge_html Optional badge HTML to append after the title (e.g. PRO badge).
* @return void
*/
public static function recommendation_row( $severity, $icon, $title, $desc, $action = '', $badge_html = '' ) {
$valid = array( 'low', 'medium', 'high' );
if ( ! in_array( $severity, $valid, true ) ) {
$severity = 'low';
}
$icon_map = array(
'low' => 'check',
'medium' => 'package',
'high' => 'zap',
);
if ( ! $icon ) {
$icon = $icon_map[ $severity ];
}
?>
array(
'href' => true,
'class' => true,
),
'button' => array(
'type' => true,
'class' => true,
'data-pro-trigger' => true,
'data-feature' => true,
'data-desc' => true,
'data-goto-tab' => true,
),
)
);
?>
';
}
/**
* Close a stats grid container.
*
* @return void
*/
public static function stats_grid_close() {
echo '
';
}
/**
* Open a diagnostics grid container.
*
* @return void
*/
public static function diag_grid_open() {
echo '';
}
/**
* Close a diagnostics grid container.
*
* @return void
*/
public static function diag_grid_close() {
echo '
';
}
/**
* Render a section label divider.
*
* @param string $label Section label text.
* @return void
*/
public static function section_label( $label ) {
echo '' . esc_html( $label ) . '
';
}
/**
* Render a button element.
*
* @param string $label Button text.
* @param array $attrs HTML attributes as name => value pairs.
* @return void
*/
public static function button( $label, $attrs = array() ) {
$defaults = array(
'type' => 'button',
'class' => 'pln-btn--outline',
'id' => '',
);
$attrs = array_merge( $defaults, $attrs );
$attr_str = '';
foreach ( $attrs as $name => $val ) {
if ( '' !== $val ) {
$attr_str .= ' ' . esc_attr( $name ) . '="' . esc_attr( $val ) . '"';
}
}
echo '