我正在努力完成以下任务:
以下是具有虚拟变量和数据的逻辑示例:
---定义每个设定---
SET 1 {
title1 = Sample School
text1 = School is great
link1 = school-page.php
}
SET 2 {
title2 = Sample Business
text2 = Business is great
link2 = biz-page.php
}
SET 3 {
title3 = Sample Organization
text2 = Organization is great
link3 = org-page.php
}
---在页面中选择SET的输出变量---
<h1><?php echo $title(from selected set) ?></h2>
<p><?php echo $text(from selected set) ?></p>
<div>Visit page <a href="<?php echo $link(from selected set) ?>">here</a></div>