Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION what do you use special pages for?
#1
I've been using GS for a good few years now but never really looked into using Special pages. 
What do people actually use the plugin for in their day to day projects?

I see the value of custom fields but can't seem to think where I'd use Special pages.

Thanks
Reply
#2
All blocks here are created using this plugin. https://demo.getsimplethemes.ru/building/
Reply
#3
(2020-02-02, 15:43:49)Oleg06 Wrote: All blocks here are created using this plugin. https://demo.getsimplethemes.ru/building/

Thanks for the reply Oleg. Couldn't I just use a template though or am I missing something.
Reply
#4
Here is how it looks.
http://prntscr.com/qwd4nn
http://prntscr.com/qwd4nn
Code:
    <div class="uk-section uk-section-xxsmall">
        <article class="uk-article uk-flex-middle uk-grid" data-uk-grid>
        <?php if (return_special_field('image')) { ?>
            <div class="uk-width-1-3@s">
                <div class="uk-inline-clip uk-transition-toggle" tabindex="0" data-uk-lightbox>
                    <a class="uk-inline uk-link-muted" href="<?php get_special_field('image','',false); ?>" data-caption="<?php get_special_field('title','',false); ?>">
                        <figure class="thumb">
                            <img src="<?php echo return_special_field_image('image', '640', return_theme_setting('height_img'),true); ?>" alt="<?php get_special_field('title','',false); ?>" />
                            <figcaption class="uk-transition-fade uk-overlay-primary uk-position-cover uk-flex uk-flex-center uk-flex-middle">
                                <span data-uk-icon="icon: plus; ratio: 2"></span>
                                <span class="uk-hidden"><?php get_special_field('title','',false); ?></span>
                            </figcaption>
                        </figure>
                    </a>
                </div>
            </div>
        <?php } ?>
            <div class="uk-width-expand">
                <h3 class="uk-margin-small"><a class="uk-link-heading" href="<?php get_special_field('link','',false); ?>"><?php get_special_field('title','',false); ?></a></h3>
            <?php if (return_theme_setting('use_date')=='on') { ?>
                <div class="date-tags uk-margin-small">
                    <span class="post-date">
                        <i class="uk-margin-xsmall-right uk-margin-xsmall-right" data-uk-icon="icon: calendar; ratio: 1"></i>
                        <span>
                            <?php echo str_replace(
                                array("Январь","Февраль","Март", "Апрель","Май","Июнь","Июль","Август","Сентябрь", "Октябрь","Ноябрь","Декабрь"),
                                array("января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"),
                                return_special_field_date('creDate', return_theme_setting('date_format', ''))
                            );  ?>
                        </span>
                    </span>
                </div>
            <?php } ?>
                <p class="uk-margin-remove"><?php get_special_field_excerpt('content', $numWords); ?> ...</p>
        <?php if (return_theme_setting('use_parent_button')=='on') { ?>
                <p class="uk-text-right uk-margin-small-top"><a href="<?php get_special_field('link','',false); ?>" class="uk-button uk-button-<?php if (function_exists('get_theme_setting')) get_theme_setting('button_style', ''); ?> uk-border-<?php if (function_exists('get_theme_setting')) get_theme_setting('b_border_radius', ''); ?>"><?php get_theme_setting('read_more', ''); ?></a></p>
        <?php } ?>
            </div>
        </article>
    </div>
    <hr>
http://prntscr.com/qwd5e0
Result
https://demo.getsimplethemes.ru/plumber-en/news/
Reply
#5
(2020-02-02, 20:59:29)Oleg06 Wrote: Here is how it looks.
http://prntscr.com/qwd4nn
http://prntscr.com/qwd4nn
Code:
    <div class="uk-section uk-section-xxsmall">
        <article class="uk-article uk-flex-middle uk-grid" data-uk-grid>
       <?php if (return_special_field('image')) { ?>
            <div class="uk-width-1-3@s">
                <div class="uk-inline-clip uk-transition-toggle" tabindex="0" data-uk-lightbox>
                    <a class="uk-inline uk-link-muted" href="<?php get_special_field('image','',false); ?>" data-caption="<?php get_special_field('title','',false); ?>">
                        <figure class="thumb">
                            <img src="<?php echo return_special_field_image('image', '640', return_theme_setting('height_img'),true); ?>" alt="<?php get_special_field('title','',false); ?>" />
                            <figcaption class="uk-transition-fade uk-overlay-primary uk-position-cover uk-flex uk-flex-center uk-flex-middle">
                                <span data-uk-icon="icon: plus; ratio: 2"></span>
                               <span class="uk-hidden"><?php get_special_field('title','',false); ?></span>
                            </figcaption>
                        </figure>
                    </a>
                </div>
            </div>
       <?php } ?>
            <div class="uk-width-expand">
                <h3 class="uk-margin-small"><a class="uk-link-heading" href="<?php get_special_field('link','',false); ?>"><?php get_special_field('title','',false); ?></a></h3>
           <?php if (return_theme_setting('use_date')=='on') { ?>
                <div class="date-tags uk-margin-small">
                    <span class="post-date">
                        <i class="uk-margin-xsmall-right uk-margin-xsmall-right" data-uk-icon="icon: calendar; ratio: 1"></i>
                        <span>
                            <?php echo str_replace(
                                array("Январь","Февраль","Март", "Апрель","Май","Июнь","Июль","Август","Сентябрь", "Октябрь","Ноябрь","Декабрь"),
                                array("января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"),
                               return_special_field_date('creDate', return_theme_setting('date_format', ''))
                            );  ?>
                        </span>
                    </span>
                </div>
           <?php } ?>
                <p class="uk-margin-remove"><?php get_special_field_excerpt('content', $numWords); ?> ...</p>
       <?php if (return_theme_setting('use_parent_button')=='on') { ?>
                <p class="uk-text-right uk-margin-small-top"><a href="<?php get_special_field('link','',false); ?>" class="uk-button uk-button-<?php if (function_exists('get_theme_setting')) get_theme_setting('button_style', ''); ?> uk-border-<?php if (function_exists('get_theme_setting')) get_theme_setting('b_border_radius', ''); ?>"><?php get_theme_setting('read_more', ''); ?></a></p>
       <?php } ?>
            </div>
        </article>
    </div>
    <hr>
http://prntscr.com/qwd5e0
Result
https://demo.getsimplethemes.ru/plumber-en/news/

Thanks Oleg, will take a look when I get back home. I'm out and about for the day. 
Much appreciated again...
Reply




Users browsing this thread: 1 Guest(s)