Esempio n. 1
0
 function render_weblinks($info)
 {
     global $locale;
     echo render_breadcrumbs();
     opentable($locale['400']);
     if ($info['weblink_cat_rows'] != 0) {
         $counter = 0;
         $columns = 2;
         echo "<div class='row m-0'>\n";
         if (!empty($info['item'])) {
             foreach ($info['item'] as $weblink_cat_id => $data) {
                 if ($counter != 0 && $counter % $columns == 0) {
                     echo "</div>\n<div class='row m-0'>\n";
                 }
                 echo "<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 p-t-20'>\n";
                 echo "<div class='media'>\n";
                 echo "<div class='pull-left'><i class='entypo folder mid-opacity icon-sm'></i></div>\n";
                 echo "<div class='media-body overflow-hide'>\n";
                 echo "<div class='media-heading strong'><a href='" . $data['weblink_item']['link'] . "'>" . $data['weblink_item']['name'] . "</a> <span class='small'>" . $data['weblink_count'] . "</span></div>\n";
                 if ($data['weblink_cat_description'] != "") {
                     echo "<span>" . $data['weblink_cat_description'] . "</span>";
                 }
                 echo "</div>\n</div>\n";
                 echo "</div>\n";
                 $counter++;
             }
         }
         echo "</div>\n";
     } else {
         echo "<div style='text-align:center'><br />\n" . $locale['430'] . "<br /><br />\n</div>\n";
     }
     closetable();
 }
Esempio n. 2
0
 function display_forum_pollform($info)
 {
     echo render_breadcrumbs();
     opentable($info['title']);
     echo "<h4 class='m-b-20'>" . $info['description'] . "</h4>\n";
     echo "<!--pre_form-->\n";
     echo $info['field']['openform'];
     echo $info['field']['poll_field'];
     echo $info['field']['poll_button'];
     echo $info['field']['closeform'];
     closetable();
 }
Esempio n. 3
0
 function render_main_blog($info)
 {
     add_to_head("<link rel='stylesheet' href='" . INFUSIONS . "blog/templates/css/blog.css' type='text/css'>");
     echo render_breadcrumbs();
     echo "<div class='row'>\n";
     echo "<div class='col-xs-12 col-sm-9 overflow-hide'>\n";
     if (isset($_GET['readmore']) && !empty($info['blog_item'])) {
         echo "<!--blog_pre_readmore-->";
         echo display_blog_item($info);
         // change this integration
         echo "<!--blog_sub_readmore-->";
     } else {
         echo display_blog_index($info);
     }
     echo "</div><div class='col-xs-12 col-sm-3'>\n";
     echo "<!--pre_blog_cat_idx-->";
     echo display_blog_menu($info);
     echo "<!--sub_blog_cat_idx-->";
     echo "</div>\n";
     echo "</div>\n";
 }
Esempio n. 4
0
 function render_custompage($info)
 {
     echo render_breadcrumbs();
     opentable($info['title']);
     echo "<!--cp_idx-->\n";
     if (!empty($info['error'])) {
         echo "<div class='well text-center'>\n";
         echo $info['error'];
         echo "</div>\n";
     } else {
         echo $info['body'][$_GET['rowstart']];
     }
     closetable();
     if (!empty($info['pagenav'])) {
         echo "<div class='display-block text-center m-t-5'>\n";
         echo $info['pagenav'];
         echo "</div>\n";
     }
     echo "<!--cp_sub_idx-->\n";
     echo $info['show_comments'];
     echo $info['show_ratings'];
 }
Esempio n. 5
0
    function display_forum_tags($info)
    {
        $locale = fusion_get_locale();
        echo render_breadcrumbs();
        if (isset($_GET['tag_id'])) {
            // thread design
            echo "<!--pre_forum-->\n";
            echo "<div class='forum-title m-t-20'>" . $locale['forum_0341'] . "</div>\n";
            echo "<div class='filter'>\n";
            forum_filter($info);
            echo "</div>\n";
            if (!empty($info['threads']['pagenav'])) {
                echo "<div class='text-right'>\n";
                echo $info['threads']['pagenav'];
                echo "</div>\n";
            }
            if (!empty($info['threads'])) {
                echo "<div class='forum-container list-group-item'>\n";
                if (!empty($info['threads']['sticky'])) {
                    foreach ($info['threads']['sticky'] as $cdata) {
                        render_thread_item($cdata);
                    }
                }
                if (!empty($info['threads']['item'])) {
                    foreach ($info['threads']['item'] as $cdata) {
                        render_thread_item($cdata);
                    }
                }
                echo "</div>\n";
            } else {
                echo "<div class='text-center'>" . $locale['forum_0269'] . "</div>\n";
            }
            if (!empty($info['threads']['pagenav'])) {
                echo "<div class='text-right hidden-xs m-t-15'>\n";
                echo $info['threads']['pagenav'];
                echo "</div>\n";
            }
            if (!empty($info['threads']['pagenav2'])) {
                echo "<div class='hidden-sm hidden-md hidden-lg m-t-15'>\n";
                echo $info['threads']['pagenav2'];
                echo "</div>\n";
            }
        } else {
            ?>
            <div class="row m-0">
                <?php 
            if (!empty($info['tags'])) {
                ?>
                    <?php 
                unset($info['tags'][0]);
                ?>
                    <?php 
                foreach ($info['tags'] as $tag_id => $tag_data) {
                    ?>
                        <div class="col-xs-12 col-sm-4" style="height: 200px; max-height:200px; background-color: <?php 
                    echo $tag_data['tag_color'];
                    ?>
">
                            <a href="<?php 
                    echo $tag_data['tag_link'];
                    ?>
">
                                <div class="panel-body">
                                    <h4 class="text-white"><?php 
                    echo $tag_data['tag_title'];
                    ?>
</h4>
                                    <p class="text-white"><?php 
                    echo $tag_data['tag_description'];
                    ?>
</p>
                                </div>
                                <hr/>
                                <?php 
                    if (!empty($tag_data['threads'])) {
                        ?>
                                <span class="tag_result text-white">
                                    <?php 
                        echo trim_text($tag_data['threads']['thread_subject'], 10) . " - " . timer($tag_data['threads']['thread_lastpost']);
                        ?>
                                </span>
                                <?php 
                    }
                    ?>
                            </a>
                        </div>
                    <?php 
                }
                ?>
                <?php 
            }
            ?>
            </div>
            <?php 
        }
    }
