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.
  • 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

I'm now not certain the place

I'm now not certain the place you're getting your info,
however good topic. I needs to spend some time learning much more or working out more.

Thank you for great information I was in search of this
info for my mission.

Greetings! Very helpful

Greetings! Very helpful advice within this article!
It?s the little changes that will make the most important changes.
Thanks a lot for sharing!| I seriously love your blog..
Great colors & theme. Did you create this site yourself?
Please reply back as I?m looking to create my own personal website and want to know where you got this from or exactly
what the theme is called.
Cheers! https://www.cimedecor.ca

Hello, i believe that i saw

Hello, i believe that i saw you visited my web site so i got here to
go back the prefer?.I am attempting to in finding issues
to improve my web site!I assume its adequate
to use a few of your concepts!!

Just wish to say your article

Just wish to say your article is as astonishing.
The clarity in your post is just excellent and i could assume
you are an expert on this subject. Fine with your permission let me to grab your RSS
feed to keep up to date with forthcoming post. Thanks a million and
please continue the rewarding work.

Thanks for a marvelous

Thanks for a marvelous posting! I truly enjoyed reading it, you
are a great author. I will make certain to bookmark your blog and
will often come back down the road. I want to encourage continue your great posts, have
a nice afternoon!

Wow, this article is

Wow, this article is fastidious, my sister is analyzing these kinds
of things, thus I am going to inform her.

Good article. I will be

Good article. I will be facing a few of these issues as well..

No matter if some one

No matter if some one searches for his required thing,
therefore he/she wants to be available that in detail, therefore that thing is maintained
over here.

Hello, I think your blog

Hello, I think your blog might be having browser compatibility issues.

When I look at your blog site in Ie, it looks fine but when opening in Internet
Explorer, it has some overlapping. I just wanted to give you a quick heads
up! Other then that, amazing blog!

Hey there, I think your site

Hey there, I think your site might be having browser compatibility
issues. When I look at your blog in Opera, it looks fine
but when opening in Internet Explorer, it has some
overlapping. I just wanted to give you a quick heads up!
Other then that, excellent blog!

Thanks for writing this

Thanks for writing this awesome article. I'm a long time reader but I've never
been compelled to leave a comment. I subscribed to your blog and shared this
on my Facebook. Thanks again for a great article! https://amassante.com/comment-soulager-une-entorse-lombaire/

Oh my goodness! Amazing

Oh my goodness! Amazing article dude! Thank you,
However I am having problems with your RSS. I don't understand the reason why I cannot subscribe to it.

Is there anybody else having the same RSS issues?
Anybody who knows the answer will you kindly respond?
Thanks!!

I was recommended this web

I was recommended this web site by means of my cousin. I am no longer certain whether or not this put up
is written by him as nobody else recognize such special approximately my problem.
You're amazing! Thank you!

My brother recommended I may

My brother recommended I may like this blog. He was once
entirely right. This publish actually made my day. You cann't believe simply how so much time I had spent for this info!
Thank you!

Thank you a lot for sharing

Thank you a lot for sharing this with all of us you really recognise what you are speaking approximately!
Bookmarked. Kindly additionally discuss with my
site =). We will have a link change contract among us

Hiya! I know this is kinda

Hiya! I know this is kinda off topic however , I'd figured I'd ask.
Would you be interested in trading links or maybe guest writing a blog post or vice-versa?
My website addresses a lot of the same topics as yours and I think
we could greatly benefit from each other. If you might be interested feel free to shoot me an e-mail.
I look forward to hearing from you! Awesome blog by the way!

바카라사이트 Thanks for one's

바카라사이트
Thanks for one's marvelous posting! I seriously enjoyed reading it, you
will be a great author. I will make sure to bookmark your blog and will often come back in the foreseeable future.
I want to encourage you to continue your great work, have a nice
afternoon!바카라사이트

You really make it seem so

You really make it seem so easy with your presentation but I find
this topic to be actually something which I think
I would never understand. It seems too complicated and extremely broad for me.
I'm looking forward for your next post, I'll try to get the hang of it!

This paragraph will help the

This paragraph will help the internet visitors for creating
new web site or even a weblog from start to end.

A fascinating discussion is

A fascinating discussion is worth comment. I do think that
you ought to write more on this issue, it might not be a taboo subject but usually
people don't discuss these issues. To the next!
Best wishes!!

Good information. Lucky me I

Good information. Lucky me I discovered your
site by chance (stumbleupon). I've book marked it for later!

Taxi moto line 128 Rue la

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

I do not even know how I ended up here, but I thought this post was
good. I do not know who you are but certainly you are going to a famous blogger if you are
not already ;) Cheers!

Desvende, abaixo, oito mitos

Desvende, abaixo, oito mitos e verdades sobre o apresentação de melasmas durante a gravidez. https://credencial.imasters.com.br/blancy-tx-funciona-anvisa-composicao-...

Great post but I was

Great post but I was wondering if you could write
a litte more on this topic? I'd be very grateful if you could elaborate a little bit further.

Cheers!

It is actually a nice and

It is actually a nice and useful piece of info. I'm glad that you just
shared this useful info with us. Please keep us up to date like this.

Thanks for sharing.

Having read this I believed

Having read this I believed it was really enlightening.
I appreciate you spending some time and energy to put this content together.
I once again find myself spending a significant amount of time both reading and leaving
comments. But so what, it was still worthwhile!

