Example #1
0
function theme_image($name, $params = null)
{
    $extra = '';
    if (is_array($params)) {
        foreach ($params as $param => $value) {
            $extra .= " {$param}=\"{$value}\" ";
        }
    }
    echo '<img src="', get_theme_image($name), '" ', $extra, ' />';
}
Example #2
0
 function get_theme_image($file, $attr = true)
 {
     return get_theme_image($file, $attr);
 }
Example #3
0
_e('E-mail', 'tnb');
?>
'  class="text auto_clean" />
            </div>
            <div class="span-4 last">
              <input type="text" name="contact_site" value="<?php 
echo isset($_POST['contact_site']) ? $_POST['contact_site'] : (is_string($v = $current_user->site) ? $v : __('E-mail', 'tnb'));
?>
" title='<?php 
_e('http://', 'tnb');
?>
' class="text auto_clean" />
            </div>
            <div class="span-3 prepend-1 last">
              <input type="image" src="<?php 
echo get_theme_image("submit.png");
?>
" value="<?php 
_e('Enviar', 'tnb');
?>
" class="submit" />
            </div>
            <div class="clear"></div>
          </form>
          <div class="clear"></div>
        </div>
      </div>
    </div>
  </div>
</div>
Example #4
0
<!DOCTYPE html>
<html lang="en">
<head>
	<?php 
get_partial('metadata');
?>
</head>
<body class="panel-bg-login">

	<div class="panel-login-header text-center">
		<a target="_blank" href="<?php 
echo site_url();
?>
">
			<img src="<?php 
echo get_theme_image('kujang_logo.png', false);
?>
" height="200px">
		</a>
	</div>

	
	
	<div class="panel-login-form text-center">
		
		<div class="form-text">Login Admin</div>

		<div class="notif">
			<?php 
echo isset($message) ? '<div class="alert alert-danger">' . $message . '</div>' : '';
?>
Example #5
0
        query_posts('post_type=eventos');
        if (have_posts()) {
            the_post();
            echo get_post_meta(get_the_ID(), 'evento_tos', true);
        }
        ?>
								</div>
                                
                                <div class="span-12 last">
                                    <input type="checkbox" name='tos_acepted' value="1" id='tos_acepted'/>
                                    <label for='tos_acepted'> Li e aceito os termos do edital</label>
                                </div>
                                
                                <div class="span-2 prepend-10 last">
                                    <input type="image" src="<?php 
        echo get_theme_image("submit-green.png");
        ?>
" value="Enviar" class="submit" />
                                </div>
                                
                                
                                
                            <?php 
    }
    ?>
                        </form>
                    </div><!-- #artistas -->
                    
                </div><!-- #content -->
            </div>
            <!-- #formularios-de-cadastro -->     
                    <input id="acontece_ate" name='acontece_ate' type="text" value="<?php 
echo $_GET['acontece_ate'];
?>
" class="date bottom"/>
                    
                    <a id="ok_datas_search" value="ok">ok</a>

                </li>
            </ul>
        </div>
    </div>
    <!-- .clearfix -->

    <div class="clearfix bottom">
        <input type="checkbox" id="oportunidades_abertas" name='oportunidades_abertas' class="bottom" <?php 
echo isset($_GET['oportunidades_abertas']) ? 'checked="checked"' : '';
?>
/>
        <label for="oportunidades_abertas" class="checkbox">apenas com inscrições abertas</label>
    </div>
    <!-- .clearfix -->

    <div class="text-right">
        <input type="image" src="<?php 
echo get_theme_image("btn-search-opportunities.png");
?>
" class="btn-search" />
    </div>
</form>
<!-- #search-opportunities -->
Example #7
0
    function DisplayTheme($themes = array())
    {
        global $theme_direct_jump, $themes_column_sorting, $themes_ref_column, $themes_date_column, $baseurl_short, $baseurl, $default_perpage_list, $collection_prefix, $col_order_by, $revsort, $sort, $find, $getthemes, $m, $lang, $flag_new_themes, $contact_sheet, $theme_images, $allow_share, $zipcommand, $collection_download, $theme_images_align_right, $themes_category_split_pages, $themes_category_split_pages_parents, $collections_compact_style, $pagename, $show_edit_all_link, $preview_all, $userref, $collection_purge, $themes_category_split_pages, $themes_category_split_pages_parents_root_node, $enable_theme_category_sharing, $enable_theme_category_edit, $show_theme_collection_stats, $lastlevelchange;
        $col_order_by = getvalescaped("order_by", getvalescaped("saved_themes_order_by", "created"));
        $sort = getvalescaped("sort", getvalescaped("saved_themes_sort", "ASC"));
        $revsort = $sort == "ASC" ? "DESC" : "ASC";
        # pager
        $per_page = getvalescaped("per_page_list", $default_perpage_list, true);
        $collection_valid_order_bys = array("name", "c");
        // sorting doesn't work for nonsplit
        if (!$themes_column_sorting || !$themes_category_split_pages || $theme_direct_jump) {
            $sort = "ASC";
            $col_order_by = "name";
            $themes_column_sorting = false;
        }
        if ($themes_ref_column) {
            $collection_valid_order_bys[] = "ref";
        }
        if ($themes_date_column) {
            $collection_valid_order_bys[] = "created";
        }
        $modified_collection_valid_order_bys = hook("modifycollectionvalidorderbys");
        if ($modified_collection_valid_order_bys) {
            $collection_valid_order_bys = $modified_collection_valid_order_bys;
        }
        if (!in_array($col_order_by, $collection_valid_order_bys)) {
            $col_order_by = "created";
        }
        # Check the value is one of the valid values (SQL injection filter)
        # Work out theme name
        $themecount = count($themes);
        for ($x = 0; $x < $themecount; $x++) {
            if (isset($themes[$x]) && !isset($themes[$x + 1])) {
                $themename = i18n_get_translated($themes[$x]);
            }
        }
        $getthemes = get_themes($themes);
        if (count($getthemes) > 0) {
            ?>
		<div class="RecordBox">
		<div class="RecordPanel">

		<div class="RecordHeader">

		<?php 
            if ($themes_category_split_pages && $themes_category_split_pages_parents) {
                ?>
<h1><?php 
                echo $lang["collections"];
                ?>
</h1><?php 
            }
            // count total items in themes
            $totalcount = 0;
            for ($m = 0; $m < count($getthemes); $m++) {
                $totalcount = $totalcount + $getthemes[$m]['c'];
            }
            if ($theme_images_align_right) {
                ?>
			<div style="float:right;">
			<?php 
            }
            $images = get_theme_image($themes);
            if ($images !== false && $theme_images) {
                for ($n = 0; $n < count($images); $n++) {
                    ?>
<div style="float:left;margin-right:12px;"><img class="CollectImageBorder" src="<?php 
                    echo get_resource_path($images[$n], false, "col", false);
                    ?>
" /></div>
				<?php 
                }
            }
            if ($theme_images_align_right) {
                ?>
			</div>
			<?php 
            }
            $themeslinks = "";
            for ($x = 0; $x < count($themes); $x++) {
                $themeslinks .= "theme" . ($x + 1) . "=" . urlencode($themes[$x]) . "&";
            }
            ?>
        <table><tr><td style="margin:0px;padding:0px;">
		<h1 ><?php 
            if ($themes_category_split_pages && $themes_category_split_pages_parents) {
                if ($themes_category_split_pages_parents_root_node) {
                    ?>
<a href="themes.php"  onClick="return CentralSpaceLoad(this,true);"><?php 
                    echo $lang["themes"];
                    ?>
</a> / <?php 
                }
                $themescrumbs = "";
                for ($x = 0; $x < count($themes); $x++) {
                    $themescrumbs .= "theme" . ($x + 1) . "=" . urlencode($themes[$x]) . "&";
                    ?>
<a href="themes.php?<?php 
                    echo $themescrumbs;
                    ?>
"  onClick="return CentralSpaceLoad(this,true);"><?php 
                    echo htmlspecialchars(i18n_get_translated($themes[$x]));
                    ?>
</a> / <?php 
                }
            } else {
                echo stripslashes(str_replace("*", "", $themename));
            }
            ?>
</h1></td></tr><tr><td style="margin:0px;padding:0px;">
			
			<?php 
            if ($show_theme_collection_stats || !$themes_category_split_pages && ($enable_theme_category_sharing || $enable_theme_category_edit)) {
                $linkparams = "";
                for ($x = 0; $x < count($themes); $x++) {
                    $linkparams .= "theme" . ($x + 1) . "=" . urlencode($themes[$x]) . "&";
                }
                if ($show_theme_collection_stats) {
                    ?>
					<p style="clear:none;"><?php 
                    $collcount = count($getthemes);
                    echo $collcount == 1 ? $lang["collections-1"] : sprintf(str_replace("%number", "%d", $lang["collections-2"]), $collcount, $totalcount);
                    hook("themeactioninline");
                    ?>
					</p>
					</td><td style="margin:0px;padding:0px;">
					<?php 
                }
                ?>
				<?php 
                if (!$themes_category_split_pages) {
                    if (checkperm("h") && $enable_theme_category_sharing) {
                        $sharelink = "";
                        for ($x = 0; $x < count($themes); $x++) {
                            $sharelink .= "theme" . ($x + 1) . "=" . urlencode($themes[$x]) . "&";
                        }
                        ?>
						
						</td><tr><td style="margin:0px;padding:0px;">
						<a href="theme_category_share.php?<?php 
                        echo $linkparams;
                        ?>
"  onClick="return CentralSpaceLoad(this,true);"><?php 
                        echo "> " . $lang["share"] . "</a>";
                    }
                    hook("themeaction");
                    if ($enable_theme_category_edit && checkperm("t")) {
                        ?>
						<a href="theme_edit.php?<?php 
                        echo $linkparams . "lastlevelchange=" . $lastlevelchange;
                        ?>
" onClick="return CentralSpaceLoad(this,true);"><?php 
                        echo "> " . $lang["action-edit"] . "</a>";
                    }
                }
            }
            ?>
			
			</td></tr></table>
            <!-- The number of collections should never be equal to zero. -->

		<div class="clearerright"> </div>
		</div>
		<br />
		<div class="Listview" style="margin-top:10px;margin-bottom:5px;clear:left;">
		<table border="0" cellspacing="0" cellpadding="0" class="ListviewStyle">
		<tr class="ListviewBoxedTitleStyle">
		<td><?php 
            if ($col_order_by == "name") {
                ?>
<span class="Selected"><?php 
            }
            if ($themes_column_sorting) {
                ?>
<a href="<?php 
                echo $baseurl_short;
                ?>
pages/themes.php?<?php 
                echo $themeslinks;
                ?>
order_by=name&sort=<?php 
                echo $revsort;
                ?>
" onClick="return CentralSpaceLoad(this);"><?php 
            }
            echo $lang["collectionname"];
            if ($themes_category_split_pages) {
                ?>
</a><?php 
            }
            if ($col_order_by == "name") {
                ?>
<div class="<?php 
                echo $sort;
                ?>
">&nbsp;</div><?php 
            }
            ?>
</td>
		<?php 
            if ($themes_ref_column) {
                ?>
		<td><?php 
                if ($col_order_by == "ref") {
                    ?>
<span class="Selected"><?php 
                }
                if ($themes_column_sorting) {
                    ?>
<a href="<?php 
                    echo $baseurl_short;
                    ?>
pages/themes.php?<?php 
                    echo $themeslinks;
                    ?>
order_by=ref&sort=<?php 
                    echo $revsort;
                    ?>
" onClick="return CentralSpaceLoad(this);"><?php 
                }
                echo $lang["id"];
                if ($themes_category_split_pages) {
                    ?>
</a><?php 
                }
                if ($col_order_by == "ref") {
                    ?>
<div class="<?php 
                    echo $sort;
                    ?>
">&nbsp;</div><?php 
                }
                ?>
</td>
		<?php 
            }
            ?>
		<?php 
            if ($themes_date_column) {
                ?>
		<td><?php 
                if ($col_order_by == "created") {
                    ?>
<span class="Selected"><?php 
                }
                if ($themes_column_sorting) {
                    ?>
<a href="<?php 
                    echo $baseurl_short;
                    ?>
pages/themes.php?<?php 
                    echo $themeslinks;
                    ?>
order_by=created&sort=<?php 
                    echo $revsort;
                    ?>
" onClick="return CentralSpaceLoad(this);"><?php 
                }
                echo $lang["created"];
                if ($themes_category_split_pages) {
                    ?>
</a><?php 
                }
                if ($col_order_by == "created") {
                    ?>
<div class="<?php 
                    echo $sort;
                    ?>
">&nbsp;</div><?php 
                }
                ?>
</td>
		<?php 
            }
            ?>
		<td><?php 
            if ($col_order_by == "c") {
                ?>
<span class="Selected"><?php 
            }
            if ($themes_column_sorting) {
                ?>
<a href="<?php 
                echo $baseurl_short;
                ?>
pages/themes.php?<?php 
                echo $themeslinks;
                ?>
order_by=c&sort=<?php 
                echo $revsort;
                ?>
" onClick="return CentralSpaceLoad(this);"><?php 
            }
            echo $lang["itemstitle"];
            if ($themes_category_split_pages) {
                ?>
</a><?php 
            }
            if ($col_order_by == "c") {
                ?>
<div class="<?php 
                echo $sort;
                ?>
">&nbsp;</div><?php 
            }
            ?>
</td>
		<?php 
            hook("beforecollectiontoolscolumnheader", "themes", array($themeslinks));
            ?>
		<td><div class="ListTools"><?php 
            echo $lang["tools"];
            ?>
</div></td>
		</tr>

		<?php 
            for ($m = 0; $m < count($getthemes); $m++) {
                ?>
			<tr <?php 
                hook("collectionlistrowstyle");
                ?>
>
			<td width="50%"><div class="ListTitle"><a href="search.php?search=!collection<?php 
                echo $getthemes[$m]["ref"];
                ?>
&bc_from=themes"  title="<?php 
                echo $lang["collectionviewhover"];
                ?>
" onClick="return CentralSpaceLoad(this,true);"><?php 
                echo htmlspecialchars(i18n_get_translated($getthemes[$m]["name"]));
                ?>
</a>
			<?php 
                if ($flag_new_themes && time() - strtotime($getthemes[$m]["created"]) < 60 * 60 * 24 * 14) {
                    ?>
<div class="NewFlag"><?php 
                    echo $lang["newflag"];
                    ?>
</div><?php 
                }
                ?>
			</div></td>
			<?php 
                if ($themes_ref_column) {
                    ?>
			<td><?php 
                    echo $getthemes[$m]["ref"];
                    ?>
</td>
			<?php 
                }
                ?>
			<?php 
                if ($themes_date_column) {
                    ?>
			<td><?php 
                    echo nicedate($getthemes[$m]["created"], true);
                    ?>
</td>
			<?php 
                }
                ?>
			<td width="5%"><?php 
                echo $getthemes[$m]["c"];
                ?>
</td>
			<?php 
                hook("beforecollectiontoolscolumn");
                ?>
			<td nowrap><div class="ListTools">
            <?php 
                if ($collections_compact_style) {
                    include "collections_compact_style.php";
                } else {
                    ?>
<a href="search.php?search=<?php 
                    echo urlencode("!collection" . $getthemes[$m]["ref"]);
                    ?>
" title="<?php 
                    echo $lang["collectionviewhover"];
                    ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                    echo $lang["viewall"];
                    ?>
</a>

                <?php 
                    if (!checkperm("b")) {
                        ?>
&nbsp;<?php 
                        echo change_collection_link($getthemes[$m]["ref"]);
                        ?>
&gt;&nbsp;<?php 
                        echo $lang["action-select"];
                        ?>
</a><?php 
                    }
                    ?>

                <?php 
                    if (isset($zipcommand) || $collection_download) {
                        ?>
                &nbsp;<a href="collection_download.php?collection=<?php 
                        echo $getthemes[$m]["ref"];
                        ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                        echo $lang["action-download"];
                        ?>
</a>
                <?php 
                    }
                    ?>

                <?php 
                    if ($contact_sheet == true) {
                        ?>
                &nbsp;<a href="contactsheet_settings.php?ref=<?php 
                        echo $getthemes[$m]["ref"];
                        ?>
"  title="<?php 
                        echo $lang["collectioncontacthover"];
                        ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                        echo $lang["contactsheet"];
                        ?>
</a>
                <?php 
                    }
                    ?>

                <?php 
                    if ($allow_share && (checkperm("v") || checkperm("g"))) {
                        ?>
 &nbsp;<a href="collection_share.php?ref=<?php 
                        echo $getthemes[$m]["ref"];
                        ?>
"  onClick="return CentralSpaceLoad(this,true);" target="main">&gt;&nbsp;<?php 
                        echo $lang["share"];
                        ?>
</a><?php 
                    }
                    ?>

                <?php 
                    if (checkperm("h")) {
                        ?>
&nbsp;<a href="collection_edit.php?ref=<?php 
                        echo $getthemes[$m]["ref"];
                        ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                        echo $lang["action-edit"];
                        ?>
</a><?php 
                    }
                    ?>

                <?php 
                    hook("addcustomtool", "", array($getthemes[$m]["ref"]));
                    ?>
			<?php 
                }
                ?>
			</td>
			</tr>
			<?php 
            }
            ?>
		</table>
		</div>

		</div>
		<div class="PanelShadow"> </div>
		</div>
		<?php 
        }
    }
