-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoniacon1_events.php
42 lines (37 loc) · 1.62 KB
/
soniacon1_events.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
//BindEvents Method @1-C776D2A1
function BindEvents()
{
global $saconsult;
$saconsult->CCSEvents["BeforeShowRow"] = "saconsult_BeforeShowRow";
}
//End BindEvents Method
//saconsult_BeforeShowRow @6-95C1ECAB
function saconsult_BeforeShowRow(& $sender)
{
$saconsult_BeforeShowRow = true;
$Component = & $sender;
$Container = & CCGetParentContainer($sender);
global $saconsult; //Compatibility
//End saconsult_BeforeShowRow
//Gallery Layout @9-6715D311
$NumberOfColumns = $Component->Attributes->GetText("numberOfColumns");
if (isset($Component->RowOpenTag))
$Component->RowOpenTag->Visible = ($Component->RowNumber % $NumberOfColumns) == 1;
if (isset($Component->AltRowOpenTag))
$Component->AltRowOpenTag->Visible = ($Component->RowNumber % $NumberOfColumns) == 1;
if (isset($Component->RowCloseTag))
$Component->RowCloseTag->Visible = (($Component->RowNumber % $NumberOfColumns) == 0);
if (isset($Component->AltRowCloseTag))
$Component->AltRowCloseTag->Visible = (($Component->RowNumber % $NumberOfColumns) == 0);
if (isset($Component->RowComponents))
$Component->RowComponents->Visible = !$Component->ForceIteration;
if (isset($Component->AltRowComponents))
$Component->AltRowComponents->Visible = !$Component->ForceIteration;
$Component->ForceIteration = (($Component->RowNumber >= $Component->PageSize) || !$Component->DataSource->has_next_record()) && ($Component->RowNumber % $NumberOfColumns);
//End Gallery Layout
//Close saconsult_BeforeShowRow @6-00D95AF5
return $saconsult_BeforeShowRow;
}
//End Close saconsult_BeforeShowRow
?>