-
AuthorPosts
-
wombat1 Friend
wombat1
- Join date:
- March 2010
- Posts:
- 117
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 38
- Thanked:
- 11 times in 1 posts
June 25, 2010 at 7:19 am #152045I installed Teline iii quick start yet the option to enable or disable Cufon is not there?
Was this removed or is something wrong with my installation?Thanks
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 28, 2010 at 7:24 am #348266Hello wombat!
You try to open the file: ja_teline_iiilayoutsblockshead.php and find the following codes:
[PHP]<?php if ($this->getParam(‘ja_cufon’)) : ?>
<script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/js/cufon-yui.js”></script>
<script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/fonts/Museo_500_400.font.js”></script>
<script type=”text/javascript”>
Cufon.replace(
‘.componentheading, .contentheading, #ja-zinfp .ja-zintitle a, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_highlight h3’,
{ fontFamily: ‘Museo 500’ }
);
Cufon.replace (
‘.logo-text h1’,
{ fontFamily: ‘Museo 500’, color: ‘-linear-gradient(#999, #000, #999)’, textShadow: ‘#ccc 1px 1px’ }
);
</script>
<?php endif; ?>
[/PHP]
you replace:
[PHP]<?php // if ($this->getParam(‘ja_cufon’)) : ?>
<script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/js/cufon-yui.js”></script>
<script language=”javascript” type=”text/javascript” src=”<?php echo $this->templateurl(); ?>/libs/cufon/fonts/Museo_500_400.font.js”></script>
<script type=”text/javascript”>
Cufon.replace(
‘.componentheading, .contentheading, #ja-zinfp .ja-zintitle a, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_highlight h3’,
{ fontFamily: ‘Museo 500’ }
);
Cufon.replace (
‘.logo-text h1’,
{ fontFamily: ‘Museo 500’, color: ‘-linear-gradient(#999, #000, #999)’, textShadow: ‘#ccc 1px 1px’ }
);
</script>
<?php // endif; ?>
[/PHP]Good luck
1 user says Thank You to Saguaros for this useful post
wombat1 Friendwombat1
- Join date:
- March 2010
- Posts:
- 117
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 38
- Thanked:
- 11 times in 1 posts
June 28, 2010 at 8:21 am #348275Hello Tienhc
Surely the code will work thank you, but i have one question.
Why was this removed from Teline iii. Even in administration the options are gone..
I recently used JA Lead to complete a site where i used a font with international letters and all worked well for spanish.
Is there a problem with perfromance considering that this template is more complex and requires more database calls per page load.
The reason i ask is that this would be reason enough for me not to implement Cufon although i very much appreciate the possibility to do so.Thanks once more.
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
June 28, 2010 at 11:04 am #348305Hello,
Maybe Joomlart has forgotten to add parameter in file templateDetails.xml.
Code for cufon is there in file head.php.You could try adding the code for parameter in .xml-file:
<param name="ja_cufon" type="list" default="1" label="Enable Cufon" description="Enable Cufon desc">
<option value="0">No</option>
<option value="1">Yes</option>
</param>Good luck,
Micrantha1 user says Thank You to micrantha for this useful post
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by wombat1 14 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum