Hallo ich hätte da eine frage zu einem Framework und zwar zu diesem dort gibt es diese option

Das ist ein Sotier System und zwar hab ich es so gemacht das Twitter = a Youtbe = b und Facebook = c ist ich kann diese auch auslesen und will dan meine Siedebar dementsprechend anordnen.
Ich habe bisher vollgenden code
PHP
<?php
$place = 'placebo';
$layout = $data[$var . 'anordnung'] ['enabled'];
$a_2 = '
<ul class="subscription">
<li>
<a href="http://twitter.com/Ste3et_C0st">
<img alt="DicecraftTwitter" src="'.get_stylesheet_directory_uri().'/images/sozial/twitter.png"/>
</a>
<h4>
<a href="http://twitter.com/Ste3et_C0st">Ste3et_C0st</a>
</h4>
<p>Folge Ste3et_C0st</p>
</li>
</ul>';
$b_2 = '
<ul class="subscription">
<li>
<a href="http://facebook.com/Dicecraft">
<img alt="DicecraftFacebook" src="'.get_stylesheet_directory_uri().'/images/sozial/facebook.png"/>
</a>
<h4>
<a href="http://facebook.com/Dicecraft">Dicecraft</a>
</h4>
<p>Dicecraft Facebook Page</p>
</li>
</ul>';
$c_2 = '
<ul class="subscription">
<li>
<a href="http://youtube.com/Zangentsu2">
<img alt="DicecraftYoutube" src="'.get_stylesheet_directory_uri().'/images/sozial/youtube.png"/>
</a>
<h4>
<a href="http://youtube.com/Zangentsu2">Ste3et_C0st</a>
</h4>
<p>Ste3et_C0st Youtube</p>
</li>
</ul>';
if ($layout){
foreach ($layout as $key=>$value) {
switch($key) {
case 'block_one';
break;
case 'block_two';
break;
}
$filter_1 = explode($place, $key);
$filter = $filter_1[0] . $filter_1[1] . $filter_1[2];
echo $filter;
$a_1 = "";
$b_1 = "";
$c_1 = "";
if($filter == 'abc'){
$a_1 = $a_2;
$b_1 = $b_2;
$c_1 = $c_2;
}
if($filter == 'ab'){
$a_1 = $a_2;
$b_1 = $b_2;
}
if($filter == 'a'){
$a_1 = $a_2;
}
if($filter == 'bc'){
$b_1 = $b_2;
$c_1 = $c_2;
}
if($filter == 'b'){
$b_1 = $b_2;
}
if($filter == 'c'){
$c_1 = $c_2;
}
if($filter == 'ac'){
$a_1 = $a_2;
$c_1 = $c_2;
}
if($filter == 'bca'){
$a_1 = $b_2;
$b_1 = $c_2;
$c_1 = $a_2;
}
if($filter == 'ba'){
$a_1 = $b_2;
$b_1 = $a_2;
}
if($filter == 'cba'){
$a_1 = $c_2;
$b_1 = $b_2;
$c_1 = $a_2;
}
if($filter == 'ca'){
$a_1 = $c_2;
$b_1 = $a_2;
}
if($filter == 'cb'){
$b_1 = $c_2;
$c_1 = $b_2;
}
echo $a_1;
echo $b_1;
echo $c_1;
}
}
?>
Alles anzeigen
Ich bekomm leider nur lauter Müll zurück kann mir jemand helfen ??
Ich will es halt sotieren also wenn z.b abc ist soll
Twitter
Youtube
Facebook
angezeigt werden und bei ba
Youtube
Twitter
Ich hoffe man versteht es.