Example #8
0
        </ul>
    </nav>
    <!-- #institutional -->
    <nav id="main-menu">
        <?php 
wp_nav_menu(array("theme_location" => "main-menu"));
?>
    </nav>
    <!-- #main-menu -->
    <form id="searchform" method="get" action="<?php 
echo site_url();
?>
">
        <input id="s" name="s" type="text" />
        <input type="image" src="<?php 
echo get_theme_image("busca.png");
?>
" />
        <input type="hidden" id="search_param1" value="" />
        <input type="hidden" id="search_param2" value="" />
        <input type="hidden" id="search_param3" value="" />
        <ul id="search-options">
            <li><a class="search-option" id="search_usuarios">universo TNB</a></li>
            <li><a class="search-option" id="search_oportunidades">oportunidades</a></li>
            <li><a class="search-option" id="search_blog">blog</a></li>
        </ul>
    </form>
    <!-- #searchform -->

    <nav class="user-nav">
        <?php 
?>
/js/html5.js" type="text/javascript" charset="utf-8"></script>
        <![endif]-->
        <!--[if IE 7]>
            <link rel="stylesheet" type="text/css" media="all" href="<?php 
bloginfo('stylesheet_directory');
?>
/css/ie7.css" />
        <![endif]-->

        <link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
        <link type="image/x-icon" href="<?php 