I’m not that much of a

I’m not that much of a internet reader to be honest but your sites really nice, keep
it up! I'll go ahead and bookmark your website to come back down the road.
All the best

It's genuinely very

It's genuinely very complicated in this active life to listen news on Television, therefore I only use world wide web
for that purpose, and obtain the most recent information.

After looking into a few of

After looking into a few of the blog posts on your web page,
I really like your technique of blogging. I saved as a favorite it to my bookmark webpage list and will be checking back soon. Take a look
at my website as well and tell me how you feel.

Tal ativo também age no

Tal ativo também age no combate de outros sinais da idade, como falta de firmeza e elasticidade da pele. https://credencial.imasters.com.br/skinceuticals-discoloration-defense-f...

M.E.C Mon Electricien

M.E.C Mon Electricien Catalan
44 Rue Henry de Turenne
66100 Perpignan
0651212596

Electricien Perpignan

Hi there Dear, are you truly visiting this web site on a regular basis,
if so then you will without doubt obtain fastidious knowledge.

Please let me know if you're

Please let me know if you're looking for a article author for your weblog.
You have some really good articles and I think
I would be a good asset. If you ever want to take some
of the load off, I'd really like to write some content for your blog in exchange for a link back to mine.
Please send me an email if interested. Regards!

I do agree with all of the

I do agree with all of the ideas you have introduced to your post.
They're really convincing and can definitely work. Still, the posts are very
quick for beginners. Could you please extend them
a bit from next time? Thanks for the post.

First off I want to say

First off I want to say excellent blog! I had a quick question which I'd like to
ask if you don't mind. I was interested to find out how you center yourself and clear your head prior to writing.

I've had a hard time clearing my mind in getting my
thoughts out. I do enjoy writing but it just seems like the first 10 to 15 minutes are generally lost simply just trying to
figure out how to begin. Any ideas or tips?
Cheers!

Great beat ! I wish to

Great beat ! I wish to apprentice while you amend your site, how could i
subscribe for a weblog website? The account helped me a applicable
deal. I have been a little bit acquainted of this your broadcast provided vibrant clear idea

You actually make it seem so

You actually make it seem so easy with your presentation but I find this matter to be
really something that I think I would never understand.

It seems too complex and extremely broad for me.
I'm looking forward for your next post, I will try to get the hang
of it!

I am truly happy to glance at

I am truly happy to glance at this website posts which includes lots of helpful facts, thanks for providing these kinds of
statistics.

Asking questions are actually

Asking questions are actually good thing if you are not understanding something fully, except this paragraph provides pleasant understanding yet.

This post presents clear idea

This post presents clear idea in favor of the new viewers of blogging,
that truly how to do blogging.
Jay's Santa Clarita Tree Removal Kings
26174 Las Lanas Ct, Santa Clarita, CA 91355
661-464-1270
laureljefferson09875 [at] gmail [dot] com

This article is truly a

This article is truly a fastidious one it assists new the web
visitors, who are wishing in favor of blogging.

Hello there! Do you use

Hello there! Do you use Twitter? I'd like to follow you if that would be okay.
I'm undoubtedly enjoying your blog and look forward to new
updates.

Someone essentially help to

Someone essentially help to make critically posts I might state.
This is the first time I frequented your website page and thus far?
I surprised with the research you made to create this actual
put up amazing. Magnificent process!

Howdy! This is my first

Howdy! This is my first comment here so I just wanted to give
a quick shout out and tell you I truly enjoy reading your articles.
Can you recommend any other blogs/websites/forums that cover the same subjects?

Thanks for your time!

This piece of writing

This piece of writing presents clear idea designed for the new viewers of blogging, that genuinely
how to do blogging.

Normally I do not read

Normally I do not read article on blogs, but I wish to say that this write-up very compelled me to
take a look at and do so! Your writing style has been amazed
me. Thank you, very nice post.

Do you mind if I quote a

Do you mind if I quote a couple of your articles
as long as I provide credit and sources back to your website?
My blog site is in the exact same area of interest as yours and my visitors would
truly benefit from some of the information you provide here.
Please let me know if this alright with you. Many thanks!

Hey I know this is off topic

Hey I know this is off topic but I was wondering if you knew of any widgets I could add to
my blog that automatically tweet my newest twitter updates.
I've been looking for a plug-in like this for quite
some time and was hoping maybe you would have some experience
with something like this. Please let me know if you run into anything.
I truly enjoy reading your blog and I look forward to your new updates.

Hello! I just wanted to ask

Hello! I just wanted to ask if you ever
have any issues with hackers? My last blog (wordpress) was hacked and I
ended up losing many months of hard work due to
no backup. Do you have any solutions to protect against
hackers?

Awesome blog! Do you have any

Awesome blog! Do you have any suggestions for aspiring
writers? I'm planning to start my own website soon but I'm a little lost
on everything. Would you propose starting with a free platform like Wordpress or go
for a paid option? There are so many choices out there
that I'm totally confused .. Any suggestions?

Thanks!

Willie G youllied Woah! I'm

Willie G youllied

Woah! I'm really digging the template/theme of this website.

It's simple, yet effective. A lot of times it's tough to get that "perfect balance" between user friendliness and visual appeal.
I must say you've done a amazing job with this. Additionally, the blog loads very quick for me on Firefox.

Excellent Blog!

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.