Stringek darabolása, előkészítése css formázáshoz

  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Snippet
Stringek darabolása, előkészítése css formázáshoz

Ahogy a képen is látszik, az ilyen szövegek formázása nem túl egyszerű. Bármikor jól jöhet, hogyha egy címnél például az első 3 karakternek más-más háttér kell, vagy egyéb hasonlóan cudar manővereket pakolt a grafikába a designer.

Ez a kis sminkfüggvény egy modulba, vagy a template.php-be megkönnyíti a munkát, feldarabolja, classolja a létrehozott spanokat, így már lehet célozni css-ben.

Használata, ha mondjuk egy block címét akarjuk felspanolni, akkor a block.tpl.php-ba cseréljük le:

[geshifilter-code]<h2 class="title"><?php print $title; ?></h2>[/geshifilter-code]

erre:

[geshifilter-code]<h2 class="title"><?php if ($title != '<none>') : print theme_fragmented_string($title, $ide_amilyen_class_nevet_akarsz_a_spanoknak, TRUE); endif; //a végén a TRUE akkor kell, ha sorszámozni szeretnéd a class-okat?></h2>[/geshifilter-code]

És ilyen html-t kapunk:

[geshifilter-code]<h2 class="title"><span class="fragmented fragmented-1 fragmented-1">1</span><span class="fragmented fragmented-2 fragmented-0">0</span><span class="fragmented fragmented-3 fragmented-8">8</span></h2>[/geshifilter-code]

És a sminkfüggvény, csak másold be a template.php-ba:

[geshifilter-drupal6] /* * Theme function to separate string into different <span>'s * * @param $string * The string need to divide * @param $class * The class name in <span class="$class"> * @param $count * If TRUE, in <span class "$class"> will be one more class with counter. * @return * The separeted string. */ function theme_fragmented_string($string, $class = 'fragmented', $count = FALSE) { $output = ''; $string_array = preg_split('//u', $string, -1, PREG_SPLIT_NO_EMPTY); $counter = 1; $classes = $class; foreach ($string_array as $key => $value) { if ($count) { $classes .= ' ' . $classes . '-' . $counter; } $classes .= ' fragmented-' . $value; $output .= '<span class="' . $classes .'">' . $value . '</span>'; $counter++; $classes = $class; } return $output; } [/geshifilter-drupal6]

És végül köszönet Sweetchucknak, aki segített a preg_splitet összehozni.

Ja, és azért értelemszerűen 100+ karakteres szövegre nem biztos, hogy ezt kell használni.

Hozzászólások

Write more, thats all I have

Write more, thats all I have to say. Literally, it seems as though you relied
on the video to make your point. You definitely know what youre
talking about, why throw away your intelligence
on just posting videos to your blog when you could be giving us
something informative to read?

If the vast majority of the

If the vast majority of the public is right, the book will be
in line to take a hit.

Excellent, what a web site it

Excellent, what a web site it is! This weblog presents helpful information to us, keep it up.

Just desire to say your

Just desire to say your article is as astounding. The clearness in your post is just spectacular and i can assume you
are an expert on this subject. Well with your permission allow me to
grab your RSS feed to keep up to date with forthcoming post.
Thanks a million and please keep up the enjoyable work.

Fantastic beat ! I wish to

Fantastic beat ! I wish to apprentice even as you amend your website, how could
i subscribe for the blog website? The account aided us a applicable deal.
I have been tiny bit acquainted of this your broadcast offered vivid transparent concept

http://aiminvestment.biz/__me

I'm gone to inform my little

I'm gone to inform my little brother, that he should
also pay a quick visit this website on regular basis to obtain updated from
hottest news.

I constantly spent my half an

I constantly spent my half an hour to read this web site's content everyday along with a mug of coffee.

Very good blog you have here

Very good blog you have here but I was curious if you knew of any message boards that cover the same topics discussed here? I'd really love to be a part of community where I can get feedback from other knowledgeable individuals that share the same interest. If you have any suggestions, please let me know. Kudos!|

