summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpriyanka2014-08-18 14:33:10 +0530
committerpriyanka2014-08-18 14:33:10 +0530
commit2bd3983d9f3120edbd4bf55bb430e69aea060aac (patch)
tree7a0e433482be9fedfa574fc4c6cf5f996c89a287
parent3cc669b7ee38c4b35ef9063f4c8077f05c2875b0 (diff)
downloadscilab_theme-2bd3983d9f3120edbd4bf55bb430e69aea060aac.tar.gz
scilab_theme-2bd3983d9f3120edbd4bf55bb430e69aea060aac.tar.bz2
scilab_theme-2bd3983d9f3120edbd4bf55bb430e69aea060aac.zip
updated testimonials block
-rw-r--r--.gitignore2
-rwxr-xr-xtemplates/page-front.tpl.php18
2 files changed, 14 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d38c149
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.swp
+*~
diff --git a/templates/page-front.tpl.php b/templates/page-front.tpl.php
index 5320213..8675895 100755
--- a/templates/page-front.tpl.php
+++ b/templates/page-front.tpl.php
@@ -15,8 +15,8 @@
* - $logged_in: TRUE if the user is registered and signed in.
* - $is_admin: TRUE if the user has permission to access administration pages.
*
- * Page metadata:
* - $language: (object) The language the site is being displayed in.
+ * Page metadata:
* $language->language contains its textual representation.
* $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
* - $head_title: A modified version of the page title, for use in the TITLE tag.
@@ -132,6 +132,8 @@
<link rel="stylesheet" type="text/css" href="<?php print $GLOBALS['base_url']; ?>/sites/all/themes/scilab/css/testimonials_front.css" />
<link rel="stylesheet" type="text/css" href="<?php print $GLOBALS['base_url']; ?>/sites/all/themes/scilab/orbit/orbit-1.2.3.css">
<style type="text/css">
+
+
#slideshow img
{
display:none;
@@ -152,6 +154,10 @@
-o-border-bottom-left-radius: 5px;
border-bottom-left-radius: 5px;
}
+
+ .statistics_counter{
+ display :none !important;
+ }
</style>
</head>
@@ -366,7 +372,7 @@
<div id="testimonials_front">
<div style='mar:-50px' id='panel'>
<?php
- echo "<a href='testimonials-page-1' title='View all Testimonials' class='testimonial_head'>Testimonials</a>";
+ echo "<a href='/testimonials' title='View all Testimonials' class='testimonial_head'>Testimonials</a>";
?>
</div>
<ul>
@@ -380,15 +386,15 @@
{
$string = strip_tags($row->body);
$length=strlen($string);
- if($length>300)
+ if($length>260)
{
- $cut1= drupal_substr($string, 0, 300);
+ $cut1= drupal_substr($string, 0, 260);
$cut=$cut1."...";
}
else {
- $cut= drupal_substr($string, 0, 300);
+ $cut= drupal_substr($string, 0, 260);
}
- echo "<li><i><p style='margin-top:16px'>{$cut}</i></p><a href='' id='$row->id' data-target='#dialog{$row->id}' class='testimonial_read_more'>Read more..</a>
+ echo "<li><i><p style='margin-top:-7px'>{$cut}</i></p><a href='' id='$row->id' data-target='#dialog{$row->id}' class='testimonial_read_more'>Read more..</a>
<div id='dialog{$row->id}' class='dialog'>
<img src='sites/all/themes/scilab/images/x.png' style='margin-top:-25px ;margin-left:704px;' class='lightbox_close'>
<i><p style='margin-top:-1px'>{$row->body}</i><hr/><br/>