public function importTemplatesForCategory($category_name, $site_code)
 {
     WPLA()->logger->info("importTemplatesForCategory( {$category_name} , {$site_code} )");
     $file_index = WPLA_FeedTemplateIndex::get_file_index();
     $this->imported_count = 0;
     if (!isset($file_index[$site_code])) {
         return;
     }
     $site = $file_index[$site_code];
     // echo "<pre>";print_r($category_name);echo"</pre>";
     // echo "<pre>";print_r($site);echo"</pre>";
     $this->market = WPLA_AmazonMarket::getMarketByCountyCode($site_code);
     $this->site_id = $this->market->id;
     $this->site_code = $site_code;
     if (!isset($site['categories'][$category_name])) {
         return;
     }
     $category = $site['categories'][$category_name];
     // echo "<pre>";print_r($category);echo"</pre>";
     // $template_files = $category['templates'];
     // $btguides_files = $category['btguides'];
     // echo "<pre>";print_r($template_files);echo"</pre>";
     // echo "<pre>";print_r($btguides_files);echo"</pre>";
     WPLA()->logger->info("importing files for {$this->site_id} / {$this->site_code}");
     $this->importTemplates($category['templates'], $site_code);
     $this->importBrowseTreeGuides($category['btguides'], $site_code);
     // remove data files
     $this->cleanupTempFiles();
     return $this->imported_count;
 }
				</div>
			</div> <!-- #postbox-container-1 -->


			<!-- #postbox-container-2 -->
			<div id="postbox-container-2" class="postbox-container">
				<div class="meta-box-sortables ui-sortable">
					

					<?php 
foreach ($wpl_file_index as $site_code => $amazon_site) {
    ?>

					<?php 
    $site = WPLA_AmazonMarket::getMarketByCountyCode($site_code);
    $site_id = $site->id;
    ?>

					<div class="postbox wpla_categories" id="CategoriesBox-<?php 
    echo $site_code;
    ?>
">
						<h3 class="hndle"><span><?php 
    echo $amazon_site['site'];
    ?>
</span></h3>
						<div class="inside">

							<!-- <h4>Categories</h4> -->
							<ul>