Skip to content
Browse files

Commit of the day

  • Loading branch information...
1 parent 2ac47e8 commit 16b03554a56d8346211dd7b1f100314e93f45efd @lightyoruichi committed Mar 23, 2012
Showing with 109 additions and 33 deletions.
  1. +2 −2 front-page-presentation.php
  2. +12 −0 functions.php
  3. +3 −1 header.php
  4. +6 −2 includes/wordpress-reset-functions.php
  5. +14 −1 js/jquery.custom.js
  6. +4 −8 single.php
  7. +68 −19 style.css
View
4 front-page-presentation.php
@@ -27,7 +27,7 @@
<!-- end of intro -->
</div>
<?php endif; ?>
- <h3>Dato Seri' Hishammuddin Hussein</h3>
+ <h3 class="dshh">Dato Seri' Hishammuddin Hussein</h3>
<?php if ( get_option('fppre_row1') == '') $fppre_row1 = 'yes'; else $fppre_row1 = get_option('fppre_row1');?>
<?php if ( $fppre_row1 == 'yes' ): ?>
<div id="front-page-presentation-row-1" class="clearfix">
@@ -78,7 +78,7 @@
<?php the_title(); ?>
</a>
</h6>
- <?php global $more; $more = 0; the_content(__('Read More &#187;','duotive')); ?>
+ <?php global $more; $more = 0; the_excerpt(__('Read More &#187;','duotive')); ?>
</div>
<?php if ( $i%4 == 0 ) echo '<div class="post-sep"></div>'; ?>
<?php $i++; ?>
View
12 functions.php
@@ -92,4 +92,16 @@ function my_gform_enqueue_scripts($form, $is_ajax=false){
</script>
<?php
}
+
+
+function short_title($after = '', $length) {
+ $mytitle = get_the_title();
+ if ( strlen($mytitle) > $length ) {
+ $mytitle = substr($mytitle,0,$length);
+ echo $mytitle . $after;
+ } else {
+ echo $mytitle;
+ }
+}
+
?>
View
4 header.php
@@ -27,7 +27,9 @@
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $template_url; ?>/css/fonts.php" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $template_url; ?>/css/slideshows/nivo-slider-general.css" />
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $template_url; ?>/css/main-theme-light.css" />
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo $template_url; ?>/css/utilities/prettyPhoto.css" />
+ <link rel="stylesheet" type="text/css" media="all" href="<?php echo $template_url; ?>/css/utilities/prettyPhoto.css" />
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+
<!-- GET THE SLIDERS CSS -->
<?php $slidertype = get_option('slidertype'); if ( $slidertype == '' ) $slidertype='static-image'; else $slidertype = get_option('slidertype'); ?>
<?php switch ( $slidertype ) {
View
8 includes/wordpress-reset-functions.php
@@ -200,11 +200,15 @@ function new_excerpt_length($length) {
//DISPLAY THE TITLE OUTSIDE LOOP
+
function get_title_outside_loop() { ?>
<?php if ( is_page() || is_single()): ?>
<?php global $post; ?>
- <h1><?php echo get_the_title($post->ID); ?></h1>
- <?php elseif ( is_author() ): ?>
+ <?php $title = apply_filters( 'the_title', wp_trim_words( get_the_title($post->ID), 8, '&hellip;' ) );?>
+ <h1 <?php if (strlen($title) > "42") { echo "class='long-post-title'"; }?>>
+ <?php
+ echo $title;?></h1>
+ <?php elseif ( is_author() ): ?>
<h1>
<?php echo __('Author Archives: ', 'duotive'); ?>
<?php $author_id = get_query_var('author'); ?>
View
15 js/jquery.custom.js
@@ -523,4 +523,17 @@ jQuery(window).load(function () {
jQuery("#front-page-presentation-row-1 div.sep").height(maxHeight);
}
equalHeight();
-});
+});
+
+
+$(function() {
+ $("#sub-header-content h1").each(function() {
+ $(this).addClass($(this).text().length > 25 ? "large" : "small");
+ });
+});
+
+
+if ($('#sub-header-content > div.field-item:contains("someText")').length > 0) {
+ $("#somediv").addClass("thisClass");
+}
+
View
12 single.php
@@ -9,18 +9,14 @@
<?php endif; ?>
<div id="content"<?php if ( $postsidebar == 'yes') echo ' class="content-full-width"'; ?>>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div id="single">
- <?php $slider_display = get_option('slider_display'); if ( $slider_display == '' ) $slider_display = '1'; else $slider_display = get_option('slider_display'); ?>
- <?php if ( $slider_display == 0 ) : ?>
- <h1 class="title">
+ <div id="single">
+ <h3 class="title">
<?php the_title(); ?>
<!--end of entry title -->
- </h1>
- <?php endif; ?>
+ </h3>
<?php if ( get_option('postmeta') == '' ) $postmeta = 'yes'; else $postmeta = get_option('postmeta'); ?>
<?php if ( $postmeta == 'yes' ): ?>
- <div class="post-meta">
- <span class="author"><?php echo __('posted by ','duotive'); ?><a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php echo get_the_author(); ?>"><?php echo get_the_author(); ?></a>, </span>
+ <div class="post-meta">
<span class="date"><?php the_time('jS'); echo ' '; the_time('F'); echo ' '; the_time('Y');?>, </span>
<?php if ( count( get_the_category() ) ) : ?>
<span class="categories-link"><?php echo __('Categories:','duotive').' <span class="title">'.get_the_category_list( ', ' ).'</span>'; ?></span>
View
87 style.css
@@ -390,6 +390,8 @@ a#headerlogo:visited{
}
#sub-header-content-wrapper {
margin:auto;
+ margin-top:auto;
+ margin-bottom:auto;
position:relative;
height:138px;
overflow:hidden;
@@ -536,6 +538,7 @@ a#headerlogo:visited{
line-height:0px;
font-size:0px;
}
+
#front-page-business #front-page-posts {
padding-top:0px;
}
@@ -1217,8 +1220,8 @@ a#headerlogo:visited{
padding-bottom:0px;
}
#front-page-presentation-wrapper li.twitter ul li {
- background:#faf9f5 url(images/sidebar-twitter-bg.png) no-repeat 20px 20px !important;
- border:1px solid #e6e4df;
+ background:#e9e7dd url(images/sidebar-twitter-bg.png) no-repeat 20px 20px !important;
+ border:1px solid #b6a290;
font-size:8pt;
padding:14px 18px 14px 58px;
overflow:hidden;
@@ -1265,9 +1268,8 @@ a#headerlogo:visited{
}
#front-page-presentation-wrapper #front-page-presentation-row-1 .sep {
float:left;
- margin-left:15px;
- margin-right:14px;
- border-left:1px dotted #b2b2b2;
+ margin-left:14px;
+ margin-right:25px;
width:0px;
height:100px;
}
@@ -1292,6 +1294,7 @@ a#headerlogo:visited{
border-bottom:1px dotted #b2b2b2;
padding-bottom:24px;
margin-bottom:30px;
+ width:1200px;
}
#front-page-presentation-wrapper #front-page-presentation-row-2 .post {
width:217px;
@@ -1923,7 +1926,7 @@ h6 {
}
#content strong {
font-weight:bold;
- color:#b2b2b2;
+ color:#000;
}
#content em {
border-bottom:1px dotted #b2b2b2;
@@ -2033,9 +2036,19 @@ h6 {
#content table tr td.last {
border-right:1px solid #e6e4df;
}
-#content table tr.alternative td {
- background:#faf9f5;
+
+#content table tr tr.last:nth-child(even) {
+ background-color: #FAF9F5;
}
+
+#content table td:nth-child(even) {
+ background-color: #FAF9F5;
+}
+
+#content table tr tr.last:nth-child(odd) {
+ background-color: #fff;
+}
+
#content a.more-link:link,
#content a.more-link:visited {
padding:5px 10px;
@@ -2183,14 +2196,14 @@ h6 {
padding-bottom:0px;
}
#content .accordion {
- border-top:1px solid #e6e4df;
+ border-top:1px solid #b6a290;
margin-bottom:30px;
}
#content .accordion .ui-accordion-header {
line-height:51px;
height:51px;
padding-bottom:0px !important;
- border-bottom:1px solid #e6e4df;
+ border-bottom:1px solid #b6a290;
position:relative;
background:url(images/content-accordion-header.png) right top no-repeat;
}
@@ -2217,7 +2230,7 @@ h6 {
#content .accordion .ui-accordion-header a:link,
#content .accordion .ui-accordion-header a:visited {
text-decoration:none;
- color:#b2b2b2;
+ color:#a68d77;
line-height:51px;
display:block;
font-weight:bold;
@@ -3233,12 +3246,13 @@ table.pricing div.no {
#content form input[type="text"],
#content form input[type="password"],
#content form textarea {
- background:#FFF url(images/content-form-bg.png) repeat;
- border:1px solid #d9d7d2;
+ background:#faf9f5 url(images/content-form-bg.png) repeat !important;
+ border:1px solid #b6a290;
padding:5px 10px;
float:left;
clear:both;
- resize:none;
+ resize:none;
+ width: 80%;
}
#content form textarea {
padding:10px;
@@ -3251,11 +3265,7 @@ table.pricing div.no {
padding:4px 10px;
cursor:pointer;
}
-#content form {
- padding:19px;
- border:1px solid #e6e4df;
- background:#faf9f5;
-}
+
#content form .jqTransformHidden {
display:none;
}
@@ -4759,6 +4769,7 @@ div.duotive-gallery-separator{
width:520px;
}
+
#content input[type="button"], #content input[type="submit"], #content input[type="reset"]{
margin-left:17px;
}
@@ -4767,3 +4778,41 @@ width:520px;
.tablecenter {
padding-left:20px;
}
+
+.dshh {
+ margin-top:-10px;
+}
+
+
+.shadebox {
+ background:#e9e7dd;
+ border:1px solid #b6a290;
+ padding:14px 0px 0px 14px;
+ overflow:hidden
+}
+
+.citizen-gform {
+ margin-top: 26px;
+ padding-top:33px;
+ margin-bottom: -40px;
+ background:#FAF9F5 !important;
+}
+
+.twitter-follow-button {
+margin-top:5px;}
+
+.onethirdlast {
+margin-left:11px;}
+
+.receive-updates {
+margin-right:52px;}
+
+.long-post-title {
+margin-top:-18px !important;
+}
+
+#content form {
+ padding:19px;
+ border:1px solid #b6a290;
+ background:#e9e7dd;
+}

0 comments on commit 16b0355

Please sign in to comment.
Something went wrong with that request. Please try again.