<% include_once( "../php_scripts/auto_prepend.php" ); %> <% // initialize some globals include_once( "../setup.php" ); // the general functions include_once ( "../inc/ac_helpers.php"); if ( $article_id ) { // get the author's id $contents = fetch_article_contents( $article_id ); $article_info = fetch_article_info( $article_id ); $author_id = $article_info[author_id]; $image_data = fetch_article_photos( $article_id ); } // draw the header! include_once( "../inc/header.php" ); %> <% @start_left_column(); %>
<% if ( $article_id ) { if ( !$page ) { $page = 1; } @start_section( "My Recent Articles", $ACGLOBALS[LEFT_COL_WIDTH], $ACGLOBALS[LEFT_COL] ); display_articles( 8, "", $author_id, "" ); %>
Click for Full Listing >>
<% @end_section( ); echo " "; } %> <% @start_section( "Articles by Author", $ACGLOBALS[LEFT_COL_WIDTH], $ACGLOBALS[LEFT_COL]); %> <% @display_authors( 10, "" ); %> <% end_section(); %>

<% @display_left_column_contents( "articles" ); %> <% echo " "; if ( $author_id ) { @start_section( "About the Author", $ACGLOBALS[LEFT_COL_WIDTH], $ACGLOBALS[LEFT_COL] ); display_author_profile( $author_id ); @end_section( ); } echo "

"; %>


  <% @start_main_column(); $text = "ALL ARTICLES BY THIS AUTHOR"; if ( ( !$author_id ) && ( !$article_id ) && ( !strlen( $major_category ) ) && ( !strlen( $minor_category ) ) ) { @start_mid_section( "SELECT ARTICLE CATEGORY", '', '' ) ; // print_array_tall( $CATEGORIES ); echo ""; echo ""; foreach ($CATEGORIES as $major => $row) { echo ""; echo ""; echo ""; echo ""; } echo "
$major"; echo ""; echo "
"; end_mid_section(); $text = "VIEWING LAST 100 ARTICLES"; // @start_mid_section( "VIEWING LATEST 100 ARTICLES", '', '' ) ; } if ( strlen( $major_category ) ) $text = "VIEWING ARTICLES IN CATEGORY"; if ( !$article_id ) @start_mid_section( $text, "", "" ); %> <% if ( !$article_id ) { %> <% if ( strlen( $major_category ) ) { echo "Viewing Category: $major_category"; if (strlen( $minor_category ) ) { echo " > $minor_category"; } echo ""; } @display_articles_full( 100, "", $author_id ); echo "
View All Articles
"; } else { %> <% @display_title_bar( $article_info ); %> "; // pics! if ( sizeof( $image_data ) ) { if ( $article_id % 2 == 0 ) { echo "
<% if ( ( $page == 1 ) && ( $author_id == 4 ) ) { echo "
"; } // print_array_tall( $image_data ); echo ""; /* if ( strlen( $contents[$page][page_title] ) ) { echo "".$contents[$page][page_title].""; } */ echo ""; echo "
"; // do our t-o-c dropdown here if ( sizeof( $contents ) >= 2 ) { %> \n"; } echo "
"; if ( strlen( $contents[$page][page_title] ) ) { echo "".$contents[$page][page_title]."

"; } echo "

"; // echo "
"; } else { echo "
"; } foreach( $image_data as $pic_id => $row ) { // only display the pics on THIS page, and no thumbnails nor cinematics either if ( ( !$row[cinematic] ) && ( !$row[thumbnail] ) && ( $row[page_num] == $page ) ) // if ( $row[page_num] == $page ) { // display'em! echo ""; } } echo "
"; echo "
"; echo "
"; echo "".stripslashes( $row[caption] )."

 "; echo "
"; } echo "
"; $temp = eregi_replace( "", "
", $contents[$page][content] ); $temp = eregi_replace( "", "

", $temp ); echo nl2br( stripslashes( $temp ) ); // display the footer nav display_article_nav( $article_id, $contents, $page ); display_news_link( $article_info ); echo "
"; %> <% } %> <% if ( !$article_id ) end_mid_section(); %> <% @start_right_column(); %> <% @display_right_column_contents(); %> <% end_content_area(); %> <% include_once( "../inc/footer.php" ); %>