We incorporate Betfair, but

We incorporate Betfair, but the odds are taken from their traditionally structured sportsbook.

Ahɑa, its good dialogue

Ahɑa, its good dialogue regarding this paragraph
heгe att this weblog, I have read all that, ѕo at this time me also
commеntіng here. http://lovestory.photo/gallery_1001/1325388

hello!,I really like your

hello!,I really like your writing very so much!
share we keep up a correspondence extra about your article on AOL?
I require an expert in this area to solve my problem.
May be that's you! Looking ahead to peer you.

I visited many web pages but

I visited many web pages but the audio feature for audio
songs present at this website is truly superb.

A person essentially help to

A person essentially
help to make critically articles
I might state. This is the first time I frequented your
website page and to this point? I amazed with
the research you made to make this particular submit incredible.
Great job!|
Heya i am for the first time here. https://lapimbeche.com/collections/t-shirt

Your way of explaining

Your way of explaining everything in this post is actually pleasant, all be able to easily understand it, Thanks a lot.

It's going to be ending of

It's going to be ending of mine day, however before end I am
reading this impressive post to increase my experience.

Adams became the 35th player

Adams became the 35th player in NFL history to have 3 or more TD receptions in two or more games in a
single season.

Hiya very nice web site!! Guy

Hiya very nice web site!! Guy .. Excellent .. Superb ..
I will bookmark your website and take the feeds also?
I am glad to find a lot of useful information here within the submit, we need
develop more strategies in this regard, thank you for sharing.
. . . . .

Excellent article. I'm going

Excellent article. I'm going through a few of these issues as well.. https://parbrize-online.ro/lunete/lunete-nissan.html

Conversely, the redder the

Conversely, the redder the value, the a lot more overvalued the golfer is.

I do not know if it's just me

I do not know if it's just me or if everyone else encountering issues
with your site. It appears like some of the written text on your content are running
off the screen. Can somebody else please comment and let me
know if this is happening to them as well? This may be
a problem with my internet browser because I've had this happen previously.
Thank you

That way, it can reference

That way, it can reference the team and the game devoid of possessing to
straight refer to them.

Thiis рost will asѕist the

Thiis рost will asѕist the iternet viewers for credating neѡ blog or even a blog
from stfart to end. http://shop.gmynsh.com/comment/html/?810090.html

Gambling addiction can come

Gambling addiction can come about to even the most unlikely
folks, so please be cautious.

Appreciate the

Appreciate the recommendation. Let me try it out.

Hmm it appears like your

Hmm it appears like your website ate my first comment (it was super long) so I guess I'll
just sum it up what I wrote and say, I'm thoroughly enjoying your
blog. I as well am an aspiring blog writer but I'm still new to the
whole thing. Do you have any helpful hints for rookie blog writers?
I'd genuinely appreciate it. https://anunturi-parbrize.ro/index.php?cauta=parbriz+daihatsu

Undeniаvly believe tthat

Undeniаvly believe tthat which you said. Your favorite justification appeared to bee on the web the sіmplest thing tto be aᴡare of.
I ssay to you, I certainly get іrked while people consider worries tnat tһey
plainly don't knoԝ about. Уou managed to hit
the nail upon the top and also defіned out the whole thing without having side-effects , people ccan take a signal.
Will likeⅼy be back to get more. Thanks http://Www.chnyouji.com/comment/html/?240955.html

Heya i am for the firѕt time

Heya i am for the firѕt time here. I fⲟund tһi boɑrd and I find It truly useful & it helped me out a lot.
I hoρe tto give something back and help others ⅼike yⲟu aided me. https://www.meetyobi.com/forums/users/leannebecerra5/

This is my first time visit

This is my first time visit at here and i am truly pleassant to read everthing at one place. https://parbrize24ore.ro/oferta-parbrize.php?an=2009&produs=geam+lateral...

