Coder Social home page Coder Social logo

colormag's People

Contributors

abhishakedahal avatar ankitkarki17 avatar asheshmagar avatar ashishsthanp avatar beingaashishr avatar bikram48 avatar bipin8singh avatar elishabista avatar jenisha00 avatar langergabrielle avatar lprabha avatar mebishalnapit avatar milanthapaa avatar namrata751 avatar namrataaa avatar nilanzva avatar nishan-budhathoki94 avatar nitushrestha avatar nitushrestha10 avatar premiii avatar rabinstha avatar romosamatya avatar saazaan7 avatar sakarrr avatar sakxi avatar sanjipshah avatar sethstha avatar shivapoudel avatar som3669 avatar srijakunwar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

colormag's Issues

colormag-bxslider: Detect SiteOrigin Page Builder

A user of Colormag pro has identified an issue where the Frontpage slider widgets won't work (nothing will appear) as expected when added inside of a SiteOrigin Page Builder instance - SiteOrigin Layouts Block, Layout Builder, SiteOrigin (Widgets Bundle) Layout Slider. I've come up with a fix to this but it appears the underlying code isn't in this repo so I'm not able to submit it. I've included the fix below. I would be happy to submit this fix to any repo, or for someone else to submit it on my behalf.

Open colormag-pro/inc/helper-functions.php and find:

if ( ! function_exists( 'colormag_elementor_active_page_check' ) ) :

	/**
	 * Check whether Elementor plugin is activated and is active on current page or not.
	 *
	 * @return bool
	 *
	 * @since ColorMag 2.2.3
	 */
	function colormag_elementor_active_page_check() {
		global $post;

		if ( defined( 'ELEMENTOR_VERSION' ) && get_post_meta( $post->ID, '_elementor_edit_mode', true ) ) {
			return true;
		}

		return false;
	}

endif;

Add after:

if ( ! function_exists( 'colormag_siteorigin_panels_active_page_check' ) ) :

	/**
	 * Check whether SiteOrigin Page Builder plugin is activated and is active on current page or not.
	 *
	 * @return bool
	 *
	 * @since ColorMag 
	 */
	function colormag_siteorigin_panels_active_page_check() {
		global $post;

		if ( defined( 'SITEORIGIN_PANELS_VERSION' ) && get_post_meta( $post->ID, 'panels_data', true ) ) {
			return true;
		}

		return false;
	}

endif;

Replace every instance of the following conditional:
if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() || colormag_elementor_active_page_check() ) {

With:
if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() || colormag_elementor_active_page_check() || colormag_siteorigin_panels_active_page_check() ) {

Social Options - Google+

Google Plus Icon is Broken

Currently:
<li><a href="#" target="_blank"><i class="fa fa-google+"></i></a></li>

Should be:
<li><a href="#" target="_blank"><i class="fa fa-google-plus"></i></a></li>

Google+

Hello, congratulations for you theme, I just passing by to make two recommendations:

1- integrate the forum-based file attachment format like image below
image
2 Remove the Google+ social network, given that this social network is extinct.

Unique Post System usage resulting in error in SiteOrigin Page Builder

The Unique Post System setting will result in a fatal error message when a widget that uses it is added using SiteOrigin Page Builder.

Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /home/***/public_html/wp-content/themes/colormag-pro/inc/template-tags.php:167 Stack trace: #0 /home/***/public_html/wp-content/themes/colormag-pro/inc/template-tags.php(167): array_merge() #1 /home/***/public_html/wp-content/themes/colormag-pro/inc/widgets/colormag-featured-posts-slider-widget.php(171): colormag_append_excluded_duplicate_posts() #2 /home/***/public_html/wp-content/plugins/siteorigin-panels/inc/renderer.php(717): colormag_featured_posts_slider_widget->widget() #3 /home/***/public_html/wp-content/plugins/siteorigin-panels/inc/renderer.php(1059): SiteOrigin_Panels_Renderer->the_widget() #4 /home/***/public_html/wp-content/plugins/siteorigin-panels/inc/renderer.php(1024): SiteOrigin_Panels_Renderer->render_widget() #5 /home/***/public_html/wp-content/plugins/siteorigin-panels/inc/renderer.php(936): SiteOrigin_Panels_Renderer->render_cell() #6 /home/***/public_html/wp-content/plugins/siteorigin-panels/inc/renderer.php(491): SiteOrigin_Panels_Renderer->render_row() #7 /home/***/public_html/wp-content/plugins/siteorigin-panels/inc/admin.php(1095): SiteOrigin_Panels_Renderer->render() #8 /home/***/public_html/wp-content/plugins/siteorigin-panels/inc/admin.php(209): SiteOrigin_Panels_Admin->generate_panels_preview() #9 /home/***/public_html/wp-admin/includes/template.php(1395): SiteOrigin_Panels_Admin->render_meta_boxes() #10 /home/***/public_html/wp-admin/edit-form-advanced.php(711): do_meta_boxes() #11 /home/***/public_html/wp-admin/post.php(206): require('/home/***/...') #12 {main} thrown in /home/***/public_html/wp-content/themes/colormag-pro/inc/template-tags.php on line 167

This appears to be due to the $colormag_duplicate_posts not being detected correctly. Likely due to the global not being able to be passed down the chain. Storing it using query var (or something like that) may account for not only this issue but any similar type of usage. Due to how this issue could be fixed in a few different ways I haven't come up with a fix. I would be happy to come up with one and submit it to any repo, or for someone else to submit it on my behalf.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.