echo $apiDetails['obj_type'] . " " . $apiDetails['title']; ?> </span> - <?php echo stripslashes($apiDetails['descs_short']); ?> </div> <h2> <small>Description</small> </h2> <?php if (strlen($apiDetails['defination']) > 0) { echo "<div class='alert alert-info'><i class='fa fa-info-circle'></i> {$apiDetails['defination']}</div>"; } echo "<div class='nested textContent'>" . showMarkitupPreview($apiDetails['descs_long'], $apiDetails['descs_parser']) . "</div>"; ?> <?php if ($apiDetails['descs_params'] != "") { ?> <hr/> <h2> <small>Parameters</small> </h2> <div class='nested'><?php echo stripslashes($apiDetails['descs_params']); ?> </div> <?php
if (strlen($guideDetails['tags']) > 0) { echo "<span class='tags'>"; $guideDetails['tags'] = explode(",", $guideDetails['tags']); foreach ($guideDetails['tags'] as $tag) { echo "<a>{$tag}</a>"; } echo "</span>"; } ?> </small> </h1> <div><?php //$guideDetails['guide_txt']=stripslashes($guideDetails['guide_txt']); //echo $guideDetails['guide_txt']; echo showMarkitupPreview($guideDetails['guide_txt'], $guideDetails['guide_parser']); ?> </div> <p></p> </div><!-- col-lg-12 end--> </div> </div> <script> $(function() { $("#publishArticle").click(function() { rel=$(this).attr("rel"); lx=getServiceCMD("guides","publish-guide"); processAJAXPostQuery(lx,"gid="+rel,function(txt) {
<?php if (!defined('ROOT')) { exit('No direct script access allowed'); } if (isset($_REQUEST["action"])) { loadModuleLib("markitup", "api"); switch ($_REQUEST["action"]) { case 'preview': if (!isset($_POST['data'])) { $_POST['data'] = ""; } if (isset($_REQUEST['type'])) { echo showMarkitupPreview($_POST['data'], $_REQUEST['type']); } else { echo "Sorry, Type Not Defined"; } break; case "template": break; default: # code... break; } }