<?php require_once "parts.php"; require_once "model.php"; ?> <?php $tagsList = getAllTags(); if (!isset($_GET["tool"])) { header('Location: select-tool.php'); } $tool = getToolByName($_GET["tool"]); $selectedTags = getTagsFromTool($tool['name'], $nameOnly = true); $tagsNames = array(); foreach ($selectedTags as $tag) { array_push($tagsNames, $tag['name']); } $selectedTags = $tagsNames; ?> <?php get_header(); ?> <!-- Heading --> <div class="head"> <div class="container"> <div class="row">
<?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...",