I am genuinely thankful to

I am genuinely thankful to the owner of this web page who has shared this wonderful piece of writing at at
this place.

It's actually a nice and

It's actually a nice and useful piece of info. I am happy
that you simply shared this useful info with us. Please keep us informed like this.
Thanks for sharing.

Sweet blog! I found it while

Sweet blog! I found it while surfing around on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo News?
I've been trying for a while but I never seem to get there!
Thank you

Awesome! Its really awesome

Awesome! Its really awesome paragraph, I have got much clear idea on the
topic of from this post.

May I simply say what a

May I simply say what a relief to uncover a person that really understands what they're talking about
over the internet. You actually know how to bring an issue
to light and make it important. More and more people ought to check this out and understand this
side of your story. I was surprised that you aren't more
popular given that you definitely possess the gift.

I blog frequently and Ι

I blog frequently and Ι really aⅼpreciate your content.
The article has truly peaked my interest.
I ԝill take a notе of you websіte and keep checking for new details
about once a week. I subbscribed ttо your RSS feed as well. http://kccsb.com/comment/html/?378201.html

Your way of describing the

Your way of describing the whole thing in this post is really pleasant,
all be capable of simply understand it, Thanks a lot.

Piece of writing writing is

Piece of writing writing is also a fun, if you be acquainted with afterward you can write or else it
is difficult to write. https://parbrize-online.ro/lunete/luneta-peugeot--2020-167737.html

It's hard to come by educated

It's hard to come by educated people about this subject, however, you sound like
you know what you're talking about! Thanks

Hi there! I'm at work surfing

Hi there! I'm at work surfing around your blog from my new
apple iphone! Just wanted to say I love reading through your blog and
look forward to all your posts! Keep up the excellent work!

Reports say an anonymous

Reports say an anonymous gambler produced 27 straight passes , a feat that has
odds against of 12,467,890 to 1.

http://winfullcapital.com/__m

magnificent put up, very

magnificent put up, very informative. I ponder why the opposite experts of this sector
don't notice this. You must continue your writing. I'm confident, you have a huge readers' base already!

Do you mind if I quote a

Do you mind if I quote a couple of your posts as long as
I provide credit and sources back to your blog?

My blog is in the very same area of interest as yours and my
users would truly benefit from some of the information you provide here.
Please let me know if this okay with you. Thanks!

Hey thеre, You've done an

Hey thеre, You've done an excellent job. I will definitely
digg it and personally suggest to my friends.
I'm sսre they will be benefiteⅾ from thiss website. https://covid311wiki.info/index.php/Daftar_Akun_Poker88_Setidaknya_Gampa...

Write more, thats all I have

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your
point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving
us something enlightening to read?

Hi theгe, this weekend is

Hi theгe, this weekend is good in support of me, because this
point in time i am reаding this wonderful informative paragraph here at my һouse. https://www.bookmarks4all.win/klikbandar88-com

Great post. I'm experiencing

Great post. I'm experiencing many of these issues as well.. https://anunturi-parbrize.ro/parbriz-daewoo-16.html

magnificent points

magnificent points altogether, you simply gained a logo new reader.

What could you recommend about your put up that you just made some days ago?

Any positive?

Hmm it seems like your site

Hmm it seems like your site ate my first comment (it was
super long) so I guess I'll just sum it up what I had written and
say, I'm thoroughly enjoying your blog. I as well am an aspiring blog writer but
I'm still new to the whole thing. Do you have any suggestions for novice blog writers?
I'd really appreciate it. https://anunturi-parbrize.ro/index.php?page=1069

My programmer is trying to

My programmer is trying to persuade me to
move to .net from PHP. I have always disliked the idea because of the expenses.
But he's tryiong none the less. I've been using WordPress on a number of websites for about a year
and am nervous about switching to another platform.
I have heard great things about blogengine.net. Is there a way I can import all my wordpress content into it?

Any kind of help would be really appreciated!

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.