<?php

// Expose node (loaded from database) into $variables
if (!empty($variables['result']['node']->entity_id) || strpos(request_uri(), '-DEBUG-STOP-FULLNODE-LOAD-') === false) {
    $variables['fullNode'] = node_load($variables['result']['node']->entity_id);
}
// Search result container-divs shall have the search-result title as one of its CSS classes
$titleInContainerClass = $title;
if (function_exists('cssFriendlyString')) {
    $titleInContainerClass = cssFriendlyString($titleInContainerClass);
    // Function defined in Miscellaneous-SharedFunctions.php
}
?>
<div class="search-result-container <?php 
print $classes;
?>
 search-result-<?php 
print $variables['result']['bundle'];
?>
 search-result-title-<?php 
print $titleInContainerClass;
?>
">
    <?php 
print render($title_prefix);
?>
    <div class="search-result-content-type">
      <?php 
/* Determin the URL for the icon for this search-result */
$iconURL = base_path() . path_to_theme() . '/images/content-types-icons/34x34/' . $variables['result']['bundle'] . '.png';
// Check if there is an override for this result-icon (if this node has data in the search_icon_override field)
Example #2
0
				<div class="panel-heading">
					<h3 class="panel-title">Filter by resource type</h3>
				</div>
				<div class="panel-body">

					<?php 
$officeTypeField = field_info_field('field_appoffice_type');
$officeTypes = list_allowed_values($officeTypeField);
$officeTypesTooltipDesc = array("SCORE Office" => "SCORE is a nonprofit association comprised of over 13,000 volunteer business counselors, advisors, and mentors who offer free counseling and mentoring throughout the U.S. and its territories.", "Small Business Development Center" => "Small Business Development Centers (SBDCs) are partnerships primarily between the government and colleges/universities aimed at providing educational services to small business owners.", "SBA District Office" => "SBA District Offices offer counseling, training and business development specialists to help you start and grow your business.", "SBA Regional Office" => "SBA Regional Offices offer counseling, training and business development specialists to help you start and grow your business.", "Disaster Field Office" => "SBA Disaster Field Offices offer counseling and financial assistance to those who are rebuilding their homes and businesses after natural disasters.", "U.S. Export Assistance Center" => "U.S. Export Assistance Centers (USEACs) are designed to provide export assistance and make worldwide commerce achievable for your small- or medium-sized business.", "Private Lender" => "The SBA extends financial assistance through private sector lenders, such as banks and other financial institutions, who make the loans with an SBA guaranty. A participating lender may make one of three decisions: to approve the loan itself, make it with SBA's guaranty, or decline it altogether.", "Women's Business Center" => "Women's Business Centers (WBCs) represent a national network of educational centers designed to assist women to start and grow small businesses.", "Veteran's Business Outreach Center" => "Veterans Business Outreach Centers (VBOCs) are designed to provide entrepreneurial development services and referrals for eligible veterans owning or considering starting a small business.", "Small Business Investment Company" => "A Small Business Investment Company (SBIC) is a private lending company which is licensed and regulated by the Small Business Administration (SBA). SBIC's offer venture capital financing to higher-risk small businesses, and SBIC loans are guaranteed by the SBA.", "Procurement & Technical Assistance Center" => "Procurement Technical Assistance Centers (PTACs) provide technical assistance to businesses that want to sell products and services to federal, state, and/or local governments.", "Microloan Program Intermediary Lender" => "The U.S. Small Business Administration (SBA) offers a Microloan Program that provides microloans (loans of \$50,000 or less) to small businesses by way of a network of private non-profit community and faith based lenders (subject to availability of funds). The SBA makes loans to these Intermediary Lenders, enabling the lenders in turn to make loans to small business borrowers.", "Certified Development Company" => "Certified Development Companies (CDCs) are nonprofit corporations certified and regulated by the SBA which work with participating lenders to provide financing to small businesses.", "U.S. Commercial Service Office" => "The U.S. Commercial Service is the trade promotion arm of the U.S. Department of Commerce’s International Trade Administration. U.S. Commercial Service trade professionals in over 100 U.S. cities and in more than 75 countries help U.S. companies get started in exporting or increase sales to new global markets.", "Rural Development Office" => "USDA Office of Rural Development (RD) is an agency with the United States Department of Agriculture which runs programs intended to improve the economy and quality of life in rural America.", "NIST (MEP - Manufacturing Extension Partnership)" => "The Manufacturing Extension Partnership (MEP) is a catalyst for strengthening American manufacturing – accelerating its ongoing transformation into a more efficient and powerful engine of innovation driving economic growth and job creation.", "BIS Export Enforcement Office" => "BIS Export Enforcement Office works cooperatively with the exporting community to prevent violations, and conducts investigations to gather evidence to support criminal and administrative sanctions.", "BIS Outreach and Education Services Division Office" => "The BIS Outreach and Educational Services Division is responsible for responding to inquiries from the exporting community regarding the Export Administration Regulations (EAR), export control policy, and licensing procedures. It also plans, conducts and participates in seminars and other outreach efforts to help exporters understand and comply with the EAR.", "MBDA Business Center" => "Minority-owned firms seeking to penetrate new markets — domestic & global — and growing in size and scale, can access business experts at a MBDA Business Center. Whether it’s securing capital, competing for a contract, identifying a strategic partner or becoming export-ready, your success is our priority.");
?>
						<ul class="resourcecenters-filter-filters">
							<?php 
