HEX
Server: Apache
System: Linux cpanel.classit.ro 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User: contexpert (1050)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/contexpert/public_html/wp-content/themes/contexpertaudit/sidebar-footer.php
<?php
global $theme_sidebars;
$places = array();
foreach ($theme_sidebars as $sidebar){
    if ($sidebar['group'] !== 'footer')
        continue;
    $widgets = theme_get_dynamic_sidebar_data($sidebar['id']);
    if (!is_array($widgets) || count($widgets) < 1)
        continue;
    $places[$sidebar['id']] = $widgets;
}
$place_count = count($places);
$needLayout = ($place_count > 1);
if (theme_get_option('theme_override_default_footer_content')) {
    if ($place_count > 0) {
        $centred_begin = '<div class="con-center-wrapper"><div class="con-center-inner">';
        $centred_end = '</div></div><div class="clearfix"> </div>';
        if ($needLayout) { ?>
<div class="con-content-layout">
    <div class="con-content-layout-row">
        <?php 
        }
        foreach ($places as $widgets) { 
            if ($needLayout) { ?>
            <div class="con-layout-cell con-layout-cell-size<?php echo $place_count; ?>">
            <?php 
            }
            $centred = false;
            foreach ($widgets as $widget) {
                 $is_simple = ('simple' == $widget['style']);
                 if ($is_simple) {
                     $widget['class'] = implode(' ', array_merge(explode(' ', theme_get_array_value($widget, 'class', '')), array('con-footer-text')));
                 }
                 if (false === $centred && $is_simple) {
                     $centred = true;
                     echo $centred_begin;
                 }
                 if (true === $centred && !$is_simple) {
                     $centred = false;
                     echo $centred_end;
                 }
                 theme_print_widget($widget);
            } 
            if (true === $centred) {
                echo $centred_end;
            }
            if ($needLayout) {
           ?>
            </div>
        <?php 
            }
        } 
        if ($needLayout) { ?>
    </div>
</div>
        <?php 
        }
    }
?>
<div class="con-footer-text">
<?php
global $theme_default_options;
echo do_shortcode(theme_get_option('theme_override_default_footer_content') ? theme_get_option('theme_footer_content') : theme_get_array_value($theme_default_options, 'theme_footer_content'));
} else { 
?>
<div class="con-footer-text">

<div class="con-content-layout">
    <div class="con-content-layout-row">
    <div class="con-layout-cell layout-item-0" style="width: 50%">
        <p><br></p>
        <p><br></p><p>Copyright © 2014. <a href="<?php theme_ob_start() ?>[post_link name='/acasa']<?php echo do_shortcode(theme_ob_get_clean()) ?>">CONTEXPERT &amp; AUDIT S.R.L.</a></p>
        <p><br></p>
    </div><div class="con-layout-cell layout-item-0" style="width: 50%">
        <p style="float:right;"><a href="#"></a><a href="#"><img width="64" height="64" alt="" src="<?php echo get_template_directory_uri() ?>/images/facebook-icon.png" class=""></a><a href="#"><img width="64" height="64" alt="" src="<?php echo get_template_directory_uri() ?>/images/twitter-icon.png" class=""></a></p>
    </div>
    </div>
</div>

  
<?php } ?>

</div>