<?php require_once 'parts.php'; require_once 'model.php'; ?> <?php //$toolsList=array(array("name"=>"Mailchimp","url"=>"http://www.mailchimp.com","pitch"=>"the best email ever"), array("name"=>"Veeflow","url"=>"http://www.veeflow.com","pitch"=>"measure and increase virality in your website"), //array("name"=>"MixPanel","url"=>"www.mixpanel.com","pitch"=>"Bla bla bla "), array("name"=>"Kissmetrics","url"=>"http://www.kissmetrics.com","pitch"=>"Bla bla bla ")); $toolsList = getToolsByTag($_GET['tag']); $tag = getTagByName($_GET['tag']); ?> <?php $title = 'Tools for ' . $tag["name"] . ' | Startup Tools'; $description = $tag["description"] . ": "; $keywords = $tag["name"] . ", Startup Tools, Tools"; $i = 0; foreach ($toolsList as $kw) { $i++; if ($i < 5) { $keywords = $keywords . ", " . $kw["name"]; $description = $description . $kw["name"] . ", "; } } $description = substr($description, 0, -2) . "?"; get_header($title, $description, $keywords); $facebookShareLink = "https://www.facebook.com/dialog/feed?app_id=188598501277677&link=http://www.tuneyourstartup.com/tag.php%3Ftag%3D" . $tag['name'] . "&picture=http://www.tuneyourstartup.com/img/favicon/share_img.png&name=" . $title . "&caption=The%20most%20complete%20list%20of%20startup%20tools&description=" . $description . "&redirect_uri=http://www.tuneyourstartup.com/tag.php%3Ftag%3D" . $tag['name']; ?>
<?php require_once 'parts.php'; require_once 'model.php'; ?> <?php //$tool=array("name"=>"Mailchimp","url"=>"http://www.mailchimp.com","pitch"=>"the best email ever","description"=>"Mailchimp is bla bla bla-"); $tool = getToolByName($_GET['tool']); $relatedTags = getTagsFromTool($tool['name']); if (isset($_GET['src_tag'])) { $sourceTag = $_GET['src_tag']; } else { $sourceTag = $relatedTags[0]['name']; } $relatedTools = getToolsByTag($sourceTag, $tool["name"]); ?> <?php $title = $tool["name"] . ' | Startup Tools'; $description = $tool["pitch"]; $keywords = $tool["name"] . ", Startup Tools"; foreach ($relatedTags as $kw) { $keywords = $keywords . ", " . $kw["name"]; } $script = ' <script> $(document).ready(function() { $(".edit").editable("save.php", { indicator : "Saving...",