From the word itself, the word shortcode means exactly that: A short code; a shortcut code.
Шорткодтар әзірлеушілер әдетте жасайтындай үлкен код бөліктерін қоспай-ақ, веб-сайтыңызға әртүрлі элементтерді (мысалы, виджеттерді) қосуға мүмкіндік береді.
Мысалы, ұзындығы бойынша кәдімгі код бөлігі шамамен келесідей болып көрінуі мүмкін:
<html>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam id aliquam turpis. Vivamus quis arcu tincidunt, finibus urna eget, placerat risus. Aliquam arcu massa, finibus et lacinia sed, scelerisque nec augue. Quisque eu viverra sapien, vel consequat lorem. Integer vel erat tortor. Phasellus condimentum magna eget congue venenatis. Suspendisse blandit vehicula consectetur. Nullam sodales eleifend massa, in bibendum purus fermentum id. Morbi et turpis feugiat, malesuada ipsum sit amet, interdum nulla. In non ante nec nisl mattis gravida sit amet id lectus. </html>
Бұл мысал үшін жоғарыдағы код бөлігі Lorem Ipsum толтырғыш мәтінінің тұтас бір абзацын қосуға мүмкіндік береді деп есептейік.
Now, a shortcode with the same exact function as the code above will look something like this, in contrast:
[lorem ipsum dolor estat]Lorem Ipsum[/lorem]
You can see how they’re miles different from each other in terms of length.
Енді осы екі код бөлігі де – бастапқы, ұзақ бөлік пен тек «lorem» сөзінен тұратын шорткод – дәл бірдей нәрсені жасайтынын елестетіп көріңіз: Lorem Ipsum мәтінін қосу.
This is what shortcodes do. They make adding widgets, functions, and a bunch of other cool stuff easier for both ordinary WordPress users and developers alike.
Where can I find shortcodes?
Егер сізде сүйікті плагин немесе виджет болса, оларда пайдалануға болатын шорткодтың болу ықтималдығы жоғары.
Shortcodes Ultimate, for example, will let you choose from hundreds of shortcodes that you can use on Page Builder Sandwich (or anywhere, actually) by simply grabbing the shortcode of your choice from Shortcode Ultimate’s repository or documentation page.
Adding Custom Shortcodes on PBS
Page Builder Sandwich ішінде сіз шорткодтарды мазмұн аймағына жай ғана теру немесе көшіріп қою арқылы тікелей парақшаңызға қоса аласыз.
Біз мұны төменде Shortcodes Ultimate плагинінің шорткодымен жасап, Page Builder Sandwich демо парақшасына мазмұн блогын қостық:
Another thing you’ll find handy when using Page Builder Sandwich is our Shortcode Mapping feature.
Shortcode Mapping туралы алдыңғы мақалаларымыздың бірінен алынған анықтама мынадай:
Shortcode mapping is like letting Page Builder Sandwich memorize all the shortcodes available on your site: their names, descriptions, their attributes, and what each of these attributes do.
Бұл ішінара шорткодтарыңызды олардың тиісті құжаттамаларынан немесе репозиторийлерінен қолмен іздеудің қажеті жоқ екенін білдіреді.
Шорткодты қамтитын плагин WordPress сайтыңызда орнатылған болса болғаны, ол сізге Page Builder Sandwich ішінде пайдалану үшін оңай қолжетімді болады.
So for example, if I wanted to add a WooCommerce shortcode on my page, all I have to do is make sure that it’s installed on my WordPress site, like so:
And then, to actually add the shortcode, I’ll just go to my page, and drag and drop the Shortcode Element:
Because we already have WooCommerce installed on our WordPress site, you can see that all of the shortcodes that are available on the WooCommerce plugin are already available on Page Builder Sandwich. This is what Shortcode Mapping is.
You can also see on the upper left corner that the ACF (Advanced Custom Fields) and MailChimp shortcodes are available— because we have those instlled on our WordPress site, too.
Сондықтан реттелетін шорткодтарды немесе өзіңіз жасаған шорткодтарды қосқыңыз келсе, олар WordPress сайтыңызда орнатылған болса, мұны істей аласыз.



Қазіргі таңда бет құрастырушылардың (page builder) ондаған түрі бар, сондықтан сіз өзіңізден: 


Бұл мақалада Page Builder Sandwich қалай жұмыс істейтіні туралы қысқаша шолу беріледі және ол біздің бет құрастырғышымыздың WordPress-тегі әртүрлі элементтермен қалай біріктірілетініне қызығушылық танытқандарға арналған кіріспе болып табылады. Мен Page Builder Sandwich-тің жеке мүмкіндіктеріне тереңдеп тоқталмаймын, егер олар қажет болса, қысқа скринкасттар арқылы әр функцияны жеке көрсететін біздің бейнелер бетіне өтіңіз.

