fixed twitter button; added metatags to new base; moved url to /

This commit is contained in:
Sanj 2011-12-31 20:28:06 +05:30
parent c1d1de1e45
commit 220de9368c
4 changed files with 14 additions and 76 deletions

View File

@ -18,9 +18,14 @@ $('#listLeft ul li a').live("click", function() {
}, function(data) { }, function(data) {
$('#imageInside').css({'backgroundImage': 'url(' + data.main_image.thumb + ')'}); $('#imageInside').css({'backgroundImage': 'url(' + data.main_image.thumb + ')'});
$('#textRight').text(data.title).formatTitle(); $('#textRight').text(data.title).formatTitle();
var url = location.protocol + "//" + location.hostname + location.pathname + "?tab=" + $('.innerSelected').attr("data-slug") + "&object_id=" + objId; var urlComponent = "?tab=" + $('.innerSelected').attr("data-slug") + "&object_id=" + objId;
var baseUrl = location.protocol + "//" + location.hostname + location.pathname;
var url = baseUrl + urlComponent;
// var fb_url = url.replace("&", "&"); // var fb_url = url.replace("&", "&");
// $('#fb_like').attr("data-href", fb_url); // $('#fb_like').attr("data-href", fb_url);
var twitter_url = "https://twitter.com/share?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(data.title);
$('#twitterBtn').attr("href", twitter_url);
$('#permalinkBtn').attr("href", url); $('#permalinkBtn').attr("href", url);
var searchTerm = $('.searchListField').val(); var searchTerm = $('.searchListField').val();
var html = data.html; var html = data.html;

View File

@ -2,6 +2,9 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="Theatre, ITF, India, Best Practices, Theatre Resources" />
<meta name="title" content="India Theatre Forum" />
<meta name="description" content="India Theatre Forum: Best practices and theatre resources for the theatre community in India." />
<title>{% block title %} {% endblock %}</title> <title>{% block title %} {% endblock %}</title>
<link rel="stylesheet" href="/static/css/reset.css" type="text/css" /> <link rel="stylesheet" href="/static/css/reset.css" type="text/css" />
<link rel="stylesheet" href="/static/css/noel/main.css" type="text/css" /> <link rel="stylesheet" href="/static/css/noel/main.css" type="text/css" />
@ -28,7 +31,7 @@
<ul id="navMenu"> <ul id="navMenu">
<li id="homeList"><a href="/t/"><img src="/static/images/noel/home.png" width="16" height="17" alt="home" id="homeIcon"></a></li> <li id="homeList"><a href="/"><img src="/static/images/noel/home.png" width="16" height="17" alt="home" id="homeIcon"></a></li>
{% for m in menus %} {% for m in menus %}
<li><a href="">{{ m.name }}</a> <li><a href="">{{ m.name }}</a>
<ul> <ul>
@ -38,42 +41,6 @@
</ul> </ul>
</li> </li>
{% endfor %} {% endfor %}
<!--
<li><a href="">Resources</a>
<ul>
<li><a href="">Script Archive</a></li>
<li><a href="">Guidelines for Best Practice</a></li>
</ul>
</li>
<li><a href="">Read</a>
<ul>
<li><a href="">Bibliography</a></li>
<li><a href="">eRang</a></li>
<li><a href="">Publications</a></li>
</ul>
</li>
<li><a href="">Participate</a>
<ul>
<li><a href="">Surveys</a></li>
<li><a href="">Offers/Needs</a></li>
<li><a href="">Make a suggestion</a></li>
</ul>
</li>
<li class><a href="">About ITF</a>
<ul>
<li><a href="">India Theatre Forum</a></li>
<li><a href="">Projects</a></li>
<li><a href="">Events</a></li>
</ul>
</li>
<li><a href="">Support ITF</a>
<ul>
<li><a href="">Make a donation</a></li>
<li><a href="">Volunteer</a></li>
<li><a href="">Contribute to eRang</a></li>
</ul>
</li>
-->
</ul> </ul>
<ul id="loginMenu"> <ul id="loginMenu">
@ -103,41 +70,7 @@
</ul> </ul>
{% endfor %} {% endfor %}
<!--
<ul id="resources" class="footerList">
<a href="">Resources</a>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Script Archive</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Guidelines for Best Practice</a></li>
</ul>
<ul id="read" class="footerList">
<a href="">Read</a>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bibliography</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eRang</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Publications</a></li>
</ul>
<ul id="participate" class="footerList">
<a href="">Participate</a>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;surveys</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offers/needs</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make a suggestion</a></li>
</ul>
<ul id="aboutItf" class="footerList">
<a href="">About ITF</a>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;India Theatre Forum</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;projects</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;events</a></li>
</ul>
<ul id="supportItf" class="footerList">
<a href="">Support ITF</a>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make a donation</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;volunteer</a></li>
<li><a href="">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contribute to eRang</a></li>
</ul>
-->
<p id="copyright">&copy; 2011 India Theatre Forum. All Rights Reserved.</p> <p id="copyright">&copy; 2011 India Theatre Forum. All Rights Reserved.</p>
</div> </div>

View File

@ -191,7 +191,7 @@
<div class="socialIcons"> <div class="socialIcons">
<img src="/static/images/noel/tweet.png" width="18" height="18" alt="twitter" class="iconImages"> <a href="" target="_blank" id="twitterBtn" title="Tweet this!"><img src="/static/images/noel/tweet.png" width="18" height="18" alt="twitter" class="iconImages"> </a>
<!--<a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="http://twitter.com/#!/indtheatreforum">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>--> <!--<a href="http://twitter.com/share" class="twitter-share-button" data-count="none" data-via="http://twitter.com/#!/indtheatreforum">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>-->
<!-- <div id="fb_like" class="fb-like" data-href="http://theatreforum.in/m/bestpractices/?tab=cases&amp;object_id=16" data-send="false" data-width="90" data-show-faces="false" data-layout="button_count"></div> --> <!-- <div id="fb_like" class="fb-like" data-href="http://theatreforum.in/m/bestpractices/?tab=cases&amp;object_id=16" data-send="false" data-width="90" data-show-faces="false" data-layout="button_count"></div> -->

View File

@ -16,7 +16,7 @@ urlpatterns = patterns('',
# Example: # Example:
# (r'^bhangar/', include('bhangar.foo.urls')), # (r'^bhangar/', include('bhangar.foo.urls')),
#(r'^search/', include('solango.urls')), #(r'^search/', include('solango.urls')),
(r'^t/$', "frontpage.views.index"), (r'^$', "frontpage.views.index"),
(r'm/', include('insidepages.urls')), (r'm/', include('insidepages.urls')),
(r'^page/(?P<slug>[a-zA-Z].*?)/', 'pages.views.render_page'), (r'^page/(?P<slug>[a-zA-Z].*?)/', 'pages.views.render_page'),
(r'^contact/$', 'frontpage.views.contact'), (r'^contact/$', 'frontpage.views.contact'),
@ -58,7 +58,7 @@ urlpatterns = patterns('',
# (r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')), # (r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')),
# Uncomment the next line to enable the admin: # Uncomment the next line to enable the admin:
(r'^test$', 'app.views.index'), (r'^test$', 'app.views.index'),
(r'^$', 'festival.views.home') # (r'^$', 'festival.views.home')
) )
if settings.LOCAL_DEVELOPMENT: if settings.LOCAL_DEVELOPMENT: