} else {
            $eventIcon = 'icon_event_B.gif';
            $eventAlt = '[イ]';
        }
        ?>
<p class="event"><?php 
        echo link_to(sprintf('<span class="icon">%s </span>%s', image_tag('/opCalendarPlugin/images/' . $eventIcon, array('alt' => $eventAlt)), op_truncate($event['name'], 20, '...', 1)), '@communityEvent_show?id=' . $event['id']);
        ?>
</p>
<?php 
    }
    foreach ($item['schedules'] as $schedule) {
        if ($schedule->isShowable($sf_user->getMemberId())) {
            ?>
<p class="schedule"><?php 
            echo op_link_to_schedule($schedule, 20);
            ?>
</p>

<?php 
        }
    }
    ?>
</td>
<?php 
}
?>

</tr>
</tbody></table>
Beispiel #2
0
            } else {
                $eventIcon = 'icon_event_B.gif';
                $eventAlt = '[イ]';
            }
            ?>
<p class="event"><?php 
            echo link_to(sprintf('<span class="icon">%s </span>%s', image_tag('/opCalendarPlugin/images/' . $eventIcon, array('alt' => $eventAlt)), op_truncate($event['name'], 40, '...', 1)), '@communityEvent_show?id=' . $event['id']);
            ?>
</p>
<?php 
        }
        foreach ($item['schedules'] as $schedule) {
            if ($schedule->isShowable($sf_user->getMemberId())) {
                ?>
<p class="schedule"><?php 
                echo op_link_to_schedule($schedule);
                ?>
</p>
<?php 
            }
        }
        ?>
</td>
<?php 
    }
    ?>

</tr>
<?php 
}
?>