Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Part 2:
    PHP Code:
    /**
     * Removes the default styles that are packaged with the Recent Comments widget.
     *
     * To override this in a child theme, remove the filter and optionally add your own
     * function tied to the widgets_init action hook.
     *
     * This function uses a filter (show_recent_comments_widget_style) new in WordPress 3.1
     * to remove the default style. Using Twenty Ten 1.2 in WordPress 3.0 will show the styles,
     * but they won't have any effect on the widget in default Twenty Ten styling.
     *
     * @since Twenty Ten 1.0
     */
    function americanindustrial_remove_recent_comments_style() {
        
    add_filter'show_recent_comments_widget_style''__return_false' );
    }
    add_action'widgets_init''americanindustrial_remove_recent_comments_style' );

    if ( ! 
    function_exists'americanindustrial_posted_on' ) ) :
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     *
     * @since Twenty Ten 1.0
     */
    function americanindustrial_posted_on() {
        
    printf__'<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s''americanindustrial' ),
            
    'meta-prep meta-prep-author',
            
    sprintf'<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
                
    get_permalink(),
                
    esc_attrget_the_time() ),
                
    get_the_date()
            ),
            
    sprintf'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
                
    get_author_posts_urlget_the_author_meta'ID' ) ),
                
    sprintfesc_attr__'View all posts by %s''americanindustrial' ), get_the_author() ),
                
    get_the_author()
            )
        );
    }
    endif;

    if ( ! 
    function_exists'americanindustrial_posted_in' ) ) :
    /**
     * Prints HTML with meta information for the current post (category, tags and permalink).
     *
     * @since Twenty Ten 1.0
     */
    function americanindustrial_posted_in() {
        
    // Retrieves tag list of current post, separated by commas.
        
    $tag_list get_the_tag_list''', ' );
        if ( 
    $tag_list ) {
            
    $posted_in __'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.''americanindustrial' );
        } elseif ( 
    is_object_in_taxonomyget_post_type(), 'category' ) ) {
            
    $posted_in __'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.''americanindustrial' );
        } else {
            
    $posted_in __'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.''americanindustrial' );
        }
        
    // Prints the string, replacing the placeholders.
        
    printf(
            
    $posted_in,
            
    get_the_category_list', ' ),
            
    $tag_list,
            
    get_permalink(),
            
    the_title_attribute'echo=0' )
        );
    }
    endif;

    add_theme_support'menus' ); 

  2. #17
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    I will also post the files that have the bulk of customizations in them:

    header.php:
    Code:
    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
    
    	?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    	/* We add some JavaScript to pages with the comment form
    	 * to support sites with threaded comments (when in use).
    	 */
    	if ( is_singular() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    
    	/* Always have wp_head() just before the closing </head>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to add elements to <head> such
    	 * as styles, scripts, and meta tags.
    	 */
    	wp_head();
    ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="wrapper" class="hfeed">
    	<div id="header">
    
    <div id="masthead">
    			<div id="branding" role="banner">
    				<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    				<div align="center"><img src="http://americanindustrialinc.com/wp/wp-content/uploads/2013/10/aiheaderv6.jpg" /></div>
    
    				<?php
    					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    					if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    							has_post_thumbnail( $post->ID ) &&
    							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    							$image[1] >= HEADER_IMAGE_WIDTH ) :
    						// Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID );
    					elseif ( get_header_image() ) : ?>
    					
    					
    			</div><!-- #branding -->
    
    		
    <?php endif; ?>
    <?php if (is_active_sidebar( 'menu-area-widget-area' )): ?>
    
    	<div id="header-menu-area" class="widget-area">
    
    	<ul class="xoxo">
    
    		<?php dynamic_sidebar( 'menu-area-widget-area' ) ?>
    
    	</ul>
    
    	</div><!--#menu-area-widget-area -->
    
    <?php endif; ?>
    			<div id="access" role="navigation">
              
    			  <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    				<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu.  The menu assiged to the primary position is the one used.  If none is assigned, the menu with the lowest ID is used.  */ ?>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    			</div><!-- #access -->
    		</div><!-- #masthead -->
    	</div><!-- #header -->
    
    	<div id="main">
    
    
    <?php if (is_active_sidebar( 'slideshow-widget-area' )): ?>
    
    	<div id="header-menu-area" class="widget-area">
    
    	<ul class="xoxo">
    
    		<?php dynamic_sidebar( 'slideshow-widget-area' ) ?>
    
    	</ul>
    
    	</div><!--#slideshow-widget-area -->
    
    <?php endif; ?>

  3. #18
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Footer.php:

    Code:
    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content
     * after.  Calls sidebar-footer.php for bottom widgets.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    ?>
    	</div><!-- #main -->
    
    
    
    
    <div class="wrapper2">
    <div class="body2" style="background-color: #ebebeb;" align="center">
    		<div class="main">
    			<div id="content2">
    			<div class="pad">
    		<div id="wrapper42">
    				<div class="col pad_left2">
    					<div class="wrapper3">
    					  <h3 >Contact Us</h3>
    				</div><!--wrapper3-->
    						<p style="font-size:15px !important;"><font color="#333333">American industrial Inc.</p>
    												
    		          								 	<p style="margin-top:-25px; color:#333333;" class="bottom-phone">14240 Eleven Mile Rd.<br />Warren, MI 48089 </p>
    									
    <p style="margin-left: 0px;"><a class="link1" href="http://www.youtube.com/watch?v=IZVmuPPqkQU&feature=share&list=UUhmwK1wyWjmicA3DEJZbPiw" target="_blank"><img style="border: none;" alt="Industrial Control Repair, Industrial Repair Service, Repair" src="http://americanindustrialinc.com/wp/icons/youtube25.png" width="25" height="25" /></a></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/pub/robert-gordon/11/50/145" target="_blank"><img src="http://americanindustrialinc.com/wp/icons/linkedin-25.png" style=" border:none;" alt="top quality video production in detroit" width="25" height="25"/></a></p>
    	          	</div><!--.col pad_left2-->
    	          	
    	          	
    				<div class="col pad_left2" >
    					<div class="wrapper3">
    					  <h3>Asset Management</h3>
    				</div><!--wrapper3-->
    					<ul class="list1">
    						<br />
    					    <li class="lists" ><a href="http://americanindustrialinc.com/InSite/Login.aspx?ReturnUrl=%2fInSite%2fDefault.aspx" style="font-size: 105%; text-decoration: none;" target="_blank"><span style="color: #505961;"><img src="http://americanindustrialinc.com/images/Repairable-Asset-Management.png" widht="25" height="19"/> In</span><span style="color: #024ca1; ">Site</span></a></li>
    						<br />
    					    <li class="lists"><a href="http://americanindustrialinc.com/webrepairs/login.aspx" target="_blank"><img src="http://americanindustrialinc.com/images/OasisNav-small.png" widht="25" height="19"/></a></li>
    				  </ul>
    				</div><!--.col pad_left2-->
    							<div class="col pad_left2">
    					<div class="wrapper3">
    					  <h3>From The Blog</h3>
    <br /></div><!--wrapper3-->
    					<?php if (is_active_sidebar( 'blogpost-widget-area' )): ?>
    
    	<div id="footer-right-area" class="widget-area">
    
    	
    
    		<?php dynamic_sidebar( 'blogpost-widget-area' ) ?>
    
    	
    
    	</div>
    <?php endif; ?>
    						  </div><!--.col pad_left2-->
    </div><!--wrapper42-->
    			</div><!--.pad-->
    			</div><!--#content2-->
    		</div><!--.main-->
    </div><!--.body2-->
    
    		</div><!--.wrapper2-->
    
    <div id="footer" role="contentinfo" style="text-align: center;">
    		<p id="footertext">American Industrial Inc. | 14240 Eleven Mile Rd. Warren, MI 48089 | (800) 824-2234 | Fax: (586) 776-3529<br /><br />
    		&copy; 2012 American industrial inc. All Rights Reserved&nbsp;|&nbsp;Site By <a href="http://liveoutloudproductions.com" target="_blank">Live Out Loud Productions</a> and <a href="http://detroitinternetmarketing.com" target="_blank">SEO Detroit</a>&nbsp;</p>
    			
    
    	</div><!-- #footer -->
    	</div><!-- #wrapper -->
    <?php
    	/* Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    ?>
    </body>
    </html>

  4. #19
    Regular Coder
    Join Date
    Mar 2013
    Posts
    262
    Thanks
    4
    Thanked 67 Times in 67 Posts
    Try changing your web.config file to this:

    Code:
    <?xml version="1.0"?>
    <configuration>
      <system.webServer>
        <rewrite>
          <rules>
            <rule name="Main Rule" stopProcessing="true">
              <match url=".*" />
              <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
              <action type="Rewrite" url="index.php" />
            </rule>
          </rules>
        </rewrite>
      </system.webServer>
    </configuration>
    My signature :)

  5. #20
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts
    That seems to have worked.
    Given my history with this site i wont consider it fully fixed until i come in monday and it still looks right, but i thank you for all your help.
    you really dont know how much i appreciate it.


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •