Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Luis

    (@xluisramosx)

    It works now! What a stupid mistake…. :\

    Anyway, thanks a lot! I appreciate it 🙂

    Thread Starter Luis

    (@xluisramosx)

    Here’s the entire source:

    <?php
    
    // PROTECTION
    
    if ( ! defined('ABSPATH') ) { die(''); }
    
    global $_der;
    
    define('COLOR_THEME', strtolower($_der->getval('color_theme')));
    
    $color_stylesheet = ( COLOR_THEME != 'default' ) ? 'core/styles/' . COLOR_THEME . '.css,' : null;
    
    ?><!DOCTYPE html>
    
    <html dir="<?php bloginfo('text_direction'); ?>" lang="<?php bloginfo('language'); ?>">
    
    <head>
    
    <meta charset="<?php bloginfo('charset'); ?>" />
    
    <meta name="theme" content="<?php echo COLOR_THEME; ?>" />
    
    <title><?php wp_title('–',true, 'right'); bloginfo('name'); ?></title>
    
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    
    <?php
    
    	der_add_favicon('favicon');
    
    	der_load_stylesheets("style.css, $color_stylesheet core/style.php");
    
    	mod_typography_add_stylesheets();
    
    	der_do_robots();
    
    	wp_head();
    
    	ie_conditionals();
    
    ?>
    
    </head>
    
    <body<?php body_id(); ?>>
    
    <div id="topbar-wrap">
    
    	<div id="topbar">
    
    		<ul class="links">
    
    			<li class="rss-icon"><a href="<?php $_der->val('rss_feed', null, get_bloginfo('rss2_url')) ?>" title="<?php _t('RSS Feed'); ?>" ><img width="25" height="<?php echo MOD_SOCIAL_ICONS_HEIGHT; ?>" src="<?php bloginfo('template_directory'); ?>/core/images/icons/rss.png" /></a></li>
    
    <?php
    
    	$_der->set_options_context(MOD_SOCIAL);
    
    	$social_icons = mod_social_get_data();
    
    	foreach ($social_icons as $item) {
    
    		$target = ( $_der->checked('open_in_new_window') ) ? ' target="_blank"' : null;
    
    		$title = ( ! $_der->checked('hide_link_tooltips') ) ? ' title="' . $item['name'] . '"' : null;
    
    		echo "\t\t\t" . '<li><a href="' . $item['url'] . '"' . $target . $title . '><img width="' . MOD_SOCIAL_ICONS_WIDTH . '" height="' . MOD_SOCIAL_ICONS_HEIGHT . '" src="' . $item['icon'] . '" /></a></li>' . "\n";
    
    	}
    
    	$_der->restore_options_context();
    
    ?>		</ul><!-- .links -->
    
    		<form class="search" action="<?php bloginfo('home'); ?>" method="get">
    
    			<p><input type="text" name="s" title="<?php _t('Search...') ?>" value="<?php echo ( is_search() ) ? attribute_escape( get_search_query() ) : t('Search...'); ?>" /><input type="submit" value="<?php _t('Search'); ?>" /></p>
    
    		</form><!-- .search -->
    
    	</div><!-- topbar -->
    
    </div><!-- topbar-wrap -->
    
    <!-- + -->
    
    <div id="content-bg-overlay"></div>
    
    <div id="content-wrap-full"><div id="content-wrap-bg"><div class="content-wrap">
    
    <div id="header">
    
    	<div class="logo"><a href="<?php bloginfo('home'); ?>"><img src="<?php theme_logo(); ?>" /></a></div>
    
    	<div class="navigation centeredlist">
    
    		<span class="separator"></span>
    
    <?php
    
    	theme_navigation();
    
    ?>
    
    		<span class="separator" style="margin-top: -24px;"></span>
    
    	</div><!-- .navigation -->
    
    	<div id="breadcrumbs">
    
    		<?php
    		if (is_home()) {
    			echo "It works!"
    		}
    		else {
    			echo do_shortcode('[simple_crumbs root="Home" /]'); }
    		?>
    
    	</div>
    
    </div><!-- header -->
    
    <!-- + -->
    
    <?php  der_load_template(); ?>
    Thread Starter Luis

    (@xluisramosx)

    Nope, the code above is all the way down to line 181. This is what is in between line 90 and 100.

    $_der->set_options_context(MOD_SOCIAL);
    
    $social_icons = mod_social_get_data();

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)