HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/diasporameetsafrica.com/wp-content/plugins/lavelo-core/kc/kc-setup.php
<?php

function lavelo_all_shortcodes() {
  $dirs = glob( LAVELO_KC_SHORTCODE_PATH . '*', GLOB_ONLYDIR );
  if ( !$dirs ) return;
  foreach ($dirs as $dir) {
    $dirname = basename( $dir );

    /* Include all shortcodes backend options file */
    $options_file = $dir . DS . $dirname . '-options.php';
    $options = array();
    if ( file_exists( $options_file ) ) {
      include_once( $options_file );
    } else {
      continue;
    }

    /* Include all shortcodes frondend options file */
    $shortcode_class_file = $dir . DS . $dirname .'.php';
    if ( file_exists( $shortcode_class_file ) ) {
      include_once( $shortcode_class_file );
    }
  }
}
if ( is_plugin_active('kingcomposer/kingcomposer.php') || is_plugin_active('kingcomposer-master/kingcomposer.php') ) {
  lavelo_all_shortcodes();
}