mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6630 from mikaelayoung/#1496_Make_CMS_website_title_a_link
Make CMS website title a link to website in new tab
This commit is contained in:
commit
ab6d2819c1
4
admin/client/dist/styles/bundle.css
vendored
4
admin/client/dist/styles/bundle.css
vendored
@ -11960,7 +11960,7 @@ li.class-ErrorPage>a .jstree-pageicon{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.cms-logo a{
|
||||
.cms-logo .cms-logo__link{
|
||||
position:absolute;
|
||||
top:8px;
|
||||
bottom:8px;
|
||||
@ -13667,7 +13667,7 @@ li.class-ErrorPage>a .jstree-pageicon{
|
||||
background-size:43px 43px;
|
||||
}
|
||||
|
||||
.cms-logo a{
|
||||
.cms-logo .cms-logo__link{
|
||||
background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NTc3MiwgMjAxNC8wMS8xMy0xOTo0NDowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA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HBlkYwneCJIZNz8PtoGfDN9YsA8sAr11zleBHHCkM4c7ddas3hoOpig3MiFwE1jPFLudtu7lErHCoillPnLdNZ0MwctEkBrcXNx4OshmLoE14CRQmf5TwFMQxa0lFhoMJh7ZJFDOvPkQcMFKvIFivR+pJ3i8ZJAymi13LNWNmdXaGCqsTAVHSgbgzNQ4cNpF5AIPM5sI0hAzwYGSi7+aDJ5Ma28rmE3HoiS+IpXtpSeQZzBmmDZb6QlukFxstINlgGsus9F5E516669fLGWiLLAS7DAYe56Z4CrJhauprHS1saAU7NQcj5GMtYveSuo1x09RrSLbaAwFP5BcqNJWfQZsoBkSKS5OxzeIPm+6CI+jukRmdwyWheFOl0PrS2ZbGMFS7bK9j6LgaTC5JkJyvN1shivpRp7YDfp8Tz/QTGwoWCo594lTXoqeQqNFsR8osLgWTpuEbHd9yRFcR0WKFUtx4wU0gTakmQY+hdwCvoTeMGqYN28GSwyCVmsHQJFBrlYoczx3543jPphI0V1rsKFk05ZewBA6DNwGB5lVntt9iTrKn4epmxNDEf2dAlTk4Y/MWRVPIJPZxkqnUtNyI6WeemdWTCUBaUz/c52pVfVi54drosTMB7MYvh30ozJ80api9USooRLN8K2i8rW0S2HT5vRKq4prmUyxuRTcXcTasB6+tPpPsBC6ysSnlcrRFL1OUZMDVXyYzW+Ck0zOV4AZ4KzMQSyHCf3sfp1hmWVRTfzKaADRbo0Pt/st6PTeXH5QeyCXO0hEL9Vvgqs1fz8Da6nLwzZtj9iXS6LY5bvoS0xzV6y/87CY0evgFr2leMXU//8J9bH9EWAA3bnSxHFHc6MAAAAASUVORK5CYII=);
|
||||
background-size:22px 22px;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
a {
|
||||
.cms-logo__link {
|
||||
position: absolute;
|
||||
top: $grid-y;
|
||||
bottom: $grid-y;
|
||||
|
@ -100,7 +100,7 @@
|
||||
|
||||
/* Default CMS logo */
|
||||
.cms-logo {
|
||||
a {
|
||||
.cms-logo__link {
|
||||
background-image: $application-logo-small-2x;
|
||||
background-size: 22px 22px;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="cms-logo">
|
||||
<a href="$ApplicationLink" target="_blank" title="$ApplicationName (Version - $CMSVersion)">
|
||||
<a href="$ApplicationLink" class="cms-logo__link" target="_blank" title="$ApplicationName (Version - $CMSVersion)">
|
||||
$ApplicationName <% if $CMSVersion %><abbr class="version">$CMSVersion</abbr><% end_if %>
|
||||
</a>
|
||||
<span><% if $SiteConfig %>$SiteConfig.Title<% else %>$ApplicationName<% end_if %></span>
|
||||
<span><a href="$BaseHref" target="_blank"><% if $SiteConfig %>$SiteConfig.Title<% else %>$ApplicationName<% end_if %></a></span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user