ensure the main links render the same in the inline and the preview
This commit is contained in:
parent
24d3f87e29
commit
6e1edfea9a
@ -102,7 +102,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
protected function BeforeContent()
|
||||
private function renderMainLink()
|
||||
{
|
||||
if ($this->ShowURL)
|
||||
{
|
||||
@ -130,6 +130,11 @@
|
||||
{
|
||||
echo ("<span class=\"apb-text\">" . $this->Text . "</span>");
|
||||
}
|
||||
}
|
||||
|
||||
protected function BeforeContent()
|
||||
{
|
||||
$this->renderMainLink();
|
||||
|
||||
echo("<a class=\"apb-button\" href=\"#\" tabindex=\"-1\"> </a>");
|
||||
|
||||
@ -162,20 +167,7 @@
|
||||
echo("<h2>");
|
||||
echo("<span class=\"apb-class-title\">" . $this->ClassTitle . "</span>");
|
||||
|
||||
echo("<a href=\"");
|
||||
if ($this->PostBackURL != "")
|
||||
{
|
||||
echo($this->PostBackURL);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo("#");
|
||||
}
|
||||
echo("\"");
|
||||
|
||||
echo(">");
|
||||
echo($this->Text);
|
||||
echo("</a>");
|
||||
$this->renderMainLink();
|
||||
|
||||
echo("</h2>");
|
||||
echo("</div>");
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
parent::__construct();
|
||||
|
||||
$this->TagName = "div";
|
||||
$this->ClassList[] = "pwt-Button";
|
||||
$this->ClassList[] = "uwt-button";
|
||||
|
||||
$this->DropDownControls = array();
|
||||
$this->DropDownRequired = false;
|
||||
@ -54,7 +54,7 @@
|
||||
|
||||
foreach ($this->ClassList as $className)
|
||||
{
|
||||
if ($className == "pwt-Button") continue;
|
||||
if ($className == "uwt-button") continue;
|
||||
$tag->ClassList[] = $className;
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@
|
||||
}
|
||||
|
||||
$aDropDown = new Anchor();
|
||||
$aDropDown->ClassList[] = "pwt-Button pwt-DropDownButton";
|
||||
$aDropDown->ClassList[] = "uwt-button pwt-DropDownButton";
|
||||
$aDropDown->InnerHTML = " ";
|
||||
$this->Controls[] = $aDropDown;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user