-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Replace unnecessary double quotes in administrator #3 #13295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
3c677d7
fafd8b4
b94f908
471d450
a9cf8ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -119,7 +119,7 @@ public function renderMenu($id = 'menu', $class = '') | |
| // Recurse through children if they exist | ||
| while ($this->_current->hasChildren()) | ||
| { | ||
| echo "<ul " . $id . " " . $class . ">\n"; | ||
| echo '<ul ' . $id . ' ' . $class . ">\n"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hum why don't we use PHP_EOL const here ...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Depending on OS PHP_EOL sends \n (linux) or \r\n (windows) so unfortunately it's not doable...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||
|
|
||
| foreach ($this->_current->getChildren() as $child) | ||
| { | ||
|
|
@@ -177,7 +177,7 @@ public function renderLevel($depth) | |
| } | ||
|
|
||
| // Print the item | ||
| echo "<li" . $class . ">"; | ||
| echo '<li' . $class . '>'; | ||
|
|
||
| // Print a link if it exists | ||
| $linkClass = array(); | ||
|
|
@@ -214,20 +214,20 @@ public function renderLevel($depth) | |
|
|
||
| if ($this->_current->link != null && $this->_current->target != null) | ||
| { | ||
| echo "<a" . $linkClass . " " . $dataToggle . " href=\"" . $this->_current->link . "\" target=\"" . $this->_current->target . "\" >" | ||
| . $this->_current->title . $dropdownCaret . "</a>"; | ||
| echo '<a' . $linkClass . ' ' . $dataToggle . ' href="' . $this->_current->link . '" target="' . $this->_current->target . '" >' | ||
|
||
| . $this->_current->title . $dropdownCaret . '</a>'; | ||
| } | ||
| elseif ($this->_current->link != null && $this->_current->target == null) | ||
| { | ||
| echo "<a" . $linkClass . " " . $dataToggle . " href=\"" . $this->_current->link . "\">" . $this->_current->title . $dropdownCaret . "</a>"; | ||
| echo '<a' . $linkClass . ' ' . $dataToggle . ' href="' . $this->_current->link . '">' . $this->_current->title . $dropdownCaret . '</a>'; | ||
| } | ||
| elseif ($this->_current->title != null) | ||
| { | ||
| echo "<a" . $linkClass . " " . $dataToggle . ">" . $this->_current->title . $dropdownCaret . "</a>"; | ||
| echo '<a' . $linkClass . ' ' . $dataToggle . '>' . $this->_current->title . $dropdownCaret . '</a>'; | ||
| } | ||
| else | ||
| { | ||
| echo "<span></span>"; | ||
| echo '<span></span>'; | ||
| } | ||
|
|
||
| // Recurse through children if they exist | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-target="# '- this is not correct, you add an extra space here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! Yes ;)