Thursday, June 5, 2014

Basic theme development

Borno is a content management system . You can download it form here




You must need below skill for Borno development

  • basic php

  • html

  • CSS


Borno theme Directory : portable/theme


Theme panel : Admin panel > Other menu > Theme




Create a new folder of theme directory

You must need below file

  • index.php (main page)

  • 404.php (404 error)

  • style.css (css)

  • single.php (content page)

  • doc.php (document page)


You  can be add more files :

You can also added sidebar.php , header.php , footer.php রাখা যেতে পারে ।

Add below code on style.css
/*
 *  Theme Name: name of the theme
 * Detail: give a short bio
 *  Author: your name
 */

Of courage-

  • Give <?php header_view()  ;  ?> between <head></head> tag and

  • <?php footer_view() ; ?> on the footer


Sample code -

  • index.php : : code

  • On header You can display title by $title

  • doc.php : code

  • single.php  : code


Official page : Group

Wednesday, June 4, 2014

Function Referance of Borno CMS

At first Download  offline document of Borno CMS।

Basic function :

  • get_the_option($field) : এটি ডাটাবেজের ওপশন টেবিল থেকে ডাটা নিয়ে আসে ।

  • update_option($field,$value,$createandupdate=true) একইভাবে এটি ডাটা আপডেট করে


User function :

  • is_exists_user($user_id)


Location test

  • is_admin()

  • is_home()

  • is_404()

  • is_orderbyvisit()

  • is_cat()

  • is_single()

  • is_doc()

  • is_search()

  • is_profile()


Get post data

  • get_the_post($post_id , $data)


Impotent 5 function

  • add_header($data) // adding data to header

  • header_view() // add this code header of your theme

  • footer_view() // add this code footer of your theme

  • add_footer($data) // adding data to footer

  • add_page($pagename,$title , $content,$role) // ‍adding a page to admin panel


Widget (ready made widget)

  • login_widget()

  • lasted_content($total)

  • lasted_content_list($total,$li=true)

  • lasted_comment($total)

  • popularpost($total)

  • popularpost_list($total,$list_allowed,$visit_display_allowed)


Shortcode

  • add_freewayshortcode($sortco

  • add_shortcode($sortcodename,$output)

  • dename,$output)

  • add_comment_shortcode($sortcodename,$output)


user Capabilities

  • manage_site

  • edit_user

  • new_post

  • edit_own_post

  • edit_all_post

  • manage_user

  • add_user

  • trash_all_post

  • trash_own_post

  • delete_user

  • manage_doc

  • approved_post

  • add_comment

  • approve_comment

  • manage_comment

  • trash_own_comment

  • trash_all_comment

  • delete_comment

  • restore_comment

  • delete_post

  • back_up

  • restore_post

  • add_category

  • edit_category

  • delete_category

  • manage_notify

  • manage_plugin

  • all