Thread: vBulletin CMS Widgets - Remove Primary Content Widget
View Single Post
  #18  
Old 03-27-2012, 07:49 AM
4ibon4ik 4ibon4ik is offline
 
Join Date: Jan 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.1.11 my working vbcms_content_section_page template

PHP Code:
<vb:if condition="$_GET['r'] == '1-Home' OR !$_GET['r']">
<
vb:if condition="is_member_of($bbuserinfo, 6)">


{
vb:raw css}

    <
div class="title" align="right">
    
        <
vb:if condition="$can_publish">
                <
a href="{vb:raw edit_url}" class="edit"><img class="editimage" src="{vb:stylevar imgdir_cms}/edit_small.png" alt="{vb:rawphrase edit}" /></a>
            </
vb:if>
                      </
div>


</
vb:if>


<
vb:else if condition="$_GET['r'] > '1-Home'"/>
{
vb:raw css}

    <
div class="title">
    <!-- 
section page title div -->
        <
h1 class="header">
            <
span>{vb:raw title}</span>
            <
vb:if condition="$can_publish">
                <
a href="{vb:raw edit_url}" class="edit"><img class="editimage" src="{vb:stylevar imgdir_cms}/edit_small.png" alt="{vb:rawphrase edit}" /></a>
            </
vb:if>
            <
vb:if condition="$vboptions['externalrss']">
                <
a href="external.php?do=rss&amp;type=newcontent&amp;sectionid={vb:raw nodeid}&amp;days=120&amp;count=10"><img src="{vb:stylevar imgdir_misc}/rss_40b.png" alt="{vb:rawphrase rss_feed}" /></a>
            </
vb:if>
        </
h1>
        <
vb:if condition="!$published OR !$setpublish">
            <
span style="color:red">
                <
vb:if condition="$publishdate AND $setpublish">
                    {
vb:rawphrase page_will_be_published_x {vb:raw publishdatelocal}} {vb:raw publishtimelocal}
                <
vb:else />
                    {
vb:rawphrase page_not_published}
                </
vb:if>
            </
span>
        <
vb:else if condition="$publishdate/>
            <
vb:comment>
                {
vb:rawphrase published_on_x {vb:raw publishdatelocal}}  {vb:raw publishtimelocal}
            </
vb:comment>
        </
vb:if>

    </
div>
    <!-- 
closes section page title div -->
    <
vb:if condition="$filter_unpublished_url">
        <
a href="{vb:raw filter_unpublished_url}">{vb:rawphrase filter_phrase}</a>
    </
vb:if>

    <
div id="section_content">
        {
vb:raw content}
<
vb:comment Removed>
    <
vb:if condition="!$no_results_phrase AND $showall">
        <
div class="fullwidth">
            <
class="viewall" href="{vb:raw section_list_url}">{vb:rawphrase view_all}</a>
        </
div>
    </
vb:if>
</
vb:comment>
    <
hr class="none" />
    </
div>

    <
vb:if condition="$show['lightbox']">
        <
script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v={vb:raw vboptions.simpleversion}"></script>
        <
script type="text/javascript">
        <!--
        
vBulletin.register_control("vB_Lightbox_Container""section_content", {vb:raw vboptions.lightboxenabled});
        
//-->
        
</script>
    </
vb:if>

    <
vb:if condition="$no_results_phrase">
    <
div class="fullwidth">
        <
class="cms_article_txt_content">
            {
vb:raw no_results_phrase}
        </
p>
    </
div>
    </
vb:if>

<
vb:if condition="$pagenav">
    <
div id="below_contentlist" class="fullwidth">
        {
vb:raw pagenav}
    </
div>
</
vb:if>
</
vb:if> 
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,838KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete