Example #1
0
/**
 * Get more page permalink
 * 
 * @param unknown $morepageid
 * @param unknown $morePage
 * @return string
 */
function get_morepage_permalink($morepageid, $morePage)
{
    $link = getPermalink();
    if (!empty($link)) {
        /** Return SEO more page URL if permalink enabled  */
        if (isset($morePage)) {
            $type = $morePage;
            /** Check more page is popular / recent  / featured / categories/ random  */
            switch ($type) {
                case 'popular':
                    /** Set popular page url */
                    $location = home_url() . '/popular_videos/';
                    break;
                case 'featured':
                    /** Set featured page url */
                    $location = home_url() . '/featured_videos/';
                    break;
                case 'random':
                    /** Set random page url */
                    $location = home_url() . '/random_videos/';
                    break;
                case 'categories':
                    /** Set categories page url */
                    $location = home_url() . '/all-category_videos/';
                    break;
                case 'recent':
                default:
                    /** Set recent page url */
                    $location = home_url() . '/recent_videos/';
                    break;
            }
        }
        /** Return more pages URL */
        return $location;
    } else {
        /** Return Non SEO more page URL if permalink disabled */
        return home_url() . '/?page_id=' . $morepageid . '&more=' . $morePage;
    }
}
Example #2
0
<script type="text/javascript" src="js/d3/src/geom/index.js"></script>

<title>Wissensbasis-Visualisierer - Beta</title>
</head>
<body>
<div class="container-fluid">
 <div class="row header">
  <div class="col-xs-12 col-sm-6 col-md-5 col-lg-4"><h1 ><a href="?"><span class="glyphicon glyphicon-glyphicon glyphicon-fullscreen"></span> Wissensbasis-Visualisierer</h1></a></div>
  <div class="col-xs-12 col-sm-6 options">
   <a href="javascript:void(0);" id="properties"><span class="glyphicon glyphicon-transfer"></span> Link-URIs</a>
   <a href="<?php 
echo getPermalink();
?>
" id="properties"><span class="glyphicon glyphicon-refresh"></span> Neu laden</a>
   <a href="<?php 
echo getPermalink();
?>
" target="_blank"><span class="glyphicon glyphicon-link"></span> Permalink</a>
   <a href="hilfe.php" target="_blank"><span class="glyphicon glyphicon glyphicon-question-sign"></span> Hilfe</a>
   
   </div>
 </div>
</div>
<?php 
// Wurde Formular abgesendet? JSON generieren
if ($dataSent) {
    ob_start();
    require 'json.php';
    $JSON = ob_get_contents();
    ob_end_clean();
    ?>