示例#1
0
    $title = $data[1]->title;
    $element1 = $data[1]->element1;
    $element2 = $data[1]->element2;
    $element3 = $data[1]->element3;
    $element4 = $data[1]->element4;
    $element5 = $data[1]->element5;
    $element6 = $data[1]->element6;
    $element7 = $data[1]->element7;
    $element8 = $data[1]->element8;
    $element9 = $data[1]->element9;
    $element10 = $data[1]->element10;
    $element11 = $data[1]->element11;
    $element12 = $data[1]->element12;
}
if (!empty($element1)) {
    $textblock1 = $home_instance->get_element($element1);
}
if (!empty($element2)) {
    $textblock2 = $home_instance->get_element($element2);
}
if (!empty($element3)) {
    $textblock3 = $home_instance->get_element($element3);
}
if (!empty($element4)) {
    $textblock4 = $home_instance->get_element($element4);
}
if (!empty($element5)) {
    $textblock5 = $home_instance->get_element($element5);
}
if (!empty($element6)) {
    $textblock6 = $home_instance->get_element($element6);