Skip to content

Commit

Permalink
V1.0 Add analyzer and README update.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpurr committed May 30, 2015
1 parent bf98933 commit 46e4a60
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
1 change: 1 addition & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php get_sidebar(); ?>
<?php dpt_send_static(); ?>

</div>

Expand Down
33 changes: 23 additions & 10 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,42 @@ function dpt_pagenav() {
'next_text' => __('Next Page →','slackview')
);

if( $wp_rewrite->using_permalinks() )
if ( $wp_rewrite->using_permalinks() )
$pagination['base'] = user_trailingslashit( trailingslashit( remove_query_arg('s',get_pagenum_link(1) ) ) . 'page/%#%/', 'paged');

if( !empty($wp_query->query_vars['s']) )
if ( !empty($wp_query->query_vars['s']) )
$pagination['add_args'] = array('s'=>get_query_var('s'));

echo paginate_links($pagination);
}

function dpt_send_static() {

function dpt_send() {
?><script type="text/javascript">$(document).ready(function(){$.get("http://work.dimpurr.com/theme/theme_tj.php?theme_name=Slackview&blog_url=<?=get_bloginfo('url')?>&t=" + Math.random())})</script><?php
update_option( 'dpt_send', true );
};

if ( get_option('dpt_send') != true ) {
dpt_send();
}

}

function mv_browser_body_class($classes) {
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;
if($is_lynx) $classes[] = 'lynx';
elseif($is_gecko) $classes[] = 'gecko';
elseif($is_opera) $classes[] = 'opera';
elseif($is_NS4) $classes[] = 'ns4';
elseif($is_safari) $classes[] = 'safari';
elseif($is_chrome) $classes[] = 'chrome';
elseif($is_IE) {
if ( $is_lynx ) $classes[] = 'lynx';
elseif ( $is_gecko ) $classes[] = 'gecko';
elseif ( $is_opera ) $classes[] = 'opera';
elseif ( $is_NS4 ) $classes[] = 'ns4';
elseif ( $is_safari ) $classes[] = 'safari';
elseif ( $is_chrome ) $classes[] = 'chrome';
elseif ( $is_IE ) {
$classes[] = 'ie';
if(preg_match('/MSIE ([0-9]+)([a-zA-Z0-9.]+)/', $_SERVER['HTTP_USER_AGENT'], $browser_version))
$classes[] = 'ie'.$browser_version[1];
} else $classes[] = 'unknown';
if($is_iphone) $classes[] = 'iphone';
if ( $is_iphone ) $classes[] = 'iphone';
if ( stristr( $_SERVER['HTTP_USER_AGENT'],"mac") ) {
$classes[] = 'osx';
} elseif ( stristr( $_SERVER['HTTP_USER_AGENT'],"linux") ) {
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ input[type="submit"]:active, input[type="button"]:active, button:active, .commen
.header_hgroup {
position: absolute;
bottom: 20%;
left: 20%;
left: 15%;
padding: 35px 30px 30px 30px;
max-width: 25%;
max-width: 40%;
background: #3A3434;
background: rgba(58, 52, 52, 0.66);
}
Expand Down

0 comments on commit 46e4a60

Please sign in to comment.