File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1111
1212class FrontEndEditLink extends DataExtension
1313{
14-
15- public function EditLink (){
16-
14+ public function EditLink ()
15+ {
1716 if ($ member = Security::getCurrentUser ()) {
18- return DBField::create_field ('HTMLFragment ' ,"<a href='admin/pages/edit/show/ " .$ this ->owner ->ID ."/' style='
19- position: fixed;
20- z-index: 1000;
21- bottom: 0;
22- left: 0;
23- background: #f90;
24- padding: 0 3px;
25- font-size: 12px;
26- color: #fff;
27- ' target='_blank' rel='nofollow'>Edit</a> " );
17+ return DBField::create_field (
18+ 'HTMLFragment ' , "<a href=' " . $ this ->owner ->CMSEditLink () . "/' style='
19+ position: fixed;
20+ z-index: 1000;
21+ bottom: 0;
22+ left: 0;
23+ background: #f90;
24+ padding: 0 3px;
25+ font-size: 12px;
26+ color: #fff;
27+ ' target='_blank' rel='nofollow'>Edit</a> "
28+ );
2829 }
2930
3031 return NULL ;
3132 }
32-
3333}
You can’t perform that action at this time.
0 commit comments