First pass at adding key files
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
{
|
||||
inheritance => '../luna'
|
||||
}
|
@ -0,0 +1 @@
|
||||
add_success_publish.html
|
@ -0,0 +1,195 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><%site_title%>: Publish Link to Social Media</title>
|
||||
<%include include_common_head.html%>
|
||||
</head>
|
||||
<body id="add_success">
|
||||
<%include include_accessibility.html%>
|
||||
<div id="wrapper">
|
||||
<%include include_header.html%>
|
||||
<%include include_contentheader.html%>
|
||||
<div id="ocwrapper" class="clear">
|
||||
<div id="icwrapper" class="clear">
|
||||
<%include include_leftsidebar.html%>
|
||||
<div id="contentwrapper" class="shadowleft">
|
||||
<%include include_contentwrapper_top.html%>
|
||||
<div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
|
||||
<div class="shadowright">
|
||||
<div id="content">
|
||||
<%include include_content_top.html%>
|
||||
|
||||
<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
|
||||
<%if success%>
|
||||
<h2>Link Published to Social Media</h2>
|
||||
<%else%>
|
||||
<h2>Publish Link to Social Media</h2>
|
||||
<%endif%>
|
||||
|
||||
<%set ID ||= 4031%>
|
||||
<%Plugins::SocialMedia::format_link($ID)%>
|
||||
<%--
|
||||
<img src="<%Picture%>" />
|
||||
--%>
|
||||
<%if success%>
|
||||
|
||||
The build is successful! <br /><br />
|
||||
|
||||
<%if twitter_published%>It has been published to twitter.<%elsif twitter_published_message%>There is an error posting twitter: <span style="color: red"><%twitter_published_message%></span><%endif%>
|
||||
<br /><br />
|
||||
<%if facebook_published%>It has been published to facebook.<%elsif facebook_published_message%>There is an error posting facebook: <span style="color: red"><%facebook_published_message%></span><%endif%>
|
||||
<br /><br />
|
||||
|
||||
<%else%>
|
||||
|
||||
<p>
|
||||
The following link has been created:
|
||||
</p>
|
||||
|
||||
<div class="row clear">
|
||||
<label class="name">Title:</label>
|
||||
<div class="value wrappedtext"><%Title%></div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label class="name">Category:</label>
|
||||
<div class="value wrappedtext">
|
||||
<%~if Category_loop.length > 1%>
|
||||
<ul><%loop Category_loop%><li><%loop_value%></li><%endloop%></ul>
|
||||
<%~else%>
|
||||
<%Category%>
|
||||
<%~endif%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label class="name">Link Type:</label>
|
||||
<div class="value wrappedtext"><%if Link_Type eq 'photo'%>Photo Gallery<%elseif Link_Type eq 'video'%>Video<%else%>Article<%endif%></div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label class="name">Description:</label>
|
||||
<div class="value wrappedtext"><%escape_html Description%></div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label class="name">Contact Name:</label>
|
||||
<div class="value wrappedtext"><%escape_html Contact_Name%></div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label class="name">Contact E-mail:</label>
|
||||
<div class="value wrappedtext"><%escape_html Contact_Email%></div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<%~if config.build_auto_validate%>
|
||||
Your link has been added to <%if Category_loop.length > 1%>the following categories: <%loop Category_loop%><%loop_value%><%unless last%>, <%endunless%><%endloop%><%else%><%Category%><%endif%>.
|
||||
You can preview the link at <a href="<%config.db_cgi_url%>/page.cgi?g=<%ID%>.html">here</a>.
|
||||
<%~else%>
|
||||
Thank you! We will send you an e-mail once your link has been validated.
|
||||
<%~endif%>
|
||||
</p>
|
||||
|
||||
<%--
|
||||
<h2>Build it?</h2>
|
||||
<p>
|
||||
<form id="media_form" action="<%config.db_cgi_url%>/post_media.cgi" enctype="multipart/form-data" method="post">
|
||||
<div class="formsubmit">
|
||||
<input type="submit" name="build_it" value="Build" class="submit" />
|
||||
</div>
|
||||
</form>
|
||||
</p>
|
||||
--%>
|
||||
|
||||
<h2>Publish it?</h2>
|
||||
<p>
|
||||
<div id="loading" style="display:none;">Loading ..... </div>
|
||||
|
||||
<form id="media_form" action="<%config.db_cgi_url%>/post_media.cgi" enctype="multipart/form-data" method="post">
|
||||
<input type="hidden" name="linkid" value="<%ID%>">
|
||||
<%--
|
||||
<div class="row required clear">
|
||||
<label for="Title" class="name">Title: <span>*</span></label>
|
||||
<div class="value">
|
||||
<input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Title" class="name">Title: </label>
|
||||
<div class="value">
|
||||
<input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
--%>
|
||||
|
||||
<div class="row clear">
|
||||
<label for="post_twitter" class="name">Post on Twitter? </label>
|
||||
<div class="value">
|
||||
<input type="checkbox" id="post_twitter" name="post_twitter" value="1" /> Yes
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row clear">
|
||||
<label for="Title" class="name">Twitter Status line: </label>
|
||||
<div class="value wrappedtext">
|
||||
<textarea id="twitter_status" name="twitter_status" rows="3" cols="25"><%if twitter_status%><%escape_html twitter_status%><%else%><%escape_html Description%><%endif%></textarea>
|
||||
<br />Use existing status line, or update as required. Link URL will be automatically appended to tweet.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row clear">
|
||||
<label for="Title" class="name">Twitter Hash tags: </label>
|
||||
<div class="value wrappedtext">
|
||||
<textarea id="twitter_hash_tags" name="twitter_hash_tags" rows="3" cols="25"><%if twitter_hash_tags%><%escape_html twitter_hash_tags%><%endif%></textarea>
|
||||
<br /> Please separate each hash tag with comma. <br />For example: bike, runner, slowtwitch.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row clear">
|
||||
<label for="post_facebook" class="name">Post on Facebook? </label>
|
||||
<div class="value">
|
||||
<input type="checkbox" id="post_facebook" name="post_facebook" value="1" /> Yes
|
||||
</div>
|
||||
</div>
|
||||
<%--
|
||||
<div class="row clear">
|
||||
<label for="post_facebook" class="name">Choose an image for Facebook post: </label>
|
||||
<div class="value">
|
||||
<%loop image_paths.images_loop%>
|
||||
<input type="radio" name="facebook_image" value="<%col_name%>" />
|
||||
<img src="<%_thumbnail_path%>" />
|
||||
<%endloop%>
|
||||
</div>
|
||||
</div>
|
||||
--%>
|
||||
|
||||
<%--DUMP image_paths.images_loop--%>
|
||||
|
||||
<div class="formsubmit">
|
||||
<input type="submit" name="build" value="Build" class="submit" />
|
||||
</div>
|
||||
</form>
|
||||
</p>
|
||||
<%endif%>
|
||||
|
||||
<%include include_content_bottom.html%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
|
||||
<%include include_contentwrapper_bottom.html%>
|
||||
</div>
|
||||
<%include include_rightsidebar.html%>
|
||||
</div>
|
||||
</div>
|
||||
<%include include_contentfooter.html%>
|
||||
<%include include_footer.html%>
|
||||
</div>
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.submit').click(function() {
|
||||
$('#media_form').slideUp('fast',function(){
|
||||
$('#loading').slideDown();
|
||||
});
|
||||
return true;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,445 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<%Links::Utils::load_reviews($ID, $detailed_max_reviews)~%>
|
||||
<%Plugins::SlideShow::generate_paths($ID)%>
|
||||
<%convert_nl_br%><html>
|
||||
<head>
|
||||
<title><%Title%> - <%site_title_short%></title>
|
||||
<%--Facebook Meta Tags--%>
|
||||
<meta name="title" content="<%escape_html Title%>" />
|
||||
<meta name="description" content="<%escape_html Description%>" />
|
||||
<meta property="og:title" content="<%escape_html Title%>"/>
|
||||
<meta name="og:description" content="<%escape_html Description%>" />
|
||||
<meta property="og:site_name" content="<%site_title_short%>"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
<meta property="og:url" content="http://www.slowtwitch.com/temp/<%ID%>.html"/>
|
||||
<meta property="fb:admins" content="100001571171264,721935200" />
|
||||
<%--Twitter Meta Tags--%>
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@slowtwitch " />
|
||||
<meta name="twitter:creator" content="@slowtwitch" />
|
||||
<meta name="twitter:title" content="<%escape_html Title%>" />
|
||||
<meta name="twitter:description" content="<%escape_html Description%>" />
|
||||
<%if facebook_published_image%>
|
||||
<%set facebook_image_url = Plugins::SocialMedia::get_path($facebook_published_image)%>
|
||||
<%if facebook_image_url%>
|
||||
<link rel="image_src" href="<%escape_html facebook_image_url%>" / >
|
||||
<meta property="og:image" content="<%escape_html facebook_image_url%>"/>
|
||||
<meta name="twitter:image" content="<%escape_html facebook_image_url%>" />
|
||||
<%endif%>
|
||||
<%elsif Image1_thumbnail_path and Image1_largest_path%>
|
||||
<link rel="image_src" href="<%escape_html Image1_largest_path%>" / >
|
||||
<meta property="og:image" content="<%escape_html Image1_largest_path%>"/>
|
||||
<meta name="twitter:image" content="<%escape_html Image1_largest_path%>" />
|
||||
<%endif%>
|
||||
<%--End Facebook Meta Tags--%>
|
||||
<%--End Twitter Meta Tags--%>
|
||||
<%include include_common_head.html%>
|
||||
</head>
|
||||
<body id="detailed">
|
||||
<%include include_facebook_comments.html%>
|
||||
<%include include_accessibility.html%>
|
||||
<div id="wrapper">
|
||||
<%include include_header.html%>
|
||||
<%include include_contentheader.html%>
|
||||
<div id="ocwrapper" class="clear">
|
||||
<div id="icwrapper" class="clear">
|
||||
<%include include_leftsidebar.html%>
|
||||
<div id="contentwrapper" class="shadowleft">
|
||||
<%include include_contentwrapper_top.html%>
|
||||
<div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
|
||||
<div class="shadowright">
|
||||
<div id="content">
|
||||
<div style="padding: 0px 10px 0px 10px;">
|
||||
<%include include_content_top.html%>
|
||||
|
||||
<%--div class="crumb"><%Links::Utils::format_title($title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div--%>
|
||||
|
||||
<%--if next_url or prev_url%><p class="linknav"><%if prev_url%><a href="<%prev_url%>"><img src="<%Links::Utils::image_url('paging-prev.gif')%>" alt="<" /> Previous</a><%endif%><%if next_url and prev_url%> | <%endif%><%if next_url%><a href="<%next_url%>">Next <img src="<%Links::Utils::image_url('paging-next.gif')%>" alt=">" /></a><%endif%></p><%endif--%>
|
||||
|
||||
<h2>
|
||||
<%Title%><%if URL and URL ne 'http://'%> <span class="hsmall">(<a href="<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>">Visit this link</a>)</span><%endif%>
|
||||
<%if isNew%><span class="new-item"><span>new</span></span><%endif%>
|
||||
<%if isChanged%><span class="updated-item"><span>updated</span></span><%endif%>
|
||||
<%if isPopular%><span class="popular-item"><span>popular</span></span><%endif%>
|
||||
<%~if paymentsEnabled%>
|
||||
<%if isUnpaid%><span class="unpaid-item"><span>unpaid</span></span><%endif%>
|
||||
<%if isExpired%><span class="expired-item"><span>expired</span></span><%endif%>
|
||||
<%if isFree%><span class="free-item"><span>free</span></span><%endif%>
|
||||
<%~endif%>
|
||||
</h2>
|
||||
|
||||
<p class="info">
|
||||
Written by: <%if LinkOwner ne 'admin'%><a href="<%config.db_cgi_url%>/search.cgi?LinkOwner=<%LinkOwner%>"><%endif%><%Contact_Name%><%if LinkOwner ne 'admin'%></a><%endif%><br />
|
||||
<%--Hits: <%Hits%><br />--%>
|
||||
Date: <%Add_Date%><br />
|
||||
<%--if Add_Date ne $Mod_Date%>Last Changed: <%Mod_Date%><br /><%endif--%>
|
||||
|
||||
</p>
|
||||
|
||||
<%if Votes~%>
|
||||
<p class="rating">
|
||||
<%~set intRating = $Rating i/ 1%>
|
||||
<img src="<%Links::Utils::image_url("stars-10-${intRating}.gif")%>" alt="<%intRating%> out of 10 stars" /> (<%Votes%> vote<%if Votes != 1%>s<%endif%>)
|
||||
</p>
|
||||
<%~endif%>
|
||||
|
||||
<%--if Description%><p class="description"><%Description%></p><%endif--%>
|
||||
|
||||
<div class="detail_part">
|
||||
<%if Image1_medium_path or Paragraph1%>
|
||||
<%if Image1_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image1_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph1%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph1%>
|
||||
</div>
|
||||
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image2_medium_path or Paragraph2%>
|
||||
<%if Image2_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image2_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph2%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph2%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image3_medium_path or Paragraph3%>
|
||||
<%if Image3_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image3_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph3%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph3%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image4_medium_path or Paragraph4%>
|
||||
<%if Image4_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image4_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph4%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph4%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image5_medium_path or Paragraph5%>
|
||||
<%if Image5_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image5_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph5%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph5%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image6_medium_path or Paragraph6%>
|
||||
<%if Image6_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image6_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph6%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph6%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image7_medium_path or Paragraph7%>
|
||||
<%if Image7_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image7_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph7%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph7%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image8_medium_path or Paragraph8%>
|
||||
<%if Image8_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image8_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph8%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph8%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image9_medium_path or Paragraph9%>
|
||||
<%if Image9_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image9_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph9%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph9%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image10_medium_path or Paragraph10%>
|
||||
<%if Image10_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image10_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph10%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph10%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image11_medium_path or Paragraph11%>
|
||||
<%if Image11_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image11_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph11%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph11%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image12_medium_path or Paragraph12%>
|
||||
<%if Image12_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image12_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph12%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph12%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image13_medium_path or Paragraph13%>
|
||||
<%if Image13_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image13_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph13%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph13%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image14_medium_path or Paragraph14%>
|
||||
<%if Image14_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image14_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph14%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph14%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image15_medium_path or Paragraph15%>
|
||||
<%if Image15_medium_path%>
|
||||
<div class="detail_imageleft">
|
||||
<img src="<%Image15_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph15%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph15%>
|
||||
</div>
|
||||
<%endif%>
|
||||
<%endif%>
|
||||
<%if Image16_medium_path or Paragraph16%>
|
||||
<%if Image16_medium_path%>
|
||||
<div class="detail_imageright">
|
||||
<img src="<%Image16_medium_path%>" />
|
||||
</div>
|
||||
<%endif%>
|
||||
<%if Paragraph16%>
|
||||
<div class="detail_text">
|
||||
<%Paragraph16%>
|
||||
</div>
|
||||
<%endif%>
|
||||
|
||||
<%endif%>
|
||||
</div>
|
||||
|
||||
<p class="actions">
|
||||
<%--a href="<%config.db_cgi_url%>/review.cgi?ID=<%ID%>;add_review=1">Comment on this article</a--%>
|
||||
<%if user.Status eq 'Administrator'%><a href="<%config.db_cgi_url%>/modify.cgi?LinkID=<%ID%>">ADMIN: EDIT THIS ARTICLE</a><%endif%>
|
||||
<%if user.Status eq 'Editor' AND user.Status neq 'Administrator'%><a href="<%config.db_cgi_url%>/modify.cgi?LinkID=<%ID%>">EDIT THIS ARTICLE</a><%endif%>
|
||||
<%if user.Status eq 'Administrator'%><a href="<%config.db_cgi_url%>/user.cgi?do=logout">Log Out</a><%endif%>
|
||||
<%--a href="<%config.db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a--%>
|
||||
<%if config.bookmark_enabled%><a href="<%config.db_cgi_url%>/bookmark.cgi?action=link_add;ID=<%ID%>">Bookmark It</a><%endif%>
|
||||
<%if isLinkOwner%><a href="<%config.db_cgi_url%>/modify.cgi?LinkID=<%ID%>">Edit this link</a><%endif%>
|
||||
<%if paymentsEnabled%><a href="<%config.db_cgi_url%>/modify.cgi?do=payment_linked;process_payment=1;modify=1;ID=<%ID%>"><%if isUnpaid or isFree%>New Payment<%else%>Renewal Payment<%endif%></a><%endif%>
|
||||
</p>
|
||||
|
||||
<div class="fb-comments" data-href="<%detailed_url%>" data-width="620" data-num-posts="5"></div>
|
||||
|
||||
<p>
|
||||
<div style="float:left;">
|
||||
<%--script type="text/javascript">
|
||||
tweetmeme_source = 'slowtwitch';</script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script--%>
|
||||
<a href="http://twitter.com/share" class="twitter-share-button" data-text="<%Title%>" data-count="vertical" data-via="slowtwitch">Tweet</a>
|
||||
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<div style="float:left; height: 60px;">
|
||||
|
||||
<!-- Place this tag where you want the +1 button to render -->
|
||||
<g:plusone size="tall"></g:plusone>
|
||||
|
||||
<!-- Place this render call where appropriate -->
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
||||
po.src = 'https://apis.google.com/js/plusone.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<div style="float:left; height: 60px;">
|
||||
|
||||
<a href="http://pinterest.com/pin/create/button/?url=<%detailed_url%><%if Image1_medium_path%>&media=<%Image1_medium_path%><%endif%>&description=<%escape_html Description%>" class="pin-it-button" count-layout="vertical"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<div style="float:left; height: 60px;">
|
||||
<iframe src="http://www.facebook.com/plugins/like.php?app_id=193269620735521&href=<%detailed_url%>&send=false&layout=box_count&show_faces=false&action=like&colorscheme=light&font=verdana&" scrolling="no" frameborder="0" style="border:none; overflow:hidden;" allowTransparency="true"></iframe>
|
||||
<%--<a name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php">Share</a>
|
||||
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>--%>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div style="height: 250px; padding-top: 20px;" class="clear">
|
||||
|
||||
<div style="width: 300px; height: 250px; float: right; vertical-align: top; border-left: 10px solid white;">
|
||||
<%ad_300x250_roadblocks%>
|
||||
</div>
|
||||
|
||||
<div style="width: 300px; float: left;">
|
||||
<span style="font-size: 13px; font-weight: bold;">Articles related to this one</span>
|
||||
<%if RelatedArticles%>
|
||||
|
||||
<%related_articles($RelatedArticles, $ID)%>
|
||||
<%loop related_articles_loop%>
|
||||
<%Plugins::SlideShow::generate_paths($ID)%><%rewrite_detail_url%>
|
||||
<div style="padding-bottom: 10px; padding-top: 5px; padding-right: 10px; text-align: justify;">
|
||||
<% set tb = thumbnail($loop_value, $Image1_thumbnail_path) %>
|
||||
<%if tb %><div style="float: right; width:100px; padding-right: 10px;">
|
||||
<img src="<%tb%>" style="padding-left: 10px; max-width: 100px;" />
|
||||
</div><%endif%>
|
||||
<div>
|
||||
<a href="<%detailed_url%>" class="headline"><%Title%></a><br />
|
||||
<%Description%> <span style="font-style: italic;"><%GT::Date::date_transform($Add_Date,$config.date_user_format, '%m%.%dd%.%yy%')%></span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
<%endloop%>
|
||||
|
||||
<%elsif Related_Article1%>
|
||||
<p><%Related_Article1%></p>
|
||||
<%if Related_Article2%>
|
||||
<p><%Related_Article2%></p>
|
||||
<%endif%>
|
||||
<%if Related_Article3%>
|
||||
<p><%Related_Article3%></p>
|
||||
<%endif%>
|
||||
<%if Related_Article4%>
|
||||
<p><%Related_Article4%></p>
|
||||
<%endif%>
|
||||
<%if Related_Article5%>
|
||||
<p><%Related_Article5%></p>
|
||||
<%endif%>
|
||||
|
||||
<%else%>
|
||||
<p>There are no related articles</p>
|
||||
<%endif%>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<%if test%>
|
||||
<div style="width: 300px;">
|
||||
<span style="font-size: 13px; font-weight: bold;">Photos related to this one</span>
|
||||
<%set RelatedPhotos ||= "1"%>
|
||||
<%if RelatedPhotos%>
|
||||
|
||||
<%related_photos($RelatedPhotos)%>
|
||||
<%loop related_photos_loop%>
|
||||
<div style="padding-bottom: 10px; padding-top: 5px; padding-right: 10px; text-align: justify;">
|
||||
<%if Image1_thumbnail_path%><div style="float: right; width:100px; padding-right: 10px;">
|
||||
<img src="/photos<%Image1_thumbnail_path%>" style="padding-left: 10px"/>
|
||||
</div><%endif%>
|
||||
<div>
|
||||
<a href="<%detailed_url%>" class="headline"><%Title%></a><br />
|
||||
<%shorten_it($Description,160)%> <span style="font-style: italic;"><%GT::Date::date_transform($Add_Date,$config.date_user_format, '%m%.%dd%.%yy%')%></span>
|
||||
</div>
|
||||
</div>
|
||||
<%endloop%>
|
||||
|
||||
<%else%>
|
||||
<p>There are no related photos</p>
|
||||
<%endif%>
|
||||
</div>
|
||||
|
||||
<%endif%>
|
||||
|
||||
|
||||
<%if Review_Loop.length~%>
|
||||
<a name="Comments"></a><h3 id="comments">Comments</h3>
|
||||
|
||||
<%--p class="reviewsheader"><a href="<%config.db_cgi_url%>/review.cgi?ID=<%ID%>;add_review=1">Add your own comment</a></p--%>
|
||||
|
||||
<%loop Review_Loop~%>
|
||||
<%include review_include.html%>
|
||||
<%~endloop%>
|
||||
|
||||
<%if Review_Total > $Review_Loop.length%><p class="reviewsfooter"><a href="<%config.db_cgi_url%>/review.cgi?ID=<%ID%>">Read <%Review_Total%> comment<%if Review_Total != 1%>s<%endif%></a></p><%endif%>
|
||||
<%~endif%>
|
||||
|
||||
<%include include_content_bottom.html%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
|
||||
<%include include_contentwrapper_bottom.html%>
|
||||
</div>
|
||||
<%include include_rightsidebar.html%>
|
||||
</div>
|
||||
</div>
|
||||
<%include include_contentfooter.html%>
|
||||
<%include include_footer.html%>
|
||||
</div>
|
||||
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,273 @@
|
||||
<script language="javascript">
|
||||
$(document).ready(function(){
|
||||
$("#SelectWebsite").click(selectWebsite);
|
||||
$("#SelectFile").click(selectFile);
|
||||
$("#Link_Type").change(selectLinkType);
|
||||
$("#modify_form").submit(checkSubmit);
|
||||
});
|
||||
|
||||
function selectWebsite() {
|
||||
$("#filecontent").hide();
|
||||
$("#websitecontent").show();
|
||||
}
|
||||
|
||||
function selectFile() {
|
||||
$("#websitecontent").hide();
|
||||
$("#filecontent").show();
|
||||
}
|
||||
|
||||
function selectLinkType() {
|
||||
var type = $("#Link_Type").val();
|
||||
|
||||
if (type == 'article') {
|
||||
$("#article_photo_form").show();
|
||||
$("#video_form").hide();
|
||||
|
||||
for (i = 1; i <= 16 ; i++) {
|
||||
$("#article" + i).show();
|
||||
$("#photo" + i).hide();
|
||||
}
|
||||
|
||||
$("#article_has_video").show();
|
||||
$("#photo_body").hide();
|
||||
$("#photo_extra").hide();
|
||||
$("#photo_large_pic").hide();
|
||||
} else if (type == 'photo') {
|
||||
$("#article_photo_form").show();
|
||||
$("#video_form").hide();
|
||||
|
||||
for (i = 1; i <= 16 ; i++) {
|
||||
$("#article" + i).hide();
|
||||
$("#photo" + i).show();
|
||||
}
|
||||
|
||||
$("#article_has_video").hide();
|
||||
$("#photo_body").show();
|
||||
$("#photo_extra").show();
|
||||
$("#photo_large_pic").show();
|
||||
} else {
|
||||
$("#article_photo_form").hide();
|
||||
$("#photo_body").show();
|
||||
$("#video_form").show();
|
||||
}
|
||||
}
|
||||
|
||||
function checkSubmit() {
|
||||
var type = $("#Link_Type").val();
|
||||
|
||||
if (type == 'article') {
|
||||
clearVideoData(0);
|
||||
} else if (type == 'photo') {
|
||||
clearVideoData(0);
|
||||
$("#Paragraph1").val($("#Main_Body").val());
|
||||
} else if (type == 'video') {
|
||||
if ($('#SelectWebsite').is(':checked')) {
|
||||
if (! checkUrlVal("#URL") ||
|
||||
$("#Image_Path").val() == "") {
|
||||
if (! confirm("You haven't entered all the information. The video link may not display properly. Continue?")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
clearVideoData(1);
|
||||
} else {
|
||||
if ($("#File_Path").val() == "") {
|
||||
if (! confirm("You haven't entered all the information. The video link may not display properly. Continue?")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
clearVideoData(2);
|
||||
}
|
||||
$("#Paragraph1").val($("#Main_Body").val());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function clearVideoData(index) {
|
||||
if (index != 1) {
|
||||
$("#URL").val("http://");
|
||||
$("#Image_Path").val("");
|
||||
} else {
|
||||
$("#admin_convert_video").attr('checked', true);
|
||||
}
|
||||
|
||||
if (index != 2) {
|
||||
$("#File_Path").val("");
|
||||
}
|
||||
|
||||
if (index == 0) {
|
||||
$("#admin_convert_video").attr('checked', false);
|
||||
}
|
||||
}
|
||||
|
||||
function checkUrlVal(id_str) {
|
||||
if ($(id_str).val() == '' || $(id_str).val() == "http://") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<div class="row required clear">
|
||||
<label for="Title" class="name">Title: <span>*</span></label>
|
||||
<div class="value">
|
||||
<input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row<%unless category_loop_selected%> required<%endunless%> clear">
|
||||
<label for="CatLinks.CategoryID" class="name">Category:<%unless category_loop_selected%> <span>*</span><%endunless%></label>
|
||||
<div class="value wrappedtext">
|
||||
<%~if config.db_gen_category_list == 2%>
|
||||
<script type="text/javascript" src="<%config.build_static_url%>/treecats.js"></script>
|
||||
<%~set selected_cats = Links::Tools::category_list_selected%>
|
||||
<%~loop selected_cats%>
|
||||
<input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" />
|
||||
<%~endloop%>
|
||||
<noscript>
|
||||
<ul class="categories">
|
||||
<%~loop selected_cats%>
|
||||
<li><%Full_Name%></li>
|
||||
<%~endloop%>
|
||||
<%~if not selected_cats.length%>
|
||||
<li><%Links::language('ADD_SELCAT')%></li>
|
||||
<%~endif%>
|
||||
</ul>
|
||||
</noscript>
|
||||
<div id="treecats"></div>
|
||||
<script type="text/javascript">
|
||||
var tc = new treecats({ selectionMode : 'multiple', cgiURL : '<%config.db_cgi_url%>', imageURL : '<%config.build_static_url%>/<%t%>/images' });
|
||||
tc.load();
|
||||
</script>
|
||||
<%~elsif category_loop_selected%>
|
||||
<%~if category_loop.length > 1%>
|
||||
<ul class="categories"><%loop category_loop%><li><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /></li><%endloop%></ul>
|
||||
<%~else%>
|
||||
<%loop category_loop%><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /><%endloop%>
|
||||
<%~endif%>
|
||||
<%~else%>
|
||||
<select id="CatLinks.CategoryID" name="CatLinks.CategoryID">
|
||||
<%~loop category_loop%>
|
||||
<option value="<%escape_html ID%>"<%if selected%> selected="selected"<%endif%>><%' ' x $CatDepth%><%Name%></option>
|
||||
<%~endloop%>
|
||||
</select>
|
||||
<%~endif%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row required clear">
|
||||
<label for="Type" class="name">Type: <span>*</span></label>
|
||||
<div class="value">
|
||||
<select name="Type" id="Type">
|
||||
<option value="editorial"<%if Type eq 'editorial'%> selected<%endif%>>editorial</option>
|
||||
<option value="news"<%if Type eq 'news'%> selected<%endif%>>news</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row required clear">
|
||||
<label for="Link_Type" class="name">Link Type: <span>*</span></label>
|
||||
<div class="value">
|
||||
<% if modify and Link_Type%>
|
||||
<input type="hidden" id="Link_Type" name="Link_Type" value="<%Link_Type%>">
|
||||
<%if Link_Type eq 'photo'%>Photo Gallery<%elseif Link_Type eq 'video'%>Video<%else%>Article<%endif%>
|
||||
<% else %>
|
||||
<select name="Link_Type" id="Link_Type">
|
||||
<option value="article"<%if Link_Type eq 'article'%> selected<%endif%>>Article</option>
|
||||
<option value="photo"<%if Link_Type eq 'photo'%> selected<%endif%>>Photo Gallery</option>
|
||||
<option value="video"<%if Link_Type eq 'video'%> selected<%endif%>>Video</option>
|
||||
</select>
|
||||
<% endif%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Description" class="name">Description:</label>
|
||||
<div class="value">
|
||||
<textarea id="Description" name="Description" rows="3" cols="25"><%if Description%><%escape_html Description%><%endif%></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Contact_Name" class="name">Contact Name:</label>
|
||||
<div class="value">
|
||||
<input type="text" id="Contact_Name" name="Contact_Name" value="<%if Contact_Name%><%escape_html Contact_Name%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Contact_Email" class="name">Contact E-mail:</label>
|
||||
<div class="value">
|
||||
<input type="text" id="Contact_Email" name="Contact_Email" value="<%if Contact_Email%><%escape_html Contact_Email%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Add_Date" class="name">Add Date: </label>
|
||||
<div class="value">
|
||||
<input type="text" id="Add_Date" name="Add_Date" value="<%if Add_Date%><%escape_html Add_Date%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Mod_Date" class="name">Mod Date: </label>
|
||||
<div class="value">
|
||||
<input type="text" id="Mod_Date" name="Mod_Date" value="<%if Mod_Date%><%escape_html Mod_Date%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div id='photo_body' class="row clear"<%if Link_Type ne 'photo' and Link_Type ne 'video' %> style="display:none"<% endif %>>
|
||||
<label for="Main_Body" class="name">Main Body:</label>
|
||||
<div class="value">
|
||||
<textarea id="Main_Body" name="Main_Body" rows="3" cols="25"><%if Paragraph1%><%escape_html Paragraph1%><%endif%></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div id='video_form'<%if Link_Type ne 'video'%> style="display:none"<%endif%>>
|
||||
<% include include_form_video.html %>
|
||||
</div>
|
||||
<div id='article_photo_form'<%if Link_Type eq 'video'%> style="display:none"<%endif%>>
|
||||
<% include include_form_article_photo.html %>
|
||||
</div>
|
||||
|
||||
<div class="row clear">
|
||||
<input type="hidden" name="t" value="dev" />
|
||||
<label for="facebook_published_image" class="name">Pick the image you want posted to Facebook:</label>
|
||||
<div class="value">
|
||||
<select name="facebook_published_image">
|
||||
<option>Select One</option>
|
||||
<%loop 1 .. 16%>
|
||||
<option value="Image<%loop_value%>">Image<%loop_value%></option>
|
||||
<%endloop%>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row clear">
|
||||
<label for="RelatedArticles" class="name">Related Article IDs:<br />One per line</label>
|
||||
<div class="value">
|
||||
<textarea id="RelatedArticles" name="RelatedArticles" rows="3" cols="25"><%if RelatedArticles%><%escape_html RelatedArticles%><%endif%></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Related_Article1" class="name">Related Article #1:</label>
|
||||
<div class="value">
|
||||
<input type="text" id="Related_Article1" name="Related_Article1" value="<%if Related_Article1%><%escape_html Related_Article1%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Related_Article2" class="name">Related Article #2:</label>
|
||||
<div class="value">
|
||||
<input type="text" id="Related_Article2" name="Related_Article2" value="<%if Related_Article2%><%escape_html Related_Article2%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Related_Article3" class="name">Related Article #3:</label>
|
||||
<div class="value">
|
||||
<input type="text" id="Related_Article3" name="Related_Article3" value="<%if Related_Article3%><%escape_html Related_Article3%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Related_Article4" class="name">Related Article #4:</label>
|
||||
<div class="value">
|
||||
<input type="text" id="Related_Article4" name="Related_Article4" value="<%if Related_Article4%><%escape_html Related_Article4%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row clear">
|
||||
<label for="Related_Article5" class="name">Related Article #5:</label>
|
||||
<div class="value">
|
||||
<input type="text" id="Related_Article5" name="Related_Article5" value="<%if Related_Article5%><%escape_html Related_Article5%><%endif%>" class="text" />
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user