Esempio n. 6
0
    /**
     * News Item Page Template
     * @param $info
     */
    function render_news_item($info)
    {
        global $aidlink;
        $locale = fusion_get_locale();
        $news_settings = get_settings('news');
        $data = $info['news_item'];
        add_to_head("<link rel='stylesheet' href='" . INFUSIONS . "news/templates/css/news.css' type='text/css'>");
        add_to_head("<link rel='stylesheet' href='" . INCLUDES . "jquery/colorbox/colorbox.css' type='text/css' media='screen' />");
        add_to_head("<script type='text/javascript' src='" . INCLUDES . "jquery/colorbox/jquery.colorbox.js'></script>");
        add_to_footer('<script type="text/javascript">
			$(document).ready(function() {
				$(".news-image-overlay").colorbox({
					transition: "elasic",
					height:"100%",
					width:"100%",
					maxWidth:"98%",
					maxHeight:"98%",
					scrolling:false,
					overlayClose:true,
					close:false,
					photo:true,
					onComplete: function(result) {
						$("#colorbox").live("click", function(){
						$(this).unbind("click");
						$.fn.colorbox.close();
						});
					},
					onLoad: function () {
					}
			   });
			});
			</script>');
        opentable($locale['news_0004']);
        echo render_breadcrumbs();
        echo "<!--news_pre_readmore-->";
        echo "<article class='news-item' style='display:block; width:100%; overflow:hidden;'>\n";
        echo "<h2 class='text-center'>" . $data['news_subject'] . "</h2>\n";
        echo "<div class='news_news text-dark m-t-20 m-b-20'>\n";
        if ($data['news_image_src']) {
            echo "<a class='" . $data['news_ialign'] . " news-image-overlay' href='" . $data['news_image_src'] . "'>\n            <img class='img-responsive' src='" . $data['news_image_src'] . "' alt='" . $data['news_subject'] . "' style='padding:5px; max-height:" . $news_settings['news_photo_h'] . "px; overflow:hidden;' /></a>";
        } elseif (!empty($data['news_image']) && !empty($data['news_cat_image_src'])) {
            echo "<a class='" . $data['news_ialign'] . "' href='" . INFUSIONS . "news/news.php?cat_id=" . $data['news_cat_id'] . "'>\n            <img class='img-responsive' src='" . IMAGES_NC . $data['news_cat_image_src'] . "' style='padding:5px; max-height:" . $news_settings['news_photo_h'] . "px; alt='" . $data['news_cat_name'] . "' />\n            </a>";
        }
        echo $data['news_news'];
        echo "</div>\n";
        echo "<div class='news_extended text-dark m-t-20 m-b-20'>" . $data['news_extended'] . "</div>\n";
        echo "<div style='clear:both;'></div>\n";
        echo "<div class='well m-t-5 text-center'>\n";
        echo "<span class='news-action m-r-10'><i class='fa fa-user'></i>" . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "</span>\n";
        echo "<span class='news-action m-r-10'><i class='fa fa-calendar'></i>" . showdate("newsdate", $data['news_datestamp']) . "</span>\n";
        echo "<span class='news-action'><i class='fa fa-eye'></i><span class='text-dark m-r-10'>" . number_format($data['news_reads']) . "</span>\n</span>";
        echo $data['news_allow_comments'] ? display_comments($data['news_comments'], INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "#comments") : '';
        echo $data['news_allow_ratings'] ? "<span class='m-r-10'>" . display_ratings($data['news_sum_rating'], $data['news_count_votes'], INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "#ratings") . " </span>" : '';
        echo "<a class='m-r-10' title='" . $locale['news_0002'] . "' href='" . BASEDIR . "print.php?type=N&amp;item_id=" . $data['news_id'] . "'><i class='fa fa-print'></i></a>";
        echo iADMIN && checkrights("N") ? "<a title='" . $locale['news_0003'] . "' href='" . INFUSIONS . "news/news_admin.php" . $aidlink . "&amp;action=edit&amp;section=news_form&amp;news_id=" . $data['news_id'] . "' title='" . $locale['news_0003'] . "' />" . $locale['news_0003'] . "</a>\n" : "";
        echo "</div>";
        echo "<!--news_sub_readmore-->";
        echo !isset($_GET['readmore']) && $data['news_ext'] == "y" ? "<div class='m-t-20'>\n<a href='" . INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "' class='button'>" . $locale['news_0001'] . "</a>\n</div>\n" : "";
        if ($data['page_count'] > 0) {
            echo "<div class='text-center m-t-10'>\n" . makepagenav($_GET['rowstart'], 1, $data['page_count'], 3, INFUSIONS . "news/news.php?readmore=" . $_GET['readmore'] . "&amp;") . "\n</div>\n";
        }
        if ($data['news_allow_comments']) {
            echo "<hr />" . showcomments("N", DB_NEWS, "news_id", $_GET['readmore'], INFUSIONS . "news/news.php?readmore=" . $_GET['readmore']) . "\n";
        }
        if ($data['news_allow_ratings']) {
            echo "<hr />" . showratings("N", $_GET['readmore'], INFUSIONS . "news/news.php?readmore=" . $_GET['readmore']) . "\n";
        }
        echo "</article>\n";
        closetable();
    }
Esempio n. 7
0
 function render_thread($info)
 {
     global $locale;
     $buttons = !empty($info['buttons']) ? $info['buttons'] : array();
     $data = !empty($info['thread']) ? $info['thread'] : array();
     $pdata = !empty($info['post_items']) ? $info['post_items'] : array();
     $icon = array('', '', 'fa fa-trophy fa-fw');
     $p_title = array();
     echo render_breadcrumbs();
     echo "<div class='clearfix'>\n";
     if (isset($info['page_nav'])) {
         echo "<div id='forum_top' class='pull-right m-t-10 text-lighter clearfix'>\n" . $info['page_nav'] . "</div>\n";
     }
     echo "<h2 class='m-t-0 thread-header pull-left m-r-20'>\n\t\t" . ($data['thread_sticky'] == TRUE ? "<i title='" . $locale['forum_0103'] . "' class='" . get_forumIcons("sticky") . "'></i>" : "") . "\n\t\t" . ($data['thread_locked'] == TRUE ? "<i title='" . $locale['forum_0102'] . "' class='" . get_forumIcons("lock") . "'></i>" : "") . "\n\t\t" . $data['thread_subject'] . "</h2>\n";
     echo "</div>\n";
     echo "<div class='last-updated'>" . $locale['forum_0363'] . timer($data['thread_lastpost']) . " <i class='fa fa-calendar fa-fw'></i></div>\n";
     if (!empty($info['poll_form'])) {
         echo "<div class='well'>" . $info['poll_form'] . "</div>\n";
     }
     if ($info['permissions']['can_post']) {
         echo "<div class='pull-right'>\n";
         if ($info['permissions']['can_create_poll']) {
             echo "<a class='btn btn-success btn-sm " . (!empty($info['thread']['thread_poll']) ? 'disabled' : '') . "' title='" . $buttons['poll']['title'] . "' href='" . $buttons['poll']['link'] . "'>" . $buttons['poll']['title'] . " <i class='fa fa-pie-chart'></i> </a>\n";
         }
         echo "<a class='btn btn-primary btn-sm " . (empty($buttons['newthread']) ? 'disabled' : '') . " ' href='" . $buttons['newthread']['link'] . "'>" . $buttons['newthread']['title'] . "</a>\n";
         echo "</div>\n";
     }
     echo "<div class='top-action-bar'>\n";
     // now change the whole thing to dropdown selector
     $selector['oldest'] = $locale['forum_0180'];
     $selector['latest'] = $locale['forum_0181'];
     echo "<span class='display-inline-block m-r-10 btn-group' style='position:relative; vertical-align:middle;'>\n";
     echo "<a class='btn btn-sm btn-default' data-toggle='dropdown' class='dropdown-toggle'><strong>" . $locale['forum_0183'] . "</strong>\n\t\t" . (isset($_GET['section']) && in_array($_GET['section'], array_flip($selector)) ? $selector[$_GET['section']] : $locale['forum_0180']) . " <span class='caret'></span>\n\t\t</a>\n";
     echo "<ul class='dropdown-menu'>\n";
     foreach ($info['post-filters'] as $i => $filters) {
         echo "<li><a class='text-smaller' href='" . $filters['value'] . "'>" . $filters['locale'] . "</a></li>\n";
     }
     echo "</ul>\n";
     echo !empty($buttons['notify']) ? "<a class='btn btn-default btn-sm' title='" . $buttons['notify']['title'] . "' href='" . $buttons['notify']['link'] . "'>" . $buttons['notify']['title'] . " <i class='fa fa-eye'></i></a>\n" : '';
     echo "<a class='btn btn-default btn-sm' title='" . $buttons['print']['title'] . "' href='" . $buttons['print']['link'] . "'>" . $buttons['print']['title'] . " <i class='fa fa-print'></i> </a>\n";
     echo "</span>\n";
     echo "</div>\n";
     echo "<!--pre_forum_thread-->\n";
     echo $info['open_post_form'];
     $i = 0;
     if (!empty($pdata)) {
         foreach ($pdata as $post_id => $post_data) {
             $i++;
             echo "<!--forum_thread_prepost_" . $post_data['post_id'] . "-->\n";
             render_post_item($post_data, $i);
             if ($post_id == $info['post_firstpost'] && $info['permissions']['can_post']) {
                 echo "<div class='text-right'>\n";
                 echo "<div class='display-inline-block'>" . $info['thread_posts'] . "</div>\n";
                 echo "<a class='m-l-20 btn btn-success btn-md vatop " . (empty($buttons['reply']) ? 'disabled' : '') . "' href='" . $buttons['reply']['link'] . "'>" . $buttons['reply']['title'] . "</a>\n";
                 echo "</div>\n";
             }
         }
     }
     if (isset($info['page_nav'])) {
         echo "<div id='forum_bottom' class='text-left m-b-10 text-lighter clearfix'>\n" . $info['page_nav'] . "</div>\n";
     }
     if (iMOD) {
         echo $info['mod_form'];
     }
     // Thread buttons, bottom
     if (iMEMBER && $info['permissions']['can_post']) {
         echo "<div class='text-right m-t-20'>\n";
         echo "<a class='btn btn-primary btn-sm m-r-5 " . (empty($buttons['newthread']) ? 'disabled' : '') . " ' href='" . $buttons['newthread']['link'] . "'>" . $buttons['newthread']['title'] . "</a>\n";
         echo "<a class='btn btn-primary btn-sm " . (empty($buttons['reply']) ? 'disabled' : '') . "' href='" . $buttons['reply']['link'] . "'>" . $buttons['reply']['title'] . "</a>\n";
         echo "</div>\n";
     }
     echo $info['close_post_form'];
     echo $info['quick_reply_form'];
     echo "\n\t\t<div class='list-group-item m-t-20'>\n\t\t\t<span>" . sprintf($locale['forum_perm_access'], $info['permissions']['can_access'] == TRUE ? "<strong class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>\n\t\t\t<span>" . sprintf($locale['forum_perm_post'], $info['permissions']['can_post'] == TRUE ? "<strong class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>\n\t\t\t<span>" . sprintf($locale['forum_perm_reply'], $info['permissions']['can_reply'] == TRUE ? "<strong class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>\n\t\t\t";
     if ($data['thread_poll'] == TRUE) {
         echo "\t<span>" . sprintf($locale['forum_perm_edit_poll'], $info['permissions']['can_edit_poll'] == TRUE ? "<strong  class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>\n\t\t\t<span>" . sprintf($locale['forum_perm_vote_poll'], $info['permissions']['can_vote_poll'] == TRUE ? "<strong  class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>";
     } else {
         echo "\t<span>" . sprintf($locale['forum_perm_create_poll'], $info['permissions']['can_create_poll'] == TRUE ? "<strong  class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>";
     }
     echo "\n\t\t\t<span>" . sprintf($locale['forum_perm_upload'], $info['permissions']['can_upload_attach'] == TRUE ? "<strong  class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>\n\t\t\t<span>" . sprintf($locale['forum_perm_download'], $info['permissions']['can_download_attach'] == TRUE ? "<strong  class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>\n\t\t\t";
     if ($data['forum_type'] == "4") {
         echo "<span>" . sprintf($locale['forum_perm_rate'], $info['permissions']['can_rate'] == TRUE ? "<strong  class='text-success'>" . $locale['can'] . "</strong>" : "<strong class='text-danger'>" . $locale['cannot'] . "</strong>") . "</span><br/>";
     }
     echo "\n\t\t</div>\n\n\t\t";
     if ($info['forum_moderators']) {
         echo "<div class='list-group-item'>" . $locale['forum_0185'] . " " . $info['forum_moderators'] . "</div>\n";
     }
     if (!empty($info['thread_users'])) {
         echo "<div class='list-group-item'>\n";
         echo "<span class='m-r-10'>" . $locale['forum_0581'] . "</span>";
         $i = 1;
         $max = count($info['thread_users']);
         foreach ($info['thread_users'] as $user_id => $users) {
             echo $users;
             echo $max == $i ? " " : ", ";
             $i++;
         }
         echo "</div>\n";
     }
 }
Esempio n. 8
0
function render_admin_panel()
{
    global $locale, $userdata, $defender, $pages, $aidlink, $admin;
    $languages = fusion_get_enabled_languages();
    // Admin panel page
    echo "<div id='admin-panel' class='clearfix in'>\n";
    // Top header section
    echo "<section id='acp-header' class='pull-left affix clearfix' data-offset-top='0' data-offset-bottom='0'>\n";
    // Top left logo
    echo "<div class='brand'>\n";
    echo "<div class='pull-right'>\n";
    echo "</div>\n</div>\n";
    // Top navigation
    echo "<nav>\n";
    // Top side panel toggler
    echo "<ul class='venus-toggler'>\n";
    echo "<li><a id='toggle-canvas' class='pointer' style='border-left:none;'><i class='fa fa-bars fa-lg'></i></a></li>\n";
    echo "</ul>\n";
    echo $admin->horiziontal_admin_nav(true);
    // Top right menu links
    echo "<ul class='top-right-menu pull-right m-r-15'>\n";
    echo "<li class='dropdown'>\n";
    echo "<a class='dropdown-toggle pointer' data-toggle='dropdown'>" . display_avatar($userdata, '25px', '', '', '') . " " . $locale['logged'] . "<strong>" . $userdata['user_name'] . "</strong> <span class='caret'></span>\n</a>\n";
    echo "<ul class='dropdown-menu' role='menu'>\n";
    echo "<li><a class='display-block' href='" . BASEDIR . "edit_profile.php'>" . $locale['edit'] . " " . $locale['profile'] . "</a></li>\n";
    echo "<li><a class='display-block' href='" . BASEDIR . "profile.php?lookup=" . $userdata['user_id'] . "'>" . $locale['view'] . " " . $locale['profile'] . "</a></li>\n";
    echo "<li class='divider'> </li>\n";
    echo "<li><a class='display-block' href='" . FUSION_REQUEST . "&amp;logout'>" . $locale['admin-logout'] . "</a></li>\n";
    echo "<li><a class='display-block' href='" . BASEDIR . "index.php?logout=yes'>" . $locale['logout'] . "</a></li>\n";
    echo "</ul>\n";
    echo "</li>\n";
    echo "<li><a title='" . $locale['settings'] . "' href='" . ADMIN . "settings_main.php" . $aidlink . "'><i class='fa fa-cog fa-lg'></i></a></li>\n";
    echo "<li><a title='" . fusion_get_settings('sitename') . "' href='" . BASEDIR . "index.php'><i class='fa fa-home fa-lg'></i></a>\n</li>\n";
    echo "<li><a title='" . $locale['message'] . "' href='" . BASEDIR . "messages.php'><i class='fa fa-envelope-o fa-lg'></i></a>\n</li>\n";
    if (count($languages) > 1) {
        echo "<li class='dropdown'><a class='dropdown-toggle pointer' data-toggle='dropdown' title='" . $locale['282'] . "'><i class='fa fa-globe fa-lg fa-fw'></i> " . translate_lang_names(LANGUAGE) . "<span class='caret'></span></a>\n";
        echo "<ul class='dropdown-menu'>\n";
        foreach ($languages as $language_folder => $language_name) {
            echo "<li><a class='display-block' href='" . clean_request("lang=" . $language_folder, array("lang"), FALSE) . "'><img class='m-r-5' src='" . BASEDIR . "locale/{$language_folder}/{$language_folder}-s.png'> {$language_name}</a></li>\n";
        }
        echo "</ul>\n";
        echo "</li>\n";
    }
    echo "</ul>\n";
    // .top-right-menu
    echo "</nav>\n";
    echo "</section>\n";
    // Content section
    echo "<div class='content-wrapper display-table pull-left'>\n";
    // Left side panel
    echo "<div id='acp-left' class='pull-left affix' data-offset-top='0' data-offset-bottom='0'>\n";
    // collapse to top menu on sm and xs
    echo "<div class='panel panel-default admin'><div class='panel-body clearfix'>\n";
    echo "<div class='pull-left m-r-10'>\n" . display_avatar($userdata, '50px', '', '', '') . "</div>\n";
    echo "<span class='overflow-hide m-t-10'><h4 class='m-b-0 text-stronger'>\n" . $userdata['user_name'] . "</h4>\n" . getuserlevel($userdata['user_level']) . "</span></div>\n";
    echo "</div>\n";
    echo $admin->vertical_admin_nav();
    echo "</div>\n";
    // #acp-left
    // Control panel content wrapper
    echo "<div id='acp-main' class='clearfix' style='vertical-align:top;'>\n";
    // Main content wrapper
    echo "<div id='acp-content' class='m-t-20 col-xs-12 col-sm-12 col-md-12 col-lg-12'>\n";
    // Render breadcrumbs
    echo render_breadcrumbs();
    // Get and render notices
    $notices = getNotices();
    echo renderNotices($notices);
    // Render the content
    echo CONTENT;
    echo "</div>\n";
    // #acp-content
    // Footer section
    echo "<footer class='m-l-20 display-inline-block m-t-20 m-b-20'>\n";
    // Copyright
    echo "Venus Admin &copy; " . date("Y") . " created by <a href='https://www.php-fusion.co.uk'><strong>PHP-Fusion Inc.</strong></a>\n";
    echo showcopyright();
    // Render time
    if (fusion_get_settings('rendertime_enabled')) {
        echo "<br /><br />";
        // Make showing of queries and memory usage separate settings
        echo showrendertime();
        echo showMemoryUsage();
    }
    echo "</footer>\n";
    echo "</div>\n";
    // .acp-main
    echo "</div>\n";
    // .content-wrapper
    echo "</div>\n";
    // #admin-panel
    add_to_footer("<script src='" . THEMES . "admin_themes/Venus/includes/jquery.slimscroll.min.js'></script>");
    if (!isset($_COOKIE['acp_sidemenu'])) {
        setcookie("acp_sidemenu", 1, 64800);
    }
    add_to_jquery("\n\t// Initialize slimscroll\n\t\$('#adl').slimScroll({\n\t\theight: null\n\t});\n\n\t// Function to toggle side menu\n\tfunction toggleSideMenu(state) {\n\t\tvar panel_state = null;\n\t\tif (state == 'show') {\n\t\t\t\$('#admin-panel').addClass('in');\n\t\t\tvar panel_state = 1;\n\t\t} else if (state == 'hide') {\n\t\t\t\$('#admin-panel').removeClass('in');\n\t\t\tvar panel_state = 0;\n\t\t} else {\n\t\t\t\$('#admin-panel').toggleClass('in');\n\t\t\tvar panel_state = \$('#admin-panel').hasClass('in');\n\t\t}\n\t\tif (panel_state) {\n\t\t\t\$.cookie('" . COOKIE_PREFIX . "acp_sidemenu', '1', {expires: 164800});\n\t\t} else {\n\t\t\t\$.cookie('" . COOKIE_PREFIX . "acp_sidemenu', '0', {expires: 164800});\n\t\t}\n\t}\n\n\t// Adjust side menu height on page load, resize or orientation change\n\t\$(window).on('load resize orientationchange', function(event) {\n\t\tvar init_hgt = \$(window).height();\n\t\tvar small = \$('.brand-text').is(':visible');\n\t\tvar panel_height = (small ? init_hgt-125 : init_hgt-80);\n\t\tvar hgt = \$(this).height();\n\t\t\$('#acp-left').css('height', hgt);\n\t\t\$('.admin-vertical-link').css('height', panel_height);\n\t\t// Hide side menu on orientation change\n\t\t//if (event.type === 'orientationchange') {\n\t\t//\ttoggleSideMenu('show');\n\t\t//}\n\t});\n\t// Side menu toggler\n\t\$('#toggle-canvas').on('click', toggleSideMenu);\n\t");
}
Esempio n. 9
0
 function render_unsolved($info)
 {
     global $locale;
     echo render_breadcrumbs();
     if (!empty($info['item'])) {
         $i = 0;
         foreach ($info['item'] as $data) {
             // do a thread.
             render_thread_item($data);
             $i++;
         }
     } else {
         echo "<div class='well text-center'>" . $locale['global_023'] . "</div>\n";
     }
 }
Esempio n. 10
0
 function render_articles_category($info)
 {
     global $locale;
     if (isset($info['articles']['category'])) {
         $data = $info['articles']['category'];
         echo render_breadcrumbs();
         echo "<!--pre_article_cat-->";
         opentable($locale['400'] . ": " . $data['article_cat_name']);
         if (!empty($info['articles']['child_categories'])) {
             $counter = 0;
             $columns = 2;
             echo "<div class='row m-b-20'>\n";
             foreach ($info['articles']['child_categories'] as $catID => $catData) {
                 if ($counter != 0 && $counter % $columns == 0) {
                     echo "</div>\n<div class='row'>\n";
                 }
                 echo "<div class='col-xs-12 col-sm-6'>\n";
                 echo "<!--article_idx_cat_name-->\n";
                 echo "<h4><a href='" . INFUSIONS . "articles/articles.php?cat_id=" . $catData['article_cat_id'] . "'><strong>" . $catData['article_cat_name'] . "</a></strong> <span class='small2'>(" . $catData['article_count'] . ")</span></h4>";
                 echo $catData['article_cat_description'] != "" ? $catData['article_cat_description'] : "";
                 echo "</div>\n";
                 $counter++;
             }
             echo "</div>\n";
         }
         if (isset($info['articles']['item'])) {
             foreach ($info['articles']['item'] as $cdata) {
                 echo "<h4 class='display-inline-block strong'><a href='" . INFUSIONS . "articles/articles.php?article_id=" . $cdata['article_id'] . "'>" . $cdata['article_subject'] . "</a></strong></h4> <span class='label label-success m-l-5'>" . $cdata['new'] . "</span><br/>\n";
                 echo preg_replace("/<!?--\\s*pagebreak\\s*-->/i", "", stripslashes($cdata['article_snippet'])) . "\n";
             }
             echo !empty($info['page_nav']) ? "<div class='m-t-5'>" . $info['page_nav'] . "</div>\n" : '';
         } else {
             echo "<div class='well text-center'>" . $locale['403'] . "</div>\n";
         }
         echo "<!--sub_article_cat-->";
         closetable();
     }
 }
Esempio n. 11
0
 /**
  * News Page Template
  * @param $info
  */
 function render_main_news($info)
 {
     global $userdata, $settings, $news_settings, $locale;
     add_to_head("<link href='" . INFUSIONS . "news/templates/css/news.css' rel='stylesheet'/>\n");
     add_to_head("<script type='text/javascript' src='" . INCLUDES . "jquery/jquery.cookie.js'></script>");
     if (isset($_POST['switchview'])) {
         add_to_jquery("\$.cookie('fusion_news_view', '" . $_POST['switchview'] . "', {expires: 7});");
         $_COOKIE['fusion_news_view'] = $_POST['switchview'];
     }
     opentable($locale['news_0004']);
     echo render_breadcrumbs();
     /* Slideshow */
     $carousel_indicators = '';
     $carousel_item = '';
     $res = 0;
     $carousel_height = "300";
     if (!empty($info['news_items'])) {
         $i = 0;
         foreach ($info['news_items'] as $news_item) {
             if ($news_item['news_image_src'] && file_exists($news_item['news_image_src'])) {
                 $carousel_active = $res == 0 ? 'active' : '';
                 $res++;
                 $carousel_indicators .= "<li data-target='#news-carousel' data-slide-to='{$i}' class='" . $carousel_active . "'></li>\n";
                 $carousel_item .= "<div class='item " . $carousel_active . "'>\n";
                 $carousel_item .= "<img class='img-responsive' style='position:absolute; width:100%; margin-top:-25%' src='" . $news_item['news_image_src'] . "' alt='" . $news_item['news_subject'] . "'>\n";
                 $carousel_item .= "\n\t\t\t\t\t<div class='carousel-caption'>\n\t\t\t\t\t\t<div class='overflow-hide'>\n\t\t\t\t\t\t<a class='text-white' href='" . INFUSIONS . "news/news.php?readmore=" . $news_item['news_id'] . "'><h4 class='text-white m-t-10'>" . $news_item['news_subject'] . "</h4></a>\n\n\t\t\t\t\t\t<span class='news-carousel-action m-r-10'><i class='fa fa-eye fa-fw'></i>" . $news_item['news_reads'] . "</span>\n\t\t\t\t\t\t" . ($news_item['news_allow_comments'] ? "<span class='m-r-10'>" . display_comments($news_item['news_comments'], INFUSIONS . "news/news.php?readmore=" . $news_item['news_id'] . "#comments") . "</span>" : '') . "\n\t\t\t\t\t\t" . ($news_item['news_allow_ratings'] ? "<span class='m-r-10'>" . display_ratings($news_item['news_sum_rating'], $news_item['news_count_votes'], INFUSIONS . "news/news.php?readmore=" . $news_item['news_id'] . "#postrating") . " </span>" : '') . "\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div>\n</div>\n\n\t\t\t\t\t";
                 $i++;
             }
         }
     }
     /* Title Panel */
     if (!isset($_GET['readmore'])) {
         if ($res) {
             echo "<div id='news-carousel' class='carousel slide'  data-interval='20000' data-ride='carousel'>\n";
             if ($res > 1) {
                 echo "<ol class='carousel-indicators'>\n";
                 echo $carousel_indicators;
                 echo "</ol>";
             }
             echo "<div class='carousel-inner' style='height:" . $carousel_height . "px' role='listbox'>\n";
             echo $carousel_item;
             echo "</div>\n";
             echo "\n\t\t\t\t<a class='left carousel-control' href='#news-carousel' role='button' data-slide='prev'>\n\t\t\t\t\t<span class='glyphicon glyphicon-chevron-left' aria-hidden='true'></span>\n\t\t\t\t\t<span class='sr-only'>" . $locale['previous'] . "</span>\n\t\t\t  \t</a>\n\t\t\t  \t<a class='right carousel-control' href='#news-carousel' role='button' data-slide='next'>\n\t\t\t\t\t<span class='glyphicon glyphicon-chevron-right' aria-hidden='true'></span>\n\t\t\t\t\t<span class='sr-only'>" . $locale['next'] . "</span>\n\t\t\t  \t</a>\n\n\t\t\t\t";
             echo "</div>\n";
         }
         echo "<div class='panel panel-default panel-news-header'>\n";
         echo "<div class='panel-body'>\n";
         echo "<div class='pull-right'>\n";
         echo "<a class='btn btn-sm btn-default text-dark' href='" . INFUSIONS . "news/news.php'><i class='entypo newspaper'></i>" . $locale['news_0007'] . "</a>\n";
         echo "<button type='button' class='btn btn-sm btn-primary' data-toggle='collapse' data-target='#newscat' aria-expanded='true' aria-controls='newscat'><i class='entypo book open'></i>" . $locale['news_0009'] . "</button>\n";
         echo "</div>\n";
         echo "<div class='pull-left m-r-10' style='position:relative; margin-top:-30px;'>\n";
         echo "<div style='max-width:80px;'>\n";
         echo $info['news_cat_image'];
         echo "</div>\n";
         echo "</div>\n";
         echo "<div class='overflow-hide'>\n";
         echo "<h3 class='display-inline text-dark'>" . $info['news_cat_name'] . "</h3><br/><span class='strong'>" . $locale['news_0008'] . ":</span> <span class='text-dark'>\n\n\t\t\t" . ($info['news_last_updated'] > 0 ? showdate('newsdate', $info['news_last_updated']) : $locale['na']) . "</span>";
         echo "</div>\n";
         echo "</div>\n";
         echo "<div id='newscat' class='panel-collapse collapse m-b-10'>\n";
         echo "<!--pre_news_cat_idx-->";
         echo "<ul class='list-group'>\n";
         echo "<li class='list-group-item'><hr class='m-t-0 m-b-5'>\n";
         echo "<span class='display-inline-block m-b-10 strong text-smaller text-uppercase'> " . $locale['news_0010'] . "</span><br/>\n";
         foreach ($info['news_categories'] as $cat_id => $cat_data) {
             echo isset($_GET['cat_id']) && $_GET['cat_id'] == $cat_id ? '' : "<a href='" . INFUSIONS . "news/news.php?cat_id=" . $cat_id . "' class='btn btn-sm btn-default'>" . $cat_data['name'] . "</a>";
         }
         echo "<a href='" . INFUSIONS . "news/news.php?cat_id=0' class='btn btn-sm btn-default'>" . $locale['news_0006'] . "</a>\n";
         echo "</li>";
         echo "</ul>\n";
         echo "<!--sub_news_cat_idx-->\n";
         echo "</div>\n</div>\n";
         echo "<div class='row m-b-20 m-t-20'>\n";
         echo "<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>\n";
         echo openform('viewform', 'post', FUSION_REQUEST, array('max_tokens' => 1, 'class' => 'pull-right display-inline-block m-l-10'));
         echo "<div class='btn-group'>\n";
         $active = isset($_COOKIE['fusion_news_view']) ? $_COOKIE['fusion_news_view'] : '';
         echo form_button('switchview', '', '1', array('class' => "btn-sm btn-default nsv " . ($active == 1 ? 'active' : '') . " ", 'icon' => 'entypo layout', 'alt' => $locale['news_0014']));
         echo form_button('switchview', '', '2', array('class' => "btn-sm btn-default nsv " . ($active == 2 ? 'active' : '') . "", 'icon' => 'entypo menu', 'alt' => $locale['news_0015']));
         echo "</div>\n";
         echo closeform();
         // Filters
         echo "<div class='display-inline-block'>\n";
         echo "<span class='text-dark strong m-r-10'>" . $locale['show'] . " :</span>";
         $i = 0;
         foreach ($info['news_filter'] as $link => $title) {
             $filter_active = !isset($_GET['type']) && $i == '0' || isset($_GET['type']) && stristr($link, $_GET['type']) ? 'text-dark strong' : '';
             echo "<a href='" . $link . "' class='display-inline {$filter_active} m-r-10'>" . $title . "</a>";
             $i++;
         }
         echo "</div>\n";
         // end filter.
         echo "</div>\n</div>\n";
         $news_span = $active == 2 ? 12 : 4;
         if (!empty($info['news_items'])) {
             echo "<div class='row'>\n";
             foreach ($info['news_items'] as $i => $news_info) {
                 echo "<div class='col-xs-12 col-sm-{$news_span} col-md-{$news_span} col-lg-{$news_span}'>\n";
                 echo isset($_GET['cat_id']) ? "<!--pre_news_cat_idx-->\n" : "<!--news_prepost_" . $i . "-->\n";
                 render_news($news_info['news_subject'], $news_info['news_news'], $news_info, $active == 2);
                 echo isset($_GET['cat_id']) ? "<!--sub_news_cat_idx-->" : "<!--sub_news_idx-->\n";
                 echo "</div>\n";
             }
             echo "</div>\n";
             if ($info['news_item_rows'] > $news_settings['news_pagination']) {
                 $type_start = isset($_GET['type']) ? "type=" . $_GET['type'] . "&amp;" : '';
                 $cat_start = isset($_GET['cat_id']) ? "cat_id=" . $_GET['cat_id'] . "&amp;" : '';
                 echo "<div class='text-center m-t-10 m-b-10'>" . makepagenav($_GET['rowstart'], $news_settings['news_pagination'], $info['news_item_rows'], 3, INFUSIONS . "news/news.php?" . $cat_start . $type_start) . "</div>\n";
             }
         } else {
             echo "<div class='well text-center'>" . $locale['news_0005'] . "</div>\n";
         }
     } else {
         render_news_item($info);
     }
     closetable();
 }
Esempio n. 12
0
function render_admin_panel()
{
    global $locale, $userdata, $defender, $pages, $aidlink, $admin;
    $languages = fusion_get_enabled_languages();
    // Admin panel page
    echo "<div id='admin-panel' class='clearfix in'>\n";
    // Top header section
    echo "<section id='acp-header' class='pull-left affix clearfix' data-offset-top='0' data-offset-bottom='0'>\n";
    // Top content sections navigation
    echo "<nav>\n";
    echo "<ul class='top-left-menu pull-left m-l-15'>\n";
    echo "<li><a title='" . $locale['ac00'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=0'>" . $locale['ac00'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac01'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=1'>" . $locale['ac01'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac02'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=2'>" . $locale['ac02'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac03'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=3'>" . $locale['ac03'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac04'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=4'>" . $locale['ac04'] . "</a></li>\n";
    echo "<li><a title='" . $locale['ac05'] . "' href='" . ADMIN . "index.php" . $aidlink . "&amp;pagenum=5'>" . $locale['ac05'] . "</a></li>\n";
    echo "</ul>\n";
    echo "</nav>\n";
    // Top navigation
    echo "<nav>\n";
    // Top right menu links
    echo "<ul class='top-right-menu pull-right m-r-15'>\n";
    echo "<li class='dropdown'>\n";
    echo "<a class='dropdown-toggle pointer' data-toggle='dropdown'>" . display_avatar($userdata, '25px', '', '', '') . " " . $locale['logged'] . "<strong>" . $userdata['user_name'] . "</strong> <span class='caret'></span>\n</a>\n";
    echo "<ul class='dropdown-menu' role='menu'>\n";
    echo "<li><a class='display-block' href='" . BASEDIR . "edit_profile.php'>" . $locale['edit'] . " " . $locale['profile'] . "</a></li>\n";
    echo "<li><a class='display-block' href='" . BASEDIR . "profile.php?lookup=" . $userdata['user_id'] . "'>" . $locale['view'] . " " . $locale['profile'] . "</a></li>\n";
    echo "<li class='divider'> </li>\n";
    echo "<li><a class='display-block' href='" . FUSION_REQUEST . "&amp;logout'>" . $locale['admin-logout'] . "</a></li>\n";
    echo "<li><a class='display-block' href='" . BASEDIR . "index.php?logout=yes'>" . $locale['logout'] . "</a></li>\n";
    echo "</ul>\n";
    echo "</li>\n";
    if (count($languages) > 1) {
        echo "<li class='dropdown'><a class='dropdown-toggle pointer' data-toggle='dropdown' title='" . $locale['282'] . "'><i class='fa fa-globe fa-lg fa-fw'></i> " . translate_lang_names(LANGUAGE) . "<span class='caret'></span></a>\n";
        echo "<ul class='dropdown-menu'>\n";
        foreach ($languages as $language_folder => $language_name) {
            echo "<li><a class='display-block' href='" . clean_request("lang=" . $language_folder, array("lang"), FALSE) . "'><img class='m-r-5' src='" . BASEDIR . "locale/{$language_folder}/{$language_folder}-s.png'> {$language_name}</a></li>\n";
        }
        echo "</ul>\n";
        echo "</li>\n";
    }
    echo "</ul>\n";
    // .top-right-menu
    echo "</nav>\n";
    echo "</section>\n";
    // Content section
    echo "<div class='content-wrapper display-table pull-left'>\n";
    // Main content wrapper
    echo "<div id='acp-content' class='m-t-20 col-xs-12 col-sm-12 col-md-12 col-lg-12'>\n";
    // Render breadcrumbs
    echo render_breadcrumbs();
    // Get and render notices
    $notices = getNotices();
    echo renderNotices($notices);
    // Render the content
    echo CONTENT;
    echo "</div>\n";
    // #acp-content
    // Footer section
    echo "<footer class='m-l-20 display-inline-block m-t-20 m-b-20'>\n";
    // Copyright
    echo "Old_School Admin &copy; " . date("Y") . " created by <a href='https://www.php-fusion.co.uk'><strong>PHP-Fusion Inc.</strong></a>\n";
    echo showcopyright();
    // Render time
    if (fusion_get_settings('rendertime_enabled')) {
        echo "<br /><br />";
        // Make showing of queries and memory usage separate settings
        echo showrendertime();
        echo showMemoryUsage();
    }
    echo "<hr />\n";
    echo showFooterErrors();
    echo "</footer>\n";
    echo "</div>\n";
    // .acp-main
    echo "</div>\n";
    // #admin-panel
    // Wrappers
    echo "</div></div></div></div>\n";
    add_to_footer("<script src='" . THEMES . "admin_themes/Old_School/includes/jquery.slimscroll.min.js'></script>");
    add_to_jquery("\n// Initialize slimscroll\n\$('#adl').slimScroll({\n\theight: null\n});\n");
}
Esempio n. 13
0
 function render_photo($info)
 {
     global $locale, $userdata;
     opentable($locale['450']);
     echo render_breadcrumbs();
     echo "<!--pre_photo-->";
     echo "<a target='_blank' href='" . $info['photo_filename'] . "' class='photogallery_photo_link' title='" . (!empty($info['photo_title']) ? $info['photo_title'] : $info['photo_filename']) . "'><!--photogallery_photo_" . $_GET['photo_id'] . "-->";
     echo "<img class='img-responsive' style='margin:0 auto;' src='" . $info['photo_filename'] . "' alt='" . (!empty($info['photo_title']) ? $info['photo_title'] : $info['photo_filename']) . "' style='border:0px' class='photogallery_photo' />";
     echo "</a>\n";
     echo "<div class='clearfix'>\n";
     echo "<div class='btn-group pull-right m-t-20'>\n";
     echo isset($info['nav']['first']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['first']['link'] . "' title='" . $info['nav']['first']['name'] . "'><i class='entypo to-start'></i></a>\n" : '';
     echo isset($info['nav']['prev']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['prev']['link'] . "' title='" . $info['nav']['prev']['name'] . "'><i class='entypo left-dir'></i></a>\n" : '';
     echo isset($info['nav']['next']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['next']['link'] . "' title='" . $info['nav']['next']['name'] . "'><i class='entypo right-dir'></i></a>\n" : '';
     echo isset($info['nav']['last']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['last']['link'] . "' title='" . $info['nav']['last']['name'] . "'><i class='entypo to-end'></i></a>\n" : '';
     echo "</div>\n";
     echo "<div class='overflow-hide m-b-20'>\n";
     echo "<h2 class='photo_title m-b-0'>" . $info['photo_title'] . "</span>\n</h2>\n";
     if ($info['photo_description']) {
         echo "<span class='photo_description list-group-item'>" . $info['photo_description'] . "</span>";
     }
     echo "</div>\n";
     echo "<div class='list-group-item m-b-20'>\n";
     echo "<div class='row'>\n";
     echo "<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>\n";
     echo "<strong>" . $locale['434'] . "</strong>" . profile_link($info['user_id'], $info['user_name'], $info['user_status']) . "<br/>\n";
     echo "<strong>" . $locale['433'] . "</strong><abbr title='" . showdate("shortdate", $info['photo_datestamp']) . "'>" . timer(time()) . "</abbr><br/>";
     echo "<strong>" . $locale['454'] . "</strong>" . $info['photo_size'][0] . " x " . $info['photo_size'][1] . " " . $locale['455'] . "<br/>\n";
     echo "<strong>" . $locale['456'] . "</strong>" . $info['photo_byte'];
     echo "</div><div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>\n";
     echo "<strong>" . $locale['457'] . "</strong>" . number_format($info['photo_views']) . "<br/>\n";
     echo "<strong>" . $locale['437'] . "</strong>" . $info['photo_ratings'] . "<br/>\n";
     echo "<strong>" . $locale['436'] . "</strong>" . $info['photo_comment'] . "<br/>\n";
     echo "</div>\n</div>\n";
     echo "</div>\n</div>\n";
     echo "<!--sub_photo-->";
     if ($info['photo_allow_comments']) {
         showcomments("P", DB_PHOTOS, "photo_id", $_GET['photo_id'], INFUSIONS . "gallery/gallery.php?photo_id=" . $_GET['photo_id']);
     }
     if ($info['photo_allow_ratings']) {
         showratings("P", $_GET['photo_id'], INFUSIONS . "gallery/gallery.php?photo_id=" . $_GET['photo_id']);
     }
     closetable();
 }
Esempio n. 14
0
function newform($info)
{
    // select all topics.
    global $locale;
    add_to_head("<link rel='stylesheet' type='text/css' href='" . INFUSIONS . "forum/templates/css/forum.css'>");
    echo render_breadcrumbs();
    opentable($info['title']);
    // New template
    echo "<!--pre_form-->\n";
    echo "<h4 class='m-b-20'>" . $info['description'] . "</h4>\n";
    echo $info['openform'];
    echo $info['subject_field'];
    echo "<hr/>\n";
    echo $info['message_field'];
    echo $info['edit_reason_field'];
    echo $info['forum_id_field'];
    echo $info['thread_id_field'];
    echo $info['poll_form'];
    $tab_title['title'][0] = $locale['forum_0602'];
    $tab_title['id'][0] = 'postopts';
    $tab_title['icon'][0] = '';
    $tab_active = tab_active($tab_title, 0);
    $tab_content = opentabbody($tab_title['title'][0], 'postopts', $tab_active);
    // first one is guaranteed to be available
    $tab_content .= "<div class='well m-t-20'>\n";
    $tab_content .= $info['delete_field'];
    $tab_content .= $info['sticky_field'];
    $tab_content .= $info['notify_field'];
    $tab_content .= $info['lock_field'];
    $tab_content .= $info['hide_edit_field'];
    $tab_content .= $info['smileys_field'];
    $tab_content .= $info['signature_field'];
    $tab_content .= "</div>\n";
    $tab_content .= closetabbody();
    if (!empty($info['attachment_field'])) {
        $tab_title['title'][1] = $locale['forum_0557'];
        $tab_title['id'][1] = 'attach_tab';
        $tab_title['icon'][1] = '';
        $tab_content .= opentabbody($tab_title['title'][1], 'attach_tab', $tab_active);
        $tab_content .= "<div class='well m-t-20'>\n" . $info['attachment_field'] . "</div>\n";
        $tab_content .= closetabbody();
    }
    echo opentab($tab_title, $tab_active, 'newthreadopts');
    echo $tab_content;
    echo closetab();
    echo $info['post_buttons'];
    echo $info['closeform'];
    echo "<!--end_form-->\n";
    closetable();
}
Esempio n. 15
0
function render_page($license = FALSE)
{
    global $locale, $data, $aidlink;
    include THEME . "/locale/" . LOCALESET . "locale.php";
    add_to_head('
	<!--[if lt IE 7]>
	<script type="text/javascript" src="' . THEME . 'js/ie-png.js"></script>
	<script type="text/javascript" src="' . THEME . 'js/supersleight.js"></script>
	<link rel="stylesheet" type="text/css" href="' . THEME . 'css/lt7.css" />
	<![endif]-->
	<!--[if IE]>
	<link rel="stylesheet" type="text/css" href="' . THEME . 'css/ie.css" />
	<![endif]-->
	<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="' . THEME . 'css/ie7.css" />
	<![endif]-->
	<script type="text/javascript" src="' . THEME . 'js/jquery.cycle.all.min.js"></script>
	<script type="text/javascript" src="' . THEME . 'js/cufon-yui.js"></script>
	<script type="text/javascript" src="' . THEME . 'js/Debonair-Calibri.js"></script>
	<script type="text/javascript" src="' . THEME . 'js/Cufon-Settings.js"></script>
	<script type="text/javascript" src="' . THEME . 'js/slider-settings.js"></script>
	<script type="text/javascript" src="' . THEME . 'js/subnavie6.js"></script>
	');
    add_to_head("<link rel='stylesheet' href='" . THEME . "css/bootstrap_rewrite.css' type='text/css'/>");
    include THEME . "theme_db.php";
    $theme_settings = get_theme_settings("debonair");
    echo "<div id='wrapper'>\n";
    echo "<div class='container'>\n";
    echo "<div class='body-wrap'>\n";
    echo "<div class='body-inner-wrap'>\n";
    // start header ----
    $banner_path = fusion_get_settings("sitebanner");
    echo "<header class='clearfix m-t-10'>\n\t\t<a class='logo' href='" . BASEDIR . "index.php'><img src='" . ($banner_path !== "" ? BASEDIR . $banner_path : IMAGES . "php-fusion-logo.png") . "' alt='" . fusion_get_settings("sitename") . "'/></a>\n\t\t<div class='tagline'>Super Clean Web 2.0 Business Template</div>\n";
    echo "<div class='call-tag'>\n";
    if (iADMIN) {
        echo "<span class='display-inline-block m-r-10'><a href='" . ADMIN . $aidlink . "'>" . $locale['global_123'] . "</a></span>\n";
    }
    echo $locale['global_ML102'] . "\n";
    foreach (fusion_get_enabled_languages() as $lang => $lang_name) {
        echo "<a href='" . clean_request("lang=" . $lang, array(), FALSE) . "'>{$lang_name}</a>\n";
    }
    echo "<i id='theme_search' class='fa fa-search fa-fw'></i>";
    echo "</div>\n</header>\n";
    // end header ----
    // start nav ---
    echo showsublinks();
    // end nav --
    // Header Banner
    $banner_inclusion_url = explode(",", $theme_settings['main_banner_url']);
    if (in_array(START_PAGE, $banner_inclusion_url)) {
        // get the results of the banner
        $result = dbquery("SELECT * FROM " . DB_DEBONAIR . " where banner_language='" . LANGUAGE . "' order by banner_order ASC");
        // show banner
        echo "<aside class='banner'>\n";
        echo "<div id='slider-container'>\n";
        echo "<ul id='slider-box'>\n";
        if (dbrows($result)) {
            while ($data = dbarray($result)) {
                echo "<!--Slide " . $data['banner_id'] . "-->\n";
                echo "<li>\n";
                echo "<div class='inner-banner'>\n";
                echo "<div class='slider-corner'></div>\n";
                if ($data['banner_image']) {
                    echo "<div class='screen'><img src='" . THEME . "upload/" . $data['banner_image'] . "' alt='" . $data['banner_subject'] . "'/></div>\n";
                }
                if ($data['banner_description'] !== "") {
                    echo "<h2>" . $data['banner_subject'] . "</h2>\n";
                    echo "<p>" . parseubb(parsesmileys($data['banner_description'])) . "</p>\n";
                } else {
                    echo "<h1>" . $data['banner_subject'] . "</h1>\n";
                }
                if ($data['banner_link'] !== "") {
                    echo "<div class='button-position'>\n";
                    echo "<div class='btn-group'><a class='btn btn-success btn-sm' href='" . BASEDIR . $data['banner_link'] . "'>Learn more</a></div>\n";
                    echo "</div>\n";
                }
                echo "</div>\n</li>\n";
                echo "<!--End slide " . $data['banner_id'] . "-->\n";
            }
        } else {
            echo "<!--Slide Welcome-->\n\t\t\t <li>\n\t\t\t <div class='welcome-banner'><div class='slider-corner'></div>\n\t\t\t <h1>" . $locale['debonair_0500'] . "</h1>\n\t\t\t <h2>" . $locale['debonair_0501'] . "</h2>\n\t\t\t </div>\n\t\t\t </li>\n\t\t\t <!-- End Slide Welcome-->\n\t\t \t";
            echo "<!--Slide Customize-->\n\t\t\t <li>\n\t\t\t <div class='welcome-banner-2'><div class='slider-corner'></div>\n\t\t\t <h1>" . $locale['debonair_0502'] . "</h1>\n\t\t\t <h2>" . $locale['debonair_0502a'] . "</h2>\n\t\t\t <div class='button-position'>\n\t\t\t <p>" . $locale['debonair_0502c'] . "</p>\n\t\t\t </div></div>\n\t\t\t </li>\n\t\t\t <!-- End Slide Customize-->\n\t\t \t";
        }
        echo "</ul>\n";
        echo "<!-- Start Slider Nav-->\n<div class='slide-pager-container'>\n<div id='slide-pager'></div>\n</div>\n<!-- End Slider Nav-->\n</div>\n";
        echo "</aside>\n";
        // upperbanner
        echo "<div class='lower-banner'>\n<div class='row holder'>\n";
        // 3 columns
        for ($i = 1; $i <= 3; $i++) {
            echo "<div class='col-xs-12 col-sm-4 col'>\n";
            if ($theme_settings['ubanner_col_' . $i] !== "") {
                $data = uncomposeSelection($theme_settings['ubanner_col_' . $i]);
                if (!empty($data['selected']) && multilang_table("NS") ? !empty($data['options'][LANGUAGE]) : "") {
                    switch ($data['selected']) {
                        case "news":
                            if (db_exists(DB_NEWS) && isset($data['options'][LANGUAGE])) {
                                $result = dbquery("select * from " . DB_NEWS . "\n\t\t\t\t\t\t\t\t\t\t\t" . (multilang_table("NS") ? "WHERE news_language='" . LANGUAGE . "' AND" : "WHERE") . " " . groupaccess('news_visibility') . "\n\t\t\t\t\t\t\t\t\t\t\tAND (news_start='0'||news_start<=" . time() . ")\n\t\t\t\t\t\t\t\t\t\t\tAND (news_end='0'||news_end>=" . time() . ") AND news_draft='0'\n\t\t\t\t\t\t\t\t\t\t\tAND news_id='" . $data['options'][LANGUAGE] . "'\n\t\t\t\t\t\t\t\t\t\t\t");
                                if (dbrows($result) > 0) {
                                    $data = dbarray($result);
                                    echo "<h2 class='icon1'>" . $data['news_subject'] . "</h2>\n";
                                    echo "<p>" . fusion_first_words(parse_textarea($data['news_news']), 50) . "</p>\n";
                                    echo "<div class='link-holder'><a href='" . INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n";
                                } else {
                                    echo "<p>" . $locale['debonair_0600'] . "</p>\n";
                                }
                            } else {
                                echo "<p>" . $locale['debonair_0408'] . "</p>\n";
                            }
                            break;
                        case "blog":
                            if (db_exists(DB_BLOG) && isset($data['options'][LANGUAGE])) {
                                $result = dbquery("select * from " . DB_BLOG . "\n\t\t\t\t\t\t\t\t\t\t\t" . (multilang_table("BL") ? "WHERE blog_language='" . LANGUAGE . "' AND" : "WHERE") . " " . groupaccess('blog_visibility') . "\n\t\t\t\t\t\t\t\t\t\t\tAND (blog_start='0'||blog_start<=" . time() . ")\n\t\t\t\t\t\t\t\t\t\t\tAND (blog_end='0'||blog_end>=" . time() . ") AND blog_draft='0'\n\t\t\t\t\t\t\t\t\t\t\tAND blog_id='" . $data['options'][LANGUAGE] . "'\n\t\t\t\t\t\t\t\t\t\t\t");
                                if (dbrows($result) > 0) {
                                    $data = dbarray($result);
                                    echo "<h2 class='icon2'>" . $data['blog_subject'] . "</h2>\n";
                                    echo "<p>" . fusion_first_words(parse_textarea($data['blog_blog']), 50) . "</p>\n";
                                    echo "<div class='link-holder'><a href='" . INFUSIONS . "blog/blog.php?readmore=" . $data['blog_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n";
                                } else {
                                    echo "<p>" . $locale['debonair_0600'] . "</p>\n";
                                }
                            } else {
                                echo "<p>" . $locale['debonair_0405'] . "</p>\n";
                            }
                            break;
                        case "articles":
                            if (db_exists(DB_ARTICLES) && isset($data['options'][LANGUAGE])) {
                                $result = dbquery("SELECT ta.article_id, ta.article_subject, ta.article_snippet, ta.article_article, ta.article_keywords, ta.article_breaks,\n\t\t\t\t\t\t\t\tta.article_datestamp, ta.article_reads, ta.article_allow_comments, ta.article_allow_ratings,\n\t\t\t\t\t\t\t\ttac.article_cat_id, tac.article_cat_name\n\t\t\t\t\t\t\t\tFROM " . DB_ARTICLES . " ta\n\t\t\t\t\t\t\t\tINNER JOIN " . DB_ARTICLE_CATS . " tac ON ta.article_cat=tac.article_cat_id\n\t\t\t\t\t\t\t\t" . (multilang_table("AR") ? "WHERE tac.article_cat_language='" . LANGUAGE . "' AND" : "WHERE") . " " . groupaccess('article_visibility') . " AND article_id='" . $data['options'][LANGUAGE] . "' AND article_draft='0'");
                                if (dbrows($result) > 0) {
                                    $data = dbarray($result);
                                    echo "<h2 class='icon2'>" . $data['article_subject'] . "</h2>\n";
                                    echo "<p>" . fusion_first_words(parse_textarea($data['article_subject']), 50) . "</p>\n";
                                    echo "<div class='link-holder'><a href='" . INFUSIONS . "articles/articles.php?article_id=" . $data['article_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n";
                                } else {
                                    echo "<p>" . $locale['debonair_0600'] . "</p>\n";
                                }
                            } else {
                                echo "<p>" . $locale['debonair_0415'] . "</p>\n";
                            }
                            break;
                        case "cp":
                            $result = dbquery("SELECT page_id, page_title, page_content\n\t\t\t\t\t\t\t\t\t\tfrom " . DB_CUSTOM_PAGES . "\n\t\t\t\t\t\t\t\t\t\tWHERE " . groupaccess('page_access') . "\n\t\t\t\t\t\t\t\t\t\tAND page_id='" . $data['options'][LANGUAGE] . "'");
                            if (dbrows($result) > 0) {
                                $data = dbarray($result);
                                echo "<h2 class='icon3'>" . $data['page_title'] . "</h2>\n";
                                echo "<p>" . fusion_first_words(parse_textarea($data['page_content']), 50) . "</p>\n";
                                echo "<div class='link-holder'><a href='" . BASEDIR . "viewpage.php?page_id=" . $data['page_id'] . "' class='more'>" . $locale['debonair_0504'] . "</a></div>\n";
                            } else {
                                echo "<p>" . $locale['debonair_0600'] . "</p>\n";
                            }
                            break;
                    }
                }
            } else {
                echo "<h2 class='icon3'>" . $locale['debonair_0601'] . "</h2>\n";
                echo "<p>" . $locale['debonair_0602'] . "</p>\n";
            }
            echo "</div>\n";
        }
        echo "</div>\n</div>\n";
    } else {
        // show simple header
        echo "<aside class='banner m-b-15'>\n";
        echo "<div class='page-header'>\n";
        if (!iMEMBER) {
            echo "<a href='" . BASEDIR . "login.php' class='btn btn-sm btn-success pull-right'><span>" . $locale['register'] . "/" . $locale['login'] . "</span></a>";
        } else {
            echo "<a href='" . fusion_get_settings("opening_page") . "?logout=yes' class='btn btn-sm btn-success pull-right'><span>" . $locale['logout'] . "</span></a>";
        }
        echo "<div class='holder p-b-20 p-r-10'>\n";
        echo "<div class='clearfix'>\n";
        echo "<div class='pull-left m-r-5'><span class='fa fa-map-marker fa-fw'></i>\n</span></div>";
        echo "<div class='overflow-hide'>\n";
        echo render_breadcrumbs();
        echo "</div>\n</div>\n";
        $title_instance = \PHPFusion\BreadCrumbs::getInstance();
        $reference = $title_instance->toArray();
        // this will give you the whole breadcrumb array
        $debonAirTitle = !empty($reference) ? end($reference) : array('title' => $locale['home']);
        echo "<h1>" . $debonAirTitle['title'] . "</h1>\n";
        echo "</div>\n</div>\n";
        echo "</aside>\n";
    }
    // end of banner
    // Start of Inner page structure for Bootstrap
    $side_grid_settings = array('desktop_size' => 2, 'laptop_size' => 3, 'tablet_size' => 3, 'phone_size' => 4);
    $notices = getNotices();
    if ($notices) {
        echo renderNotices($notices);
    }
    echo "<section class='main-content'>\n<div class='main-content-inner'>\n";
    // now have to do bootstrap calculation
    // row 1 - go for max width
    if (defined('AU_CENTER') && AU_CENTER) {
        echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>" . AU_CENTER . "</div>\n</div>";
    }
    // row 2 - fluid setitngs depending on panel appearances
    echo "<div class='row'>\n";
    if (defined('LEFT') && LEFT) {
        echo "<div class='" . html_prefix($side_grid_settings) . "'>\n" . LEFT . "</div>\n";
    }
    // column left
    echo "<div class='" . html_prefix(center_grid_settings($side_grid_settings)) . "'>\n";
    echo U_CENTER . CONTENT . L_CENTER . "</div>\n";
    // column center
    if (defined('RIGHT') && RIGHT) {
        echo "<div class='" . html_prefix($side_grid_settings) . "'>\n" . RIGHT . "</div>\n";
    }
    // column right
    echo "</div>\n";
    // row 3
    if (defined('BL_CENTER') && BL_CENTER) {
        echo "<div class='row'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>" . BL_CENTER . "</div>\n</div>";
    }
    echo "</div>\n</section>\n";
    echo "</div>\n";
    // end body-inner-wrap
    // Begin Footer
    echo "<section class='lower-section'>\n";
    echo "<div class='row col-holder'>\n";
    // column 1
    echo "<div class='col-xs-12 col-sm-3'>\n";
    if ($theme_settings['lbanner_col_1'] !== "") {
        include "include/" . $theme_settings['lbanner_col_1'];
    }
    // column 2
    echo "</div>\n<div class='col-xs-12 col-sm-3'>\n";
    if ($theme_settings['lbanner_col_2'] !== "") {
        include "include/" . $theme_settings['lbanner_col_2'];
    }
    // column 3
    echo "</div>\n<div class='col-xs-12 col-sm-3'>\n";
    if ($theme_settings['lbanner_col_3'] !== "") {
        include "include/" . $theme_settings['lbanner_col_3'];
    }
    // column 4
    echo "</div>\n<div class='col-xs-12 col-sm-3'>\n";
    if ($theme_settings['lbanner_col_4'] !== "") {
        include "include/" . $theme_settings['lbanner_col_4'];
    }
    echo "</div>\n";
    echo "</div>\n";
    // start bottom
    echo "<div class='bottom'>\n";
    if ($theme_settings['facebook_url'] || $theme_settings['twitter_url']) {
        echo "<!-- Start Follow Us Links -->\n<div class='follow-box'> <strong>" . $locale['debonair_0510'] . "</strong><ul>\n";
        if ($theme_settings['facebook_url']) {
            echo "<li><a href='" . $theme_settings['facebook_url'] . "' class='facebook'>" . $locale['debonair_0511'] . "</a></li>\n";
        }
        if ($theme_settings['twitter_url']) {
            echo "<li><a href='" . $theme_settings['twitter_url'] . "' class='twitter'>" . $locale['debonair_0512'] . "</a></li>\n";
        }
        echo "</ul></div><!-- End Follow Us Links -->\n";
    }
    echo "<div class='txt-holder'><p><small>" . str_replace("<br />", "", showcopyright()) . "</small></p></div>\n\t</div>\n</div>";
    echo "</section>\n";
    echo "</div>\n <!--End Wrapper Sub Elements -->";
    echo "\n\t<div id='footer'>\n      <!--Start Footer Nav -->\n      <div class='footer-nav'>\n         <div class='w1'>\n            <div class='w2'>\n               <ul>\n                  <li><a href='" . BASEDIR . fusion_get_settings("opening_page") . "'>" . $locale['debonair_0505'] . "</a></li>\n\t\t\t\t  <li><a href='" . BASEDIR . "contact.php'>" . $locale['debonair_0506'] . "</a></li>\n";
    if (db_exists(DB_ARTICLES)) {
        echo "<li><a href='" . INFUSIONS . "articles/articles.php'>" . $locale['debonair_0507'] . "</a></li>\n";
    }
    if (db_exists(DB_NEWS)) {
        echo "<li><a href='" . INFUSIONS . "news/news.php'>" . $locale['debonair_0508'] . "</a></li>\n";
    }
    if (db_exists(DB_BLOG)) {
        echo "<li><a href='" . INFUSIONS . "blog/blog.php'>" . $locale['debonair_0509'] . "</a></li>\n";
    }
    echo "</ul>\n            </div>\n         </div>\n      </div>\n      <!--End Footer Nav -->\n   </div>\n\t";
    echo '<script type="text/javascript">Cufon.now();</script>';
}
Esempio n. 16
0
 /**
  * Download Page
  * @param $info
  */
 function render_downloads($info)
 {
     global $dl_settings;
     $locale = fusion_get_locale();
     echo render_breadcrumbs();
     echo "<div class='row'>\n";
     echo "<div class='col-xs-12 col-sm-9'>\n";
     if (isset($_GET['download_id']) && !empty($info['download_item'])) {
         $data = $info['download_item'];
         echo "<h3 class='m-t-0 m-b-0'>" . $data['download_title'] . "</h3>\n";
         echo "<div class='m-b-20'>\n";
         echo $data['download_description_short'];
         echo "</div>\n";
         echo "<div class='panel panel-default'>\n";
         echo "<div class='panel-heading clearfix'>\n";
         echo "<div class='row'>\n";
         echo "<div class='col-xs-5 col-sm-5 col-md-5 col-lg-5' style='border-right: 1px solid #ddd;'>\n";
         echo "<a href='" . $data['download_file_link'] . "' class='pull-left m-r-20 btn btn-success btn-xs m-t-5 text-white'>\n";
         echo "<i class='fa fa-download p-5 fa-2x'></i>\n";
         echo "</a>\n";
         echo "<div class='overflow-hide'><h4 class='m-t-5 m-b-0 strong'>" . $locale['download_1007'] . "</h4>\n " . $locale['download_1020'] . ": " . $data['download_filesize'] . " </div>\n";
         echo "</div><div class='col-xs-7 col-sm-7 col-md-7 col-lg-7'>\n";
         echo "<div class='pull-left m-b-20'>\n";
         if (!$data['download_allow_ratings']) {
             echo $data['download_post_author'];
         } else {
             echo "<span class='strong'>" . $locale['download_1008'] . ":</span><br/>\n";
             echo "<a id='rateJump'>" . $locale['download_3003'] . "</a>\n";
             add_to_jquery("\t\$('#rateJump').bind('click', function() { \$('html,body').animate({scrollTop: \$('#rate').offset().top}, 'slow');\t});\t");
         }
         echo "</div>\n";
         echo "</div>\n</div>\n";
         echo "</div><div class='panel-body p-b-0'>\n";
         if ($dl_settings['download_screenshot'] && $data['download_image']) {
             echo "<div class='pull-left m-l-0 m-10'>\n";
             echo thumbnail(DOWNLOADS . "images/" . $data['download_image'], '120px');
             echo "<p class='mid-opacity strong text-smaller m-t-0'>" . $locale['download_1009'] . "</h4>\n";
             echo "</div>\n";
         }
         echo "<div class='overflow-hide m-10'>\n";
         echo "<p class='strong m-0'>" . $locale['download_1010'] . "</p>\n";
         echo "<div class='row m-t-5 m-b-5'>\n";
         echo "<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n";
         echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1011'] . ":</span><br/>" . $data['download_version'];
         echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n";
         echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1012'] . ": </span><br/>" . $data['download_count'];
         echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n";
         echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1021'] . ":</span><br/>" . $data['download_post_time'];
         echo "</div></div>\n";
         echo "<hr class='m-t-5 m-b-0'>\n";
         echo "<div class='row m-t-5'>\n";
         echo "<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n";
         echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1013'] . ":</span><br/>" . $data['download_license'];
         echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n";
         echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1014'] . ":</span><br/>" . $data['download_os'];
         echo "</div>\n<div class='col-xs-4 col-sm-4 col-md-4 col-lg-4'>\n";
         echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1015'] . ":</span><br/>" . $data['download_copyright'];
         echo "</div></div>\n";
         echo "</div>\n";
         echo "</div>\n";
         echo "<div class='panel-footer'>\n";
         echo "<span class='strong text-smaller text-lighter'>" . $locale['download_1017'] . ":</span><br/>" . $data['download_homepage'];
         echo "</div>\n";
         echo "</div>\n";
         if ($data['download_description']) {
             echo "<p class='strong'>" . $locale['download_1019'] . "</p>";
             echo $data['download_description'];
         }
         if ($data['download_allow_comments']) {
             showcomments("D", DB_DOWNLOADS, "download_id", $_GET['download_id'], INFUSIONS . "downloads/downloads.php?cat_id=" . $data['download_cat'] . "&amp;download_id=" . $_GET['download_id']);
         }
         if ($data['download_allow_ratings']) {
             echo "<a id='rate'>\n</a>\n";
             // jumper target
             showratings("D", $_GET['download_id'], INFUSIONS . "downloads/downloads.php?cat_id=" . $data['download_cat'] . "&amp;download_id=" . $_GET['download_id']);
         }
     } else {
         echo "<h3>" . $info['download_title'] . "</h3>\n";
         if (!empty($info['download_cat_description'])) {
             echo "<div class='display-block'>\n";
             echo $info['download_cat_description'];
             echo "</div>\n";
         }
         echo "<!--pre_download_cat-->\n";
         echo "<div class='list-group'>\n";
         if (!empty($info['download_item'])) {
             foreach ($info['download_item'] as $download_id => $data) {
                 $download_title = $data['download_title'];
                 echo "<div class='list-group-item clearfix'>\n";
                 echo "<div class='pull-right'>\n";
                 echo "<div class='m-t-10 m-r-10'><i class='entypo down-circled'></i> " . $data['download_count'] . "</div>\n";
                 echo "<div class='m-r-10'><i class='fa fa-comments-o fa-fw'></i>" . $data['download_comments'] . "</div>\n";
                 echo "<div class='m-r-10'><i class='fa fa-star-o fa-fw'></i>" . $data['download_sum_rating'] . "</div>\n";
                 echo "<a class='btn btn-sm btn-primary m-t-10 " . (empty($data['download_file_link']) ? 'disabled' : '') . "' href='" . $data['download_file_link'] . "'><i class='fa fa-download fa-fw'></i> " . $locale['download_1007'] . "</a>\n";
                 echo "</div>\n";
                 echo "<div class='pull-left m-r-10'>\n";
                 echo $data['download_image'];
                 echo "</div>\n";
                 echo "<div class='overflow-hide'>\n";
                 echo "<div class='overflow-hide'>\n";
                 echo "<h4 class='m-0 display-inline-block'><a class='text-dark' href='" . $data['download_link'] . "' title='" . $download_title . "'>" . trimlink($data['download_title'], 100) . "</a></h4>";
                 echo "<div class='m-b-10'>" . $data['download_category_link'] . "</div>\n";
                 echo "<div class='m-b-5'>" . $data['download_description_short'] . "</div>";
                 echo "</div>\n";
                 echo "</div>\n";
                 echo "</div>\n";
             }
             if (!empty($info['download_nav'])) {
                 echo "<br/>\n";
                 echo $info['download_nav'];
             }
         } else {
             echo "<div class='text-center well m-t-20'>\n";
             echo $locale['download_3000'];
             echo "</div>\n";
         }
         echo "</div>\n";
         echo "<!--sub_download_cat-->";
     }
     echo "</div><div class='col-xs-12 col-sm-3'>\n";
     echo display_download_menu($info);
     echo "</div>\n</div>\n";
 }