Skip to content

For Developers: Shortcode Classes and Functions

Dave Mackey edited this page Jan 28, 2020 · 1 revision

These files are found in the \includes\shortcodes folder.

  • class-shortcodes.php = GCS_Shortcodes Class
    • __construct = Constructor.
    • __get = Magic getter for our object.
  • class-shortcodes-admin-base.php = GCS_Shortcodes_Admin_Base Class, which extends WDS_Shortcode_Admin.
    • __construct = Constructor.
    • maybe_remove_prefixes = If the shortcode has a prefix property, remote it from the shortcode attributes.
  • class-shortcodes-base.php = GCS_Shortcodes_Base.
    • __construct = Constructor.
    • hooks = Initialize hooks.
  • class-shortcodes-recent-admin-base.php = GCSS_Recent_Admin_Base, which extends GCS_Shortcodes_Admin_Base.
    • __construct = Constructor.
    • enqueue_js
    • maybe_remove_recent_attribute = Removes 'recent' shortcode attribute when it isn't applicable.
  • class-shortcodes-run-base.php = GCS_Shortcodes_Run_Base, which extends WDS_Shortcodes.
    • __construct = Constructor
    • get_sermon
    • get_most_recent_sermon
    • get_inline_styles
  • shortcodes-audio-player\class-shortcode.php = Multiple classes.
    • GCS_Shortcodes_Audio_Player, which extends GCS_Shortcodes_Base.
      • __construct = Constructor
    • GCS_Shortcodes_Audio_Player_Run, which extends GCS_Shortcodes_Run_Base.
      • shortcode = Returns gc_get_sermon_audio_player.
    • GCS_Shortcodes_Audio_Player_admin, which extends GCSS_Recent_Admin_Base.
      • js_button_data = Sets up the button.
      • fields = Adds fields to the button modal using CMB2.
  • shortcodes-play-button\class-admin.php = GCSS_Play_Button_Admin which extends GCS_Shortcodes_Admin_Base.
    • js_button_data = Sets up the button.
    • fields = Adds fields to the button modal using CMB2.
  • shortcodes-play-button\class-run.php = GCSS_Play_Button_Run which extends GCS_Shortcodes_Run_Base.
    • shortcode = Shortcode output.
    • most_recent_sermon = Returns most_recent_with_video.
    • get_inline_styles
    • get_extra_classes
    • do_scripts
    • video_modal
  • shortcodes-play-button\class-shortcode.php = GCS_Shortcodes_Play_Button which extends GCS_Shortcodes_Base.
    • __construct
  • shortcodes-recent-series\class-admin.php = GCSS_Recent_Series_Admin which extends GCSS_Recent_Admin_Base.
    • js_button_data = Sets up the button.
    • fields = Adds fields to the button modal using CMB2.
  • shortcodes-recent-series\class-run.php = GCSS_Recent_Series_Run which extends GCS_Shortcodes_Run_Base.
    • shortcode = Shortcode Output
  • shortcodes-recent-series\class-shortcode.php = GCS_Shortcodes_Recent_Series which extends GCS_Shortcodes_Base.
    • __construct
  • shortcodes-recent-sermons\class-shortcode-recent-sermon.php - GCS_Shortcodes_Recent_Sermon extends GCS_Shortcodes_Base.
    • __construct
  • shortcodes-recent-sermons\class-shortcode-recent-sermon-admin.php - GCS_Shortcodes_Recent_Sermon_Admin extends GCSS_Recent_admin_Base.
    • js_button_data
    • fields
    • get_thumb_size_list
  • shortcodes-recent-sermons\class-shortcode-recent-sermon-run.php = GCS_Shortcodes_Recent_Sermon_Run extends GCS_Shortcodes_Run_Base.
    • shortcode = Shortcode Output
    • _shortcode
    • get_initial_query_args
    • map_sermon_args
    • get_pagination
    • get_wrap_classes
  • shortcodes-recent-speaker\class-admin.php = GCSS_Recent_Speaker_Admin extends GCSS_Recent_Admin_Base.
    • js_button_data
    • fields
  • shortcodes-recent-speaker\class-run.php = GCSS_Recent_Speaker_Run extends GCS_Shortcodes_Run_Base.
    • shotcode = Shortcode Output, calls gc_get_sermon_speaker_info.
  • shortcodes-recent-speaker\class-shortcode.php = GCS_Shortcodes_Recent_Speaker extends GCS_Shortcodes_Base.
    • __construct
  • shortcodes-related-links\class-shortcode.php = Multiple classes.
    • GCS_Shortcodes_Related_Links extends GCS_Shortcodes_Base.
      • __construct
    • GCSS_Related_Links_Run extends GCS_Shortcodes_Run_Base.
      • shortcode = Returns gc_get_sermon_related_links.
    • GCSS_Related_Links_Admin extends GCSS_Recent_Admin_base.
      • js_button_data
      • fields
  • shortcodes-search\class-admin.php - GCS_Shortcodes_Sermon_Search_Admin extends GCSS_Recent_Admin_Base.
    • __construct
    • js_button_data
    • fields
  • shortcodes-search\class-run.php - GCS_Shortcodes_Sermon_Search_Run extends GCS_Shortcodes_Run_Base.
    • __construct
    • shortcode = Shortcode Output.
    • sermon_search_results
    • series_search_results
  • shortcodes-search\class-series-search-run.php - GCSS_Series_search_Run extends GCSS_Series_Run.
    • __construct
    • get_search_results
    • get_initial_query_args
    • get_pagination
    • get_wrap_classes
    • augment_terms
    • orderby_post_date
  • shortcodes-search\class-sermon-search-run.php = GCSS_Sermons_Search_Run extends GCSS_Sermons_Run.
    • __construct
    • get_search_results
    • filter_sermon_args
    • get_initial_query_args
    • get_pagination
    • get_wrap_classes
  • shortcodes-search\class-shortcode.php = GCS_Shortcodes_Sermon_Search extends GCS_Shortcodes_Base
    • __construct
  • shortcodes-series\class-admin.php = GCSS_Series_Admin extends GCS_Shortcodes_Admin_Base.
    • js_button_data
    • fields
  • shortcodes-series\class-run.php = GCSS_Series_Run extends GCS_Shortcodes_Run_Base.
    • __construct
    • shortcode
    • get_initial_query_args
    • get_initial_query_args_if_year
    • add_year_index_and_augment_terms
    • get_term_data
    • get_pagination
    • get_wrap_classes
  • shortcodes-series\class-shortcode = GCS_Shortcode_Series extends GCS_Shortcodes_Base.
    • __construct
  • shortcodes-sermons\class-admin.php = GCSS_Sermons_Admin extends GCS_Shortcodes_Admin_Base.
    • __construct
    • js_button_data
    • fields
    • return_taxonomy_term_id_only
  • shortcodes-sermons\class-run.php = GCSS_Sermons_Run extends GCS_Shortcodes_Run_Base.
    • __construct
    • shortcode
    • map_related_term_args
    • get_initial_query_args
    • map_sermon_args
    • get_pagination
    • get_wrap_classes
  • shortcodes-sermons\class-shortcode.php = GCS_Shortcodes_Sermons extends GCS_Shortcodes_Base.
    • __construct
  • shortcodes-sermons\class-shortcode-recent-sermon.php = GCS_Shortcodes_Sermons extends GCS_Shortcodes_Base.
    • __construct
  • shortcodes-sermons\class-shortcode-recent-sermon-admin.php = GCS_Shortcodes_Sermon_Admin extends GCS_Shortcodes_Admin_Base.
    • js_button_data
    • fields
  • shortocodes-sermons\class-shortcode-recent-sermon-run.php = GCS_Shortcodes_Sermon_Run extends GCS_Shortcodes_Run_Base.
    • shortcode
    • _shortcode
    • do_scripts
    • inline_style
    • map_sermon_args
  • shortcodes-video-player\class-shortcode.php = Multiple classes.
    • GCS_Shortcodes_Video_Player extends GCS_Shortcodes_Base.
      • __construct
    • GCS_Shortcodes_Video_Player_Run extends GCS_Shortcodes_Run_Base.
      • shortcode = Returns gc_get_sermon_video_player.
    • GCS_Shortcodes_Video_Player_Admin extends GCS_Recent_Admin_Base.
      • js_button_data
      • fields