<% set title = "Add a Link" %>
<!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%>: <%title%></title>
<script type="text/javascript" src="<%config.build_static_url%>/jquery/jquery.js"></script>
<script type="text/javascript" src="<%config.build_static_url%>/jquery/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="<%config.build_static_url%>/jquery/css/jquery.lightbox-0.5.css" media="screen" />
<%include include_common_head.html%>
</head>
<body id="add">
<%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>
<h2><% title %></h2>
<%~ set megabytes = 1048576 ~%>
<%~ set image_cfg = Links::Plugins::get_plugin_user_cfg('SlideShow') ~%>
<%~ set image_size = image_cfg.max_upload_size / $megabytes ~%>
<%~ set image_size = round($image_size) ~%>
<%~ set video_max_size = Plugins::ConvertVideo::get_video_max_size() ~%>
<%~ set video_size = $video_max_size / $megabytes ~%>
<%~ set video_size = round($video_size) ~%>
<p>

  Please completely fill out the form, and we'll add your article as soon as possible.<br/>
  <b>Note:</b> image files must be smaller than <% if image_size %><% image_size %><%else%>1<%endif%>MB and video files must be smaller than <% if video_size %><% video_size %><%else%>1<%endif%>MB.
</p>

<form id="modify_form" action="<%config.db_cgi_url%>/add.cgi" enctype="multipart/form-data" method="post">
<%include include_form.html%>
  <div class="formsubmit">
    <input type="submit" name="add" value="Add" class="submit" />
  </div>
</form>

<%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>
</body>
</html>
