-
نصب مد تولد فقط بله يا خير؟
با سلام آيا بايد اين كد داخل قالب جاي گزين كنم
کد:
<!-- Sources/BoardIndex.php -->
<file name="$sourcedir/BoardIndex.php">
<operation>
<search position="before"><![CDATA[for ($i = 0, $n = count($context['calendar_birthdays']); $i < $n; $i++)
$context['calendar_birthdays'][$i]['is_last'] = !isset($context['calendar_birthdays'][$i + 1]);]]></search>
<add><![CDATA[
// separate todays from upcoming birthdays
if (!empty($context['calendar_birthdays']))
{
$context['bdays'] = array(
'today' => array(),
'soon' => array(),
);
foreach ($context['calendar_birthdays'] as $member)
{
if ($member['is_today'])
$context['bdays']['today'][] = '<a href="'. $scripturl. '?action=profile;u='. $member['id']. '">'.
(!empty($member['color']) ? '<span style="color: '. $member['color']. ';">' : '') . '<b>' .$member['name'] . '</b>' .
(isset($member['age']) ? '(' . $member['age'] . ')' : '') . (!empty($member['color']) ? '</span>' : '') . '</a>';
else
$context['bdays']['soon'][] = '<a href="'. $scripturl. '?action=profile;u='. $member['id']. '">' .
(!empty($member['color']) ? '<span style="color: '. $member['color']. ';">' : ''). $member['name'] .
(isset($member['age']) ? '(' . $member['age'] . ')' : '') . (!empty($member['color']) ? '</span>' : '') . '</a>';
}
}]]></add>
</operation>
<operation>
<search position="before"><![CDATA[for ($i = 0, $n = count($context['calendar_events']); $i < $n; $i++)
$context['calendar_events'][$i]['is_last'] = !isset($context['calendar_events'][$i + 1]);]]></search>
<add><![CDATA[
// separate Todays from upcoming events
if (!empty($context['calendar_events']))
{
$context['events'] = array(
'today' => array(),
'soon' => array(),
);
foreach ($context['calendar_events'] as $event)
{
if ($event['is_today'])
$context['events']['today'][] = ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '').
($event['href'] == '' ? '' : '<a href="' . $event['href'] . '">') . '<strong>' . $event['title'] . '</strong>' . ($event['href'] == '' ? '' : '</a>');
else
$context['events']['soon'][] = ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '').
($event['href'] == '' ? '' : '<a href="' . $event['href'] . '">') . $event['title'] . ($event['href'] == '' ? '' : '</a>');
}
}]]></add>
</operation>
</file>
<!-- default/BoardIndex.template.php -->
مي شود بگويد كدام فايل و كداكم خط و چگونه قالب من outline
راستي داخل چيز كه نمي خواهد قار بدهم همين فقط كپي كنم درسته
متشكر مي شوم من راهنمايي كنيد
يا حق
جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.
-
-
10-07-2009 07:13 AM
# ADS
تبلیغات در جوملا فارسی
علاقه مندی ها (Bookmarks)