Commits

Luke Plant committed e3124a0

Added proper CMS-driven menu

Comments (0)

Files changed (3)

christchurch/static/christchurch/css/style.css

 
 }
 
+#headertext a:link,
+#headertext a:visited,
+#headertext a:hover
+{
+    color: white;
+    text-decoration: none;
+}
+
 #headeraddress {
     margin-top: 3px;
     text-align: center;
     text-decoration: none;
 }
 
-#navbarcont ul li.here a {
+#navbarcont ul li.ancestor a,
+#navbarcont ul li.selected a {
     background-color: #660033;
     color: #fff;
     border-top: 1px solid #660033;
     margin-bottom: 20px;
     margin-left: 5px;
 }
+
+/* Section anchors */
+.anchor:link, .anchor:visited {
+ border: none;
+ color: #888;
+ font-size: .8em;
+ vertical-align: text-top;
+ text-decoration: none;
+}

christchurch/templates/menu/menu.html

+{% load menu_tags %}{# same as django-cms provided template, with no whitespace #}
+{% for child in children %}<li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}"><a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a>{% if child.children %}<ul>{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}</ul>{% endif %}</li>{% endfor %}

christchurch/templates/standard.html

-{% load cms_tags %}<!DOCTYPE html>
+{% load cms_tags %}{% load menu_tags %}<!DOCTYPE html>
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <body>
   <div id="headercont">
     <div id="header">
-      <div id="headertext">Christ Church, Bradford</div>
+      <div id="headertext"><a href="/">Christ Church, Bradford</a></div>
       <div id="headeraddress">2 - 4 Leyton Drive, Off Ley Fleaks Road, Bradford, BD10 8RQ</div>
       <div id="headerformerly">(Formerly: Pollard Park Evangelical Church)</div>
     </div>
   </div>
   <div id="navbarcont">
     <ul id="navbar">
-      <li><a href="/">Home</a></li>
-      <li><a href="/sunday/">Sunday</a></li>
-      <li><a href="/events/">Events</a></li>
-      <li><a href="/sermons/">Sermons</a></li>
-      <li><a href="/people/">People</a></li>
-      <li><a href="/directions/">Directions</a></li>
-      <li><a href="/teachings/">Teachings</a></li>
-      <li><a href="/contactus/">Contact us</a></li>
+      {% show_menu %}
     </ul>
   </div>
   <div id="bodycont">
     <div id="footer">
       <div id="footerinner">
 	<a href="/">Home</a>
-	| <a href="/sitemap/">Site map</a>
-	| <a href="/contactus/">Contact us</a>
+	| <a href="{% page_url "contactus" %}">Contact us</a>
       </div>
     </div>
   </div>