Пример #1
0
?>
                            </p>
                        </div>
                    </div>
                    <?php 
if (osc_count_items() == 0) {
    ?>
                        <p class="empty" ><?php 
    printf(__('There are no results matching "%s"', 'modern'), osc_search_pattern());
    ?>
</p>
                    <?php 
} else {
    ?>
                        <?php 
    require osc_search_show_as() == 'list' ? 'search_list.php' : 'search_gallery.php';
    ?>
                    <?php 
}
?>
                    <div class="paginate" >
                    <?php 
echo osc_search_pagination();
?>
                    </div>
                </div>
            </div>
            <div id="sidebar">
                <div class="filters">
                    <form action="<?php 
echo osc_base_url(true);
Пример #2
0
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// meta tag robots
if (osc_count_items() == 0 || stripos(Params::getServerParam('REQUEST_URI', false, false), 'search')) {
    osc_add_hook('header', 'bender_nofollow_construct');
} else {
    osc_add_hook('header', 'bender_follow_construct');
}
bender_add_body_class('search');
$listClass = '';
$buttonClass = '';
if (osc_search_show_as() == 'gallery') {
    $listClass = 'listing-grid';
    $buttonClass = 'active';
}
osc_add_hook('before-main', 'sidebar');
function sidebar()
{
    osc_current_web_theme_path('search-sidebar.php');
}
osc_add_hook('footer', 'autocompleteCity');
function autocompleteCity()
{
    ?>
    <script type="text/javascript">
    $(function() {
                    function log( message ) {