foreach ($officeTypes as $officeKey => $officeType) {
    ?>
								<?php 
    $officeId = cssFriendlyString($officeKey);
    ?>
								<?php 
    if ($officeId === 'sbaregionaloffice') {
        continue;
    }
    ?>

								<li class="resourcecenters-filter">
									<?php 
    global $officeParams;
    if (strpos($_GET['wiz'], ',') !== false) {
        $officeParams = explode(',', $_GET['wiz']);
    }
    // Export checkboxes as settings.
    $wiz_facet_checkboxes = array('scoreoffice' => 'score', 'mbdabusinesscenter' => 'min', 'veteransbusinessoutreachcenter' => 'vet', 'womensbusinesscenter' => 'woman', 'smallbusinessdevelopmentcenter' => 'sbdc', 'usexportassistancecenter' => 'useac', 'sbadistrictoffice' => 'sbadistoff');
<div class="searchresults-topwizardarea-container wizard-result-count-<?php 
print count($wizards);
?>
">
    <?php 
foreach ($suggested_results as $result) {
    ?>


            <?php 
    /* Only show this result if there is an icon for it... @TODO: This needs to be refactored at a later time. */
    ?>

                <div class="searchresults-topwizardarea-wizarditem searchresults-topwizardarea-wizarditem-<?php 
    print cssFriendlyString($result['title']);
    ?>
" wizardlink="/" onclick=" window.open('<?php 
    print $result['url'];
    ?>
');">
                    <div class="searchresults-topwizardarea-wizarditem-colorspacer" style="background-color: <?php 
    print $result['bgcolor'];
    ?>
;">

                        <!-- This div is only meant to be used as a color-bar -->

                        <div class="searchresults-topwizardarea-wizarditem-leftright-container">
                            <div class="searchresults-topwizardarea-wizarditem-leftside">
                                <!-- Result Node ID is: <?php 
            ?>
" value="<?php 
            print $optionWizTag;
            ?>
" class="question-controle wiztag-<?php 
            print $optionWizTag;
            ?>
 <?php 
            print $variables['inputClass'];
            ?>
" <?php 
            print $variables['inputAttrs'];
            ?>
>
                            <label for="<?php 
            print $variables['wizardTag'] . '-' . cssFriendlyString($optionLabel);
            ?>
">
                                <?php 
            print $optionLabel;
            ?>
                            </label>
                        </div>
                    <?php 
        }
        ?>
                <?php 
        break;
        ?>
                
            <?php 
 wizard-result-section-<?php 
        print $sectionType;
        ?>
 wizard-result-countlessthan5-<?php 
        print count($results) < 5 ? 'true' : 'false';
        ?>
 wizard-result-count-<?php 
        print count($results);
        ?>
">

				<a name="<?php 
        print cssFriendlyString($sectionType);
        ?>
" id="<?php 
        print cssFriendlyString($variables['titles']);
        ?>
" />
				
				<?php 
        if ($variables['showSectionIcons']) {
            ?>
					 <div class="wizard-result-section-icon-container">
						<div class="wizard-result-section-icon">
							<img alt="logo" src="<?php 
            print $variables['legend'][$sectionType]['img'];
            ?>
"/>
						</div>
						<div class="wizard-result-section-icontitle">
							<?php