echo get_theme_image('favicon.ico');
?>
" rel="shortcut icon" />
  
        <link rel="stylesheet" href="<?php 
bloginfo('stylesheet_directory');
?>
/js/colorpicker/css/colorpicker.css" type="text/css" />
        <link rel="stylesheet" href="<?php 
bloginfo('stylesheet_directory');
?>
/css/widgets.css" type="text/css" />
        
        <?php 
if (is_singular() && get_option('thread_comments')) {
    wp_enqueue_script('comment-reply');
Example #10
0
{{ if show_title == 'true' }}
<div class="title"><h4>{{ title }}</h4></div>
{{ endif }}

<div class="small_slider_hots owl-carousel owl-theme">
	<div class="item clearfix">
		<ul class="small_posts">
			{{ latest_posts }}
			<li class="clearfix">
				<a class="s_thumb hover-shadow" href="{{ func.site_url url=url }}"><img width="70" height="70" src="<?php 
echo get_theme_image("assets/thumb13.jpg", false);
?>
" alt="#"></a>
				<h3><a href="{{ func.site_url url=url }}">{{ title }}</a></h3>
				<div class="meta mb"> <a class="cat color1" href="#" title="View all posts under Entertainment">Kegiatan</a><span class="post_rating" href="#" title="Rating">25 Agustus 2014</span> </div>
			</li>
			{{ /latest_posts }}
		</ul>
	</div>
</div>
Example #11
0
function custom_login_logo()
{
    ?>
        <style type="text/css">
	        #nav {display: none !important; }
            h1 a { height: 45px; width: 354px; margin-left: -12px; background-image: url(<?php 
    echo get_theme_image('toquenobrasil2.png")');
    ?>
) !important; }
        </style>
        
    <?php 
}