Hello mark and the community,
I am still playing (or fighting
) with code and realize that i am really not skilled
to extend by default the user profil details submenu in profile view :
I have took this code from /components/com_easysocial/themes/wireframe/profile/
default.about.php
<?php if( $steps ){ ?>
<?php $i = 0; ?>
<?php foreach( $steps as $step ){ ?>
<?php if( !$step->hide ) { ?>
<li class="tab-item<?php echo $i == 0 ? ' active' : '';?>" data-profile-about-step-item data-for="<?php echo $step->id; ?>">
<a href="javascript:void(0);"><?php echo $step->get( 'title' ); ?></a>
</li>
<?php } ?>
<?php $i++; ?>
<?php } ?>
<?php } ?>
and tried to insert in /components/com_easysocial/themes/wireframe/profile/
default.php
instead of :
<?php if (!empty($infoSteps)) { ?>
<?php foreach ($infoSteps as $step) { ?>
<?php if (!$step->hide) { ?>
<li
class="<?php if ($step->active) { ?>active<?php } ?>"
data-profile-apps-item
data-layout="custom"
>
<a class="ml-20" href="<?php echo $step->url; ?>" title="<?php echo $step->title; ?>" data-info-item data-info-index="<?php echo $step->index; ?>">
<i class="ies-info ies-small mr-5"></i> <?php echo $step->title; ?>
</a>
</li>
<?php } ?>
<?php } ?>
<?php } ?>
to extend by default the user profil details submenu in profile view...
but it doesn't work because of unknown variables and invalid foreach...
Can someone suggest me some changes to reach my need ???
or is it impossible way ?
thanks in advance
Loïc