403Webshell
Server IP : 104.21.74.147  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/views/partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/views/partials/icon.php
<?php

// =============================================================================
// VIEWS/PARTIALS/ICON.PHP
// -----------------------------------------------------------------------------
// Icon partial.
// =============================================================================

use Themeco\Cornerstone\Services\FontAwesome;

$atts        = ( isset( $atts )          ) ? $atts          : array();
$classes     = ( isset( $classes )       ) ? (array)$classes       : array();
$custom_atts = ( isset( $custom_atts )   ) ? $custom_atts   : null;

$icon_tag = ( isset( $icon_tag )   ) ? $icon_tag : 'span';

$icon_source = ( isset( $icon_source ) ) ? $icon_source : 'fontawesome';
$icon_raw_svg = ( isset( $icon_raw_svg ) ) ? $icon_raw_svg : '';

$icon = cs_dynamic_content( $icon );
$icon_type = ( isset( $icon_type ) && FontAwesome::hasIndividualLoadTypes()  )
  ? $icon_type
  : FontAwesome::getDefaultLoadType();

// Prepare Attr Values
// -------------------

$_classes = [ 'x-icon' ];

if (isset( $atts['class'])) {
  if (is_array( $atts['class'] ) ) {
    $_classes = array_merge( $_classes, $atts['class']);
  } else {
    $_classes[] = $atts['class'];
  }
  unset($atts['class']);
}


// Prepare Atts
// ------------

$atts = array_merge( $atts, array(
  'class'       => array_merge( $_classes, $classes ),
  'aria-hidden' => 'true',
) );

$icon_data                = fa_get_attr( $icon );
$atts[$icon_data['attr']] = $icon_data['entity'];

if ( isset( $id ) && ! empty( $id ) ) {
  $atts['id'] = $id;
}

if ( isset( $style ) && ! empty( $style ) ) {
  $atts['style'] = $style;
}

$atts = cs_apply_effect( $atts, $_view_data );


// Raw SVG output
if ($icon_source === 'raw') {
  unset($atts[$icon_data['attr']]);
  echo cs_tag( $icon_tag, $atts, $custom_atts, $icon_raw_svg );
  return;
}

// SVG output
// URL Image
// Unused currently
if ($icon_type === "svg_image") {
  // Unset data attribute for icon
  unset($atts[$icon_data['attr']]);

  $svgPath = fa_get_svg_path($icon);
  $atts['src'] = $svgPath;

  echo cs_tag( 'img', $atts, $custom_atts, true);
  return;
}

// SVG element output
if ($icon_type === "svg") {
  $svgElement = fa_get_svg_output($icon);

  // Unset data attribute for icon
  unset($atts[$icon_data['attr']]);
  $effects = cs_apply_effect([], $_view_data);

  // Output inside div for better styling
  echo cs_tag( $icon_tag, $atts, $custom_atts, $svgElement);
  return;
}


// Output <i> glyph
// ------

// Load webfonts if not already
FontAwesome::setShouldAddStyles();

echo cs_tag( 'i', $atts, $custom_atts, '');

Youez - 2016 - github.com/yon3zu
LinuXploit