menu_title = __( 'Nishiki About Page', 'nishiki' );
add_theme_page(
esc_html__( 'Nishiki About Page', 'nishiki' ),
$this->menu_title,
'edit_theme_options',
'nishiki-about',
array( $this, 'nishiki_theme_info_page' )
);
}
/**
* Tab Array
*/
public function nishiki_tab_array() {
$nishiki_tab_array = array(
'welcome' => __( 'About Theme', 'nishiki' ),
'plugin' => __( 'Nishiki Plugin', 'nishiki' ),
'iconfont' => __( 'Use Icon', 'nishiki' ),
);
return $nishiki_tab_array;
}
/**
* Theme Page Info
*/
public function nishiki_theme_info_page(){
$theme_data = wp_get_theme('nishiki');
?>
Version ) ); ?>
Customize. About 80 customization can be done without writing the code. responsive layout, front page setting, movie setting, etc. Customization often required for web production / website operation can be set.', 'nishiki' ); ?>
create_tab(); ?>
create_tab_content(); ?>
nishiki_tab_array();
echo '';
foreach ( $tab_array as $key => $val ) {
$active = '';
if ( ! isset( $_GET['tab'] ) && $flag === false ) {
$active = ' nav-tab-active';
$flag = 1;
} elseif ( isset( $_GET['tab'] ) && $key === $_GET['tab'] && $flag === false ) {
$active = ' nav-tab-active';
}
echo '
' . esc_html( $val ) . '';
}
echo '
';
}
/**
* Create Tab Content
*/
public function create_tab_content() {
$tab_array = $this->nishiki_tab_array();
$flag = false;
foreach ( $tab_array as $key => $val ) {
if ( ! isset( $_GET['tab'] ) && $flag === false ) {
$flag = true;
} elseif ( isset( $_GET['tab'] ) && $key === $_GET['tab'] && $flag === false ) {
$flag = true;
}
if ( $flag === true ) {
$this->$key();
break;
}
}
}
/**
* Welcome Page.
*/
public function welcome() {
?>
- 500px
- accessibility
- address-book
- aid-kit
- airplane
- alarm
- amazon
- android
- angry
- angry2
- appleinc
- arrow-down-left
- arrow-down-left2
- arrow-down-right
- arrow-down-right2
- arrow-down
- arrow-down2
- arrow-down22
- arrow-left
- arrow-left2
- arrow-left22
- arrow-right
- arrow-right2
- arrow-right22
- arrow-up-left
- arrow-up-left2
- arrow-up-right
- arrow-up-right2
- arrow-up
- arrow-up2
- arrow-up22
- attachment
- backward
- backward2
- baffled
- baffled2
- barcode
- basecamp
- behance
- behance2
- bell
- bin
- bin2
- binoculars
- blocked
- blog
- blogger
- blogger2
- bold
- book
- bookmark
- bookmarks
- books
- box-add
- box-remove
- briefcase
- brightness-contrast
- bubble
- bubble2
- bubbles
- bubbles2
- bubbles3
- bubbles4
- bug
- bullhorn
- calculator
- calendar
- camera
- cancel-circle
- cart
- checkbox-checked
- checkbox-unchecked
- checkmark
- checkmark2
- chrome
- circle-down
- circle-left
- circle-right
- circle-up
- clear-formatting
- clipboard
- clock
- clock2
- close
- cloud-check
- cloud-download
- cloud-upload
- cloud
- clubs
- codepen
- cog
- cogs
- coin-dollar
- coin-euro
- coin-pound
- coin-yen
- command
- compass
- compass2
- confused
- confused2
- connection
- contrast
- cool
- cool2
- copy
- credit-card
- crop
- cross
- crying
- crying2
- css3
- ctrl
- database
- delicious
- deviantart
- diamonds
- dice
- display
- download
- download2
- download3
- drawer
- drawer2
- dribbble
- drive
- dropbox
- droplet
- earth
- edge
- eject
- ello
- embed
- embed2
- enlarge
- enlarge2
- enter
- envelop
- equalizer
- equalizer2
- evil
- evil2
- exit
- eye-blocked
- eye-minus
- eye-plus
- eye
- eyedropper
- facebook
- facebook2
- feed
- file-empty
- file-excel
- file-music
- file-openoffice
- file-pdf
- file-picture
- file-play
- file-text
- file-text2
- file-video
- file-word
- file-zip
- files-empty
- film
- filter
- finder
- fire
- firefox
- first
- flag
- flattr
- flickr
- flickr2
- flickr3
- flickr4
- floppy-disk
- folder-download
- folder-minus
- folder-open
- folder-plus
- folder-upload
- folder
- font-size
- font
- forward
- forward2
- forward3
- foursquare
- frustrated
- frustrated2
- gift
- git
- github
- glass
- glass2
- google-drive
- google-plus
- google-plus2
- google-plus3
- google
- google2
- google3
- grin
- grin2
- hackernews
- hammer
- hammer2
- hangouts
- happy
- happy2
- headphones
- heart-broken
- heart
- hipster
- hipster2
- history
- home
- home2
- home3
- hour-glass
- html-five
- html-five2
- IcoMoon
- IE
- image
- images
- indent-decrease
- indent-increase
- infinite
- info
- insert-template
- instagram
- italic
- joomla
- key
- key2
- keyboard
- lab
- lanyrd
- laptop
- last
- lastfm
- lastfm2
- leaf
- library
- libreoffice
- lifebuoy
- ligature
- ligature2
- link
- linkedin
- linkedin2
- list-numbered
- list
- list2
- location
- location2
- lock
- loop
- loop2
- ltr
- magic-wand
- magnet
- mail
- mail2
- mail3
- mail4
- make-group
- man-woman
- man
- map
- map2
- menu
- menu2
- menu22
- menu3
- menu4
- meter
- meter2
- mic
- minus
- mobile
- mobile2
- move-down
- move-up
- mug
- music
- neutral
- neutral2
- new-tab
- newspaper
- next
- next2
- notification
- npm
- office
- omega
- onedrive
- opera
- opt
- pacman
- page-break
- pagebreak
- paint-format
- paragraph-center
- paragraph-justify
- paragraph-left
- paragraph-right
- paste
- pause
- pause2
- paypal
- pen
- pencil
- pencil2
- phone-hang-up
- phone
- pie-chart
- pilcrow
- pinterest
- pinterest2
- play
- play2
- play3
- plus
- podcast
- point-down
- point-left
- point-right
- point-up
- power-cord
- power
- previous
- previous2
- price-tag
- price-tags
- printer
- profile
- pushpin
- qrcode
- question
- quill
- quotes-left
- quotes-right
- radio-checked
- radio-checked2
- radio-unchecked
- reddit
- redo
- redo2
- renren
- reply
- road
- rocket
- rss
- rss2
- rtl
- sad
- sad2
- safari
- scissors
- search
- section
- share
- share2
- shield
- shift
- shocked
- shocked2
- shrink
- shrink2
- shuffle
- sigma
- sina-weibo
- skype
- sleepy
- sleepy2
- smile
- smile2
- sort-alpha-asc
- sort-alpha-desc
- sort-amount-asc
- sort-amount-desc
- sort-numberic-desc
- sort-numeric-asc
- soundcloud
- soundcloud2
- spades
- spell-check
- sphere
- spinner
- spinner10
- spinner11
- spinner2
- spinner3
- spinner4
- spinner5
- spinner6
- spinner7
- spinner8
- spinner9
- spoon-knife
- spotify
- stack
- stackoverflow
- star-empty
- star-full
- star-half
- stats-bars
- stats-bars2
- stats-dots
- steam
- steam2
- stop
- stop2
- stopwatch
- strikethrough
- stumbleupon
- stumbleupon2
- subscript
- subscript2
- sun
- superscript
- superscript2
- svg
- switch
- tab
- table
- table2
- tablet
- target
- telegram
- terminal
- text-color
- text-height
- text-width
- ticket
- tongue
- tongue2
- tree
- trello
- trophy
- truck
- tumblr
- tumblr2
- tux
- tv
- twitch
- twitter
- underline
- undo
- undo2
- ungroup
- unlocked
- upload
- upload2
- upload3
- user-check
- user-minus
- user-plus
- user-tie
- user
- users
- video-camera
- vimeo
- vimeo2
- vine
- vk
- volume-decrease
- volume-high
- volume-increase
- volume-low
- volume-medium
- volume-mute
- volume-mute2
- warning
- whatsapp
- wikipedia
- windows
- windows8
- wink
- wink2
- woman
- wondering
- wondering2
- wordpress
- wrench
- xing
- xing2
- yahoo
- yahoo2
- yelp
- youtube
- youtube2
- zoom-in
